This connector captures data from Amazon Ads into Flow collections via the Amazon Ads API.
It is available for use in the Flow web application. For local development or open-source workflows,
ghcr.io/estuary/source-amazon-ads:dev provides the latest version of the connector as a Docker image. You can also follow the link in your browser to see past image versions.
This connector is based on an open-source connector from a third party, with modifications for performance in the Flow system. You can find their documentation here, but keep in mind that the two versions may be significantly different.
Supported data resources
The following data resources are supported:
- Sponsored brands ad groups
- Sponsored brands campaigns
- Sponsored brands keywords
- Sponsored brands report stream
- Sponsored brands video report stream
- Sponsored display ad groups
- Sponsored display ad campaigns
- Sponsored display product ads
- Sponsored display report stream
- Sponsored display targetings
- Sponsored product ad groups
- Sponsored product ads
- Sponsored product campaigns
- Sponsored product keywords
- Sponsored product negative keywords
- Sponsored product targetings
- Sponsored product report stream
By default, each resource is mapped to a Flow collection through a separate binding.
This connector uses OAuth2 to authenticate with Amazon. You can do this in the Flow web app, or configure manually if you're using the flowctl CLI.
Using OAuth2 to authenticate with Amazon in the Flow web app
You'll use these credentials to sign in.
Authenticating manually using the CLI
When you configure this connector manually, you provide the same credentials that OAuth2 would automatically fetch if you used the web app. These are:
- Client ID
- Client secret
- Refresh token
To obtain these credentials:
Complete the Amazon Ads API onboarding process.
Selecting data region and profiles
When you configure the endpoint for this connector, you must choose an Amazon region from which to capture data. Optionally, you may also select profiles from which to capture data.
The region must be one of:
- NA (North America)
- EU (European Union)
- FE (Far East)
These represent the three URL endpoints provided by Amazon through which you can access the marketing API. Each region encompasses multiple Amazon marketplaces, which are broken down by country. See the Amazon docs for details.
If you run your Amazon ads in multiple marketplaces, you may have separate profiles for each. If this is the case, you can specify the profiles from which you wish to capture data by supplying their profile IDs. Be sure to specify only profiles that correspond to marketplaces within the region you chose.
You configure connectors either in the Flow web app, or by directly editing the catalog specification file. See connectors to learn more about using connectors. The values and specification sample below provide configuration details specific to the Amazon Ads source connector.
The properties in the table below reflect the manual authentication method. If you're working in the Flow web app, you'll use OAuth2, so many of these properties aren't required.
|Auth Type||Set to ||string|
|Client ID||The client ID of your Amazon Ads developer application.||string||Required|
|Client Secret||The client secret of your Amazon Ads developer application.||string||Required|
|Refresh Token||Amazon Ads refresh token.||string||Required|
|Profile IDs (Optional)||Profile IDs you want to fetch data for.||array|
|Region *||Region to pull data from (EU/NA/FE).||string|
|Report Generation Maximum Retries *||Maximum retries the connector will attempt for fetching report data.||integer|
|Report Wait Timeout *||Timeout duration in minutes for reports.||integer|
|Start Date (Optional)||The start date for collecting reports, in YYYY-MM-DD format. This should not be more than 60 days in the past.||string|
|Stream||Amazon Ads resource from which a collection is captured.||string||Required|
|Sync Mode||Connection method.||string||Required|
This sample specification reflects the manual authentication method.