The Snapchat Marketing source can sync data from the Snapchat Marketing API
Useful links:
- Snapchat Ads Manager
- Snapchat API Docs
- Snapchat API FAQ
- Set up Snapchat Business account
- Activate Access to the Snapchat Marketing API
This Source is capable of syncing the following Streams:
- Organization
- Ad Account (Incremental)
- Creative (Incremental)
- Media (Incremental)
- Campaign (Incremental)
- Ad (Incremental)
- Ad Squad (Incremental)
- Segments (Incremental)
Integration Type | Airbyte Type | Notes |
---|---|---|
string |
string |
|
integer |
integer |
|
number |
number |
|
array |
array |
|
object |
object |
|
boolean |
boolean |
Feature | Supported? |
---|---|
Full Refresh Sync | Yes |
Incremental - Append Sync | Yes |
Namespaces | No |
- client_id - Snapchat account client ID
- client_secret - Snapchat account client secret
- refresh_token - Snapchat account refresh token
To get the required credentials you need to set up a snapchat business account. Follow this guide to set up one:
-
After that - Activate Access to the Snapchat Marketing API
-
Adding the OAuth2 app requires the
redirect_url
parameter. If you have the API endpoint that will handle next OAuth process - write it to this parameter.If not - just use some valid url. Here's the discussion about it: Snapchat Redirect URL - Clarity in documentation please
-
On this step you will retrieve Client ID and Client Secret carefully save Client Secret - you cannot view it in UI, only by regenerating
Snapchat uses OAuth2 authentication, so to get the refresh token the workflow in next: 1. Open the authorize link in a browser: https://accounts.snapchat.com/login/oauth2/authorize?response_type=code&client_id={client_id}&redirect_uri={redirect_uri}&scope=snapchat-marketing-api&state=wmKkg0TWgppW8PTBZ20sldUmF7hwvU
-
Login & Authorize via UI
-
Locate "code" query parameter in the redirect
-
Exchange code for access token + refresh token
curl -X POST \ -d "code={one_time_use_code}" \ -d "client_id={client_id}" \ -d "client_secret={client_secret}" \ -d "grant_type=authorization_code" \ -d "redirect_uri=redirect_uri" https://accounts.snapchat.com/login/oauth2/access_token
You will receive the API key and refresh token in response. Use this refresh token in the connector specifications.
The useful link to Authentication process is here
Snapchat Marketing API has limitations to 1000 items per page
Version | Date | Pull Request | Subject |
---|---|---|---|
0.1.4 | 2021-12-07 | 8429 | Update titles and descriptions |
0.1.3 | 2021-11-10 | 7811 | Add oauth2.0, fix stream_state |
0.1.2 | 2021-11-08 | 7499 | Remove base-python dependencies |
0.1.1 | 2021-07-29 | 5072 | Fix bug with incorrect stream_state value |
0.1.0 | 2021-07-26 | 4843 | Initial release supporting the Snapchat Marketing API |