Skip to main content

Amazon-Ads full reference

This is the full reference documentation for the Amazon-Ads agent connector.

Supported entities and actions​

The Amazon-Ads connector supports the following entities and actions.

EntityActions
ProfilesList, Get, Context Store Search, Context Store SQL Query
PortfoliosList, Get
Sponsored Product CampaignsList, Get
Sponsored Product Ad GroupsList
Sponsored Product KeywordsList
Sponsored Product Product AdsList
Sponsored Product TargetsList
Sponsored Product Negative KeywordsList
Sponsored Product Negative TargetsList
Sponsored Brands CampaignsList
Sponsored Brands Ad GroupsList

Profiles​

Profiles List​

Returns a list of advertising profiles associated with the authenticated user. Profiles represent an advertiser's account in a specific marketplace. Advertisers may have a single profile if they advertise in only one marketplace, or a separate profile for each marketplace if they advertise regionally or globally.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "profiles",
"action": "list"
}'

Python SDK​

await amazon_ads.profiles.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "profiles",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
profileTypeFilterstringNoFilter profiles by type. Comma-separated list of profile types.
Valid values: seller, vendor, agency
Response Schema

Records​

Field NameTypeDescription
profileIdinteger
countryCodestring | null
currencyCodestring | null
dailyBudgetnumber | null
timezonestring | null
accountInfoobject | any

Profiles Get​

Retrieves a single advertising profile by its ID. The profile contains information about the advertiser's account in a specific marketplace.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "profiles",
"action": "get",
"params": {
"profileId": 0
}
}'

Python SDK​

await amazon_ads.profiles.get(
profile_id=0
)

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "profiles",
"action": "get",
"params": {
"profileId": 0
}
}'

Parameters​

Parameter NameTypeRequiredDescription
profileIdintegerYesThe unique identifier of the profile
Response Schema

Records​

Field NameTypeDescription
profileIdinteger
countryCodestring | null
currencyCodestring | null
dailyBudgetnumber | null
timezonestring | null
accountInfoobject | any

Search and filter profiles records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "profiles",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"accountInfo": {}
}
}
}
}
}'

Python SDK​

await amazon_ads.profiles.context_store_search(
query={"filter": {"eq": {"accountInfo": {}}}}
)

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "profiles",
"action": "context_store_search",
"params": {
"query": {"filter": {"eq": {"accountInfo": {}}}}
}
}'

Parameters​

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, startswith, endswith, contains, array_contains, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields​

Field NameTypeDescription
accountInfoobject
countryCodestring
currencyCodestring
dailyBudgetnumber
profileIdinteger
timezonestring
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].accountInfoobject
data[].countryCodestring
data[].currencyCodestring
data[].dailyBudgetnumber
data[].profileIdinteger
data[].timezonestring

Profiles Context Store SQL Query​

Run a SQL query against profiles records in the Airbyte Context Store. SQL projections may return any set of columns, so each result row is a dictionary matching the query's selected fields. Only available in hosted mode.

Use the hosted server documentation to find the qualified Context Store table name and SQL guidance.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "profiles",
"action": "context_store_sql_query",
"params": {
"sql": "SELECT * FROM <qualified_context_store_table> LIMIT 100"
}
}'

Python SDK​

await amazon_ads.profiles.context_store_sql_query(
sql="SELECT * FROM <qualified_context_store_table> LIMIT 100"
)

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "profiles",
"action": "context_store_sql_query",
"params": {
"sql": "SELECT * FROM <qualified_context_store_table> LIMIT 100"
}
}'

Parameters​

Parameter NameTypeRequiredDescription
sqlstringYesSQL query to execute against this entity's Context Store data
limitintegerNoMaximum results to return
Response Schema
Field NameTypeDescription
dataarrayProjected rows, with dictionary keys matching the selected columns
metaobjectQuery metadata
meta.has_morebooleanWhether the result was limited and more rows are available
meta.cursornullSQL query results do not use cursor pagination
meta.took_msnumber | nullQuery execution time in milliseconds

Portfolios​

Portfolios List​

Returns a list of portfolios for the specified profile. Portfolios are used to group campaigns together for organizational and budget management purposes.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "portfolios",
"action": "list"
}'

Python SDK​

await amazon_ads.portfolios.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "portfolios",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
includeExtendedDataFieldsstringNoWhether to include extended data fields in the response
Response Schema

Meta​

Field NameTypeDescription
next_tokenstring | null

Portfolios Get​

Retrieves a single portfolio by its ID using the v2 API.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "portfolios",
"action": "get",
"params": {
"portfolioId": 0
}
}'

Python SDK​

await amazon_ads.portfolios.get(
portfolio_id=0
)

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "portfolios",
"action": "get",
"params": {
"portfolioId": 0
}
}'

Parameters​

Parameter NameTypeRequiredDescription
portfolioIdintegerYesThe unique identifier of the portfolio
Response Schema

Records​

Field NameTypeDescription
portfolioIdstring | integer
namestring | null
budgetobject | any
inBudgetboolean | null
statestring | null
creationDateinteger | null
lastUpdatedDateinteger | null
servingStatusstring | null

Returns a list of sponsored product campaigns for the specified profile. Sponsored Products campaigns promote individual product listings on Amazon.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "sponsored_product_campaigns",
"action": "list"
}'

Python SDK​

await amazon_ads.sponsored_product_campaigns.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "sponsored_product_campaigns",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
stateFilterobjectNo
stateFilter.includestringNoComma-separated list of states to include (enabled, paused, archived)
maxResultsintegerNoMaximum number of results to return
nextTokenstringNoToken for pagination
Response Schema

Meta​

Field NameTypeDescription
next_tokenstring | null

Retrieves a single sponsored product campaign by its ID using the v2 API.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "sponsored_product_campaigns",
"action": "get",
"params": {
"campaignId": 0
}
}'

Python SDK​

await amazon_ads.sponsored_product_campaigns.get(
campaign_id=0
)

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "sponsored_product_campaigns",
"action": "get",
"params": {
"campaignId": 0
}
}'

Parameters​

Parameter NameTypeRequiredDescription
campaignIdintegerYesThe unique identifier of the campaign
Response Schema

Records​

Field NameTypeDescription
campaignIdstring | integer
portfolioIdstring | integer | any
namestring | null
campaignTypestring | null
tagsobject | null
targetingTypestring | null
premiumBidAdjustmentboolean | null
statestring | null
dynamicBiddingobject | any
biddingobject | any
startDatestring | null
endDatestring | null
dailyBudgetnumber | null
budgetobject | any
extendedDataobject | null
marketplaceBudgetAllocationstring | null
offAmazonSettingsobject | null

Returns a list of sponsored product ad groups for the specified profile. Ad groups are used to organize ads and targeting within a campaign.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "sponsored_product_ad_groups",
"action": "list"
}'

Python SDK​

await amazon_ads.sponsored_product_ad_groups.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "sponsored_product_ad_groups",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
stateFilterobjectNo
stateFilter.includestringNoComma-separated list of states to include (enabled, paused, archived)
maxResultsintegerNoMaximum number of results to return
nextTokenstringNoToken for pagination
Response Schema

Meta​

Field NameTypeDescription
next_tokenstring | null

Returns a list of sponsored product keywords for the specified profile. Keywords are used in manual targeting campaigns to match shopper search queries.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "sponsored_product_keywords",
"action": "list"
}'

Python SDK​

await amazon_ads.sponsored_product_keywords.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "sponsored_product_keywords",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
stateFilterobjectNo
stateFilter.includestringNoComma-separated list of states to include (enabled, paused, archived)
maxResultsintegerNoMaximum number of results to return
nextTokenstringNoToken for pagination
Response Schema

Meta​

Field NameTypeDescription
next_tokenstring | null

Returns a list of sponsored product ads for the specified profile. Product ads associate an advertised product with an ad group.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "sponsored_product_product_ads",
"action": "list"
}'

Python SDK​

await amazon_ads.sponsored_product_product_ads.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "sponsored_product_product_ads",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
stateFilterobjectNo
stateFilter.includestringNoComma-separated list of states to include (enabled, paused, archived)
maxResultsintegerNoMaximum number of results to return
nextTokenstringNoToken for pagination
Response Schema

Meta​

Field NameTypeDescription
next_tokenstring | null

Returns a list of sponsored product targeting clauses for the specified profile. Targeting clauses define product or category targeting for ad groups.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "sponsored_product_targets",
"action": "list"
}'

Python SDK​

await amazon_ads.sponsored_product_targets.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "sponsored_product_targets",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
stateFilterobjectNo
stateFilter.includestringNoComma-separated list of states to include (enabled, paused, archived)
maxResultsintegerNoMaximum number of results to return
nextTokenstringNoToken for pagination
Response Schema

Meta​

Field NameTypeDescription
next_tokenstring | null

Returns a list of sponsored product negative keywords for the specified profile. Negative keywords prevent ads from showing for specific search terms.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "sponsored_product_negative_keywords",
"action": "list"
}'

Python SDK​

await amazon_ads.sponsored_product_negative_keywords.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "sponsored_product_negative_keywords",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
stateFilterobjectNo
stateFilter.includestringNoComma-separated list of states to include (enabled, paused, archived)
maxResultsintegerNoMaximum number of results to return
nextTokenstringNoToken for pagination
Response Schema

Meta​

Field NameTypeDescription
next_tokenstring | null

Returns a list of sponsored product negative targeting clauses for the specified profile. Negative targeting clauses exclude specific products or categories from targeting.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "sponsored_product_negative_targets",
"action": "list"
}'

Python SDK​

await amazon_ads.sponsored_product_negative_targets.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "sponsored_product_negative_targets",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
stateFilterobjectNo
stateFilter.includestringNoComma-separated list of states to include (enabled, paused, archived)
maxResultsintegerNoMaximum number of results to return
nextTokenstringNoToken for pagination
Response Schema

Meta​

Field NameTypeDescription
next_tokenstring | null

Returns a list of sponsored brands campaigns for the specified profile. Sponsored Brands campaigns help drive discovery and sales with creative ad experiences.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "sponsored_brands_campaigns",
"action": "list"
}'

Python SDK​

await amazon_ads.sponsored_brands_campaigns.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "sponsored_brands_campaigns",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
stateFilterobjectNo
stateFilter.includestringNoComma-separated list of states to include (enabled, paused, archived)
maxResultsintegerNoMaximum number of results to return
nextTokenstringNoToken for pagination
Response Schema

Meta​

Field NameTypeDescription
next_tokenstring | null

Returns a list of sponsored brands ad groups for the specified profile. Ad groups organize ads and targeting within a Sponsored Brands campaign.

CLI​

airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "amazon-ads",
"entity": "sponsored_brands_ad_groups",
"action": "list"
}'

Python SDK​

await amazon_ads.sponsored_brands_ad_groups.list()

API​

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "sponsored_brands_ad_groups",
"action": "list"
}'

Parameters​

Parameter NameTypeRequiredDescription
stateFilterobjectNo
stateFilter.includestringNoComma-separated list of states to include (enabled, paused, archived)
maxResultsintegerNoMaximum number of results to return
nextTokenstringNoToken for pagination
Response Schema

Meta​

Field NameTypeDescription
next_tokenstring | null