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, Search
PortfoliosList, Get
Sponsored Product CampaignsList, Get

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.

Python SDK

await amazon_ads.profiles.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_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.

Python SDK

await amazon_ads.profiles.get(
profile_id=0
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_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.

Python SDK

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

API

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

Parameters

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

Searchable Fields

Field NameTypeDescription
accountInfoobject
countryCodestring
currencyCodestring
dailyBudgetnumber
profileIdinteger
timezonestring
Response Schema
Field NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.accountInfoobject
hits[].data.countryCodestring
hits[].data.currencyCodestring
hits[].data.dailyBudgetnumber
hits[].data.profileIdinteger
hits[].data.timezonestring
next_cursorstring | nullCursor for next page of results
took_msnumberQuery 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.

Python SDK

await amazon_ads.portfolios.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_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

Portfolios Get

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

Python SDK

await amazon_ads.portfolios.get(
portfolio_id=0
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_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.

Python SDK

await amazon_ads.sponsored_product_campaigns.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_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

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

Python SDK

await amazon_ads.sponsored_product_campaigns.get(
campaign_id=0
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_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