Skip to main content

Snapchat-Marketing full reference

This is the full reference documentation for the Snapchat-Marketing agent connector.

Supported entities and actions

The Snapchat-Marketing connector supports the following entities and actions.

EntityActions
OrganizationsList, Get, Search
AdaccountsList, Get, Search
CampaignsList, Get, Search
AdsquadsList, Get, Search
AdsList, Get, Search
CreativesList, Get, Search
MediaList, Get, Search
SegmentsList, Get, Search

Organizations

Organizations List

Returns the organizations the authenticated user belongs to

Python SDK

await snapchat_marketing.organizations.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": "organizations",
"action": "list"
}'
Response Schema

Records

Field NameTypeDescription
idstring
namestring
typestring
statestring
address_line_1string
administrative_district_level_1string
localitystring
postal_codestring
countrystring
contact_namestring
contact_emailstring
contact_phonestring
contact_phone_optinboolean
accepted_term_versionstring
configuration_settingsobject
my_display_namestring
my_invited_emailstring
my_member_idstring
rolesarray<string>
createdByCallerboolean
is_agencyboolean
verification_request_idstring
demand_sourcestring
created_atstring
updated_atstring

Meta

Field NameTypeDescription
next_linkstring

Organizations Get

Get a single organization by ID

Python SDK

await snapchat_marketing.organizations.get(
id="<str>"
)

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": "organizations",
"action": "get",
"params": {
"id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
idstringYesOrganization ID

Search and filter organizations 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 snapchat_marketing.organizations.search(
query={"filter": {"eq": {"accepted_term_version": "<str>"}}}
)

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": "organizations",
"action": "search",
"params": {
"query": {"filter": {"eq": {"accepted_term_version": "<str>"}}}
}
}'

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 meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
accepted_term_versionstringVersion of accepted terms
address_line_1stringStreet address
administrative_district_level_1stringState or province
configuration_settingsobjectOrganization configuration settings
contact_emailstringContact email address
contact_namestringContact person name
contact_phonestringContact phone number
contact_phone_optinbooleanWhether the contact opted in for phone communications
countrystringCountry code
createdByCallerbooleanWhether the organization was created by the caller
created_atstringCreation timestamp
idstringUnique organization identifier
localitystringCity or locality
my_display_namestringDisplay name of the authenticated user in the organization
my_invited_emailstringEmail used to invite the authenticated user
my_member_idstringMember ID of the authenticated user
namestringOrganization name
postal_codestringPostal code
rolesarrayRoles of the authenticated user in this organization
statestringOrganization state
typestringOrganization type
updated_atstringLast update timestamp
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[].accepted_term_versionstringVersion of accepted terms
data[].address_line_1stringStreet address
data[].administrative_district_level_1stringState or province
data[].configuration_settingsobjectOrganization configuration settings
data[].contact_emailstringContact email address
data[].contact_namestringContact person name
data[].contact_phonestringContact phone number
data[].contact_phone_optinbooleanWhether the contact opted in for phone communications
data[].countrystringCountry code
data[].createdByCallerbooleanWhether the organization was created by the caller
data[].created_atstringCreation timestamp
data[].idstringUnique organization identifier
data[].localitystringCity or locality
data[].my_display_namestringDisplay name of the authenticated user in the organization
data[].my_invited_emailstringEmail used to invite the authenticated user
data[].my_member_idstringMember ID of the authenticated user
data[].namestringOrganization name
data[].postal_codestringPostal code
data[].rolesarrayRoles of the authenticated user in this organization
data[].statestringOrganization state
data[].typestringOrganization type
data[].updated_atstringLast update timestamp

Adaccounts

Adaccounts List

Returns ad accounts belonging to an organization

Python SDK

await snapchat_marketing.adaccounts.list(
organization_id="<str>"
)

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": "adaccounts",
"action": "list",
"params": {
"organization_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
organization_idstringYesOrganization ID
Response Schema

Records

Field NameTypeDescription
idstring
namestring
typestring
statusstring
organization_idstring
advertiser_organization_idstring
currencystring
timezonestring
billing_typestring
billing_center_idstring
agency_representing_clientboolean
client_paying_invoicesboolean
funding_source_idsarray<string>
regulationsobject
created_atstring
updated_atstring

Meta

Field NameTypeDescription
next_linkstring

Adaccounts Get

Get a single ad account by ID

Python SDK

await snapchat_marketing.adaccounts.get(
id="<str>"
)

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": "adaccounts",
"action": "get",
"params": {
"id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
idstringYesAd Account ID

Search and filter adaccounts 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 snapchat_marketing.adaccounts.search(
query={"filter": {"eq": {"advertiser_organization_id": "<str>"}}}
)

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": "adaccounts",
"action": "search",
"params": {
"query": {"filter": {"eq": {"advertiser_organization_id": "<str>"}}}
}
}'

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 meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
advertiser_organization_idstringAdvertiser organization ID
agency_representing_clientbooleanWhether the account is managed by an agency
billing_center_idstringBilling center ID
billing_typestringBilling type
client_paying_invoicesbooleanWhether the client pays invoices directly
created_atstringCreation timestamp
currencystringAccount currency code
funding_source_idsarrayAssociated funding source IDs
idstringUnique ad account identifier
namestringAd account name
organization_idstringParent organization ID
regulationsobjectRegulatory settings
statusstringAd account status
timezonestringAccount timezone
typestringAd account type
updated_atstringLast update timestamp
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[].advertiser_organization_idstringAdvertiser organization ID
data[].agency_representing_clientbooleanWhether the account is managed by an agency
data[].billing_center_idstringBilling center ID
data[].billing_typestringBilling type
data[].client_paying_invoicesbooleanWhether the client pays invoices directly
data[].created_atstringCreation timestamp
data[].currencystringAccount currency code
data[].funding_source_idsarrayAssociated funding source IDs
data[].idstringUnique ad account identifier
data[].namestringAd account name
data[].organization_idstringParent organization ID
data[].regulationsobjectRegulatory settings
data[].statusstringAd account status
data[].timezonestringAccount timezone
data[].typestringAd account type
data[].updated_atstringLast update timestamp

Campaigns

Campaigns List

Returns campaigns belonging to an ad account

Python SDK

await snapchat_marketing.campaigns.list(
ad_account_id="<str>"
)

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": "campaigns",
"action": "list",
"params": {
"ad_account_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
ad_account_idstringYesAd Account ID
Response Schema

Records

Field NameTypeDescription
idstring
namestring
ad_account_idstring
statusstring
objectivestring
buy_modelstring
creation_statestring
start_timestring
delivery_statusarray<string>
objective_v2_propertiesobject
pacing_properties_versioninteger
created_atstring
updated_atstring

Meta

Field NameTypeDescription
next_linkstring

Campaigns Get

Get a single campaign by ID

Python SDK

await snapchat_marketing.campaigns.get(
id="<str>"
)

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": "campaigns",
"action": "get",
"params": {
"id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
idstringYesCampaign ID

Search and filter campaigns 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 snapchat_marketing.campaigns.search(
query={"filter": {"eq": {"ad_account_id": "<str>"}}}
)

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": "campaigns",
"action": "search",
"params": {
"query": {"filter": {"eq": {"ad_account_id": "<str>"}}}
}
}'

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 meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
ad_account_idstringParent ad account ID
buy_modelstringBuy model type
created_atstringCreation timestamp
creation_statestringCreation state
delivery_statusarrayDelivery status messages
idstringUnique campaign identifier
namestringCampaign name
objectivestringCampaign objective
start_timestringCampaign start time
statusstringCampaign status
updated_atstringLast update timestamp
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[].ad_account_idstringParent ad account ID
data[].buy_modelstringBuy model type
data[].created_atstringCreation timestamp
data[].creation_statestringCreation state
data[].delivery_statusarrayDelivery status messages
data[].idstringUnique campaign identifier
data[].namestringCampaign name
data[].objectivestringCampaign objective
data[].start_timestringCampaign start time
data[].statusstringCampaign status
data[].updated_atstringLast update timestamp

Adsquads

Adsquads List

Returns ad squads belonging to an ad account

Python SDK

await snapchat_marketing.adsquads.list(
ad_account_id="<str>"
)

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": "adsquads",
"action": "list",
"params": {
"ad_account_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
ad_account_idstringYesAd Account ID
Response Schema

Records

Field NameTypeDescription
idstring
namestring
typestring
campaign_idstring
statusstring
auto_bidboolean
bid_strategystring
billing_eventstring
child_ad_typestring
creation_statestring
daily_budget_microinteger
lifetime_budget_microinteger
delivery_constraintstring
delivery_properties_versioninteger
delivery_statusarray<string>
end_timestring
start_timestring
forced_view_settingstring
optimization_goalstring
pacing_typestring
placementstring
target_bidboolean
targetingobject
targeting_reach_statusstring
skadnetwork_propertiesobject
event_sourcesobject
created_atstring
updated_atstring

Meta

Field NameTypeDescription
next_linkstring

Adsquads Get

Get a single ad squad by ID

Python SDK

await snapchat_marketing.adsquads.get(
id="<str>"
)

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": "adsquads",
"action": "get",
"params": {
"id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
idstringYesAd Squad ID

Search and filter adsquads 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 snapchat_marketing.adsquads.search(
query={"filter": {"eq": {"auto_bid": True}}}
)

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": "adsquads",
"action": "search",
"params": {
"query": {"filter": {"eq": {"auto_bid": True}}}
}
}'

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 meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
auto_bidbooleanWhether auto bidding is enabled
bid_strategystringBid strategy
billing_eventstringBilling event type
campaign_idstringParent campaign ID
child_ad_typestringChild ad type
created_atstringCreation timestamp
creation_statestringCreation state
daily_budget_microintegerDaily budget in micro-currency
delivery_constraintstringDelivery constraint
delivery_properties_versionintegerDelivery properties version
delivery_statusarrayDelivery status messages
end_timestringAd squad end time
event_sourcesobjectEvent sources configuration
forced_view_settingstringForced view setting
idstringUnique ad squad identifier
lifetime_budget_microintegerLifetime budget in micro-currency
namestringAd squad name
optimization_goalstringOptimization goal
pacing_typestringPacing type
placementstringPlacement type
skadnetwork_propertiesobjectSKAdNetwork properties
start_timestringAd squad start time
statusstringAd squad status
target_bidbooleanWhether target bid is enabled
targetingobjectTargeting specification
targeting_reach_statusstringTargeting reach status
typestringAd squad type
updated_atstringLast update timestamp
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[].auto_bidbooleanWhether auto bidding is enabled
data[].bid_strategystringBid strategy
data[].billing_eventstringBilling event type
data[].campaign_idstringParent campaign ID
data[].child_ad_typestringChild ad type
data[].created_atstringCreation timestamp
data[].creation_statestringCreation state
data[].daily_budget_microintegerDaily budget in micro-currency
data[].delivery_constraintstringDelivery constraint
data[].delivery_properties_versionintegerDelivery properties version
data[].delivery_statusarrayDelivery status messages
data[].end_timestringAd squad end time
data[].event_sourcesobjectEvent sources configuration
data[].forced_view_settingstringForced view setting
data[].idstringUnique ad squad identifier
data[].lifetime_budget_microintegerLifetime budget in micro-currency
data[].namestringAd squad name
data[].optimization_goalstringOptimization goal
data[].pacing_typestringPacing type
data[].placementstringPlacement type
data[].skadnetwork_propertiesobjectSKAdNetwork properties
data[].start_timestringAd squad start time
data[].statusstringAd squad status
data[].target_bidbooleanWhether target bid is enabled
data[].targetingobjectTargeting specification
data[].targeting_reach_statusstringTargeting reach status
data[].typestringAd squad type
data[].updated_atstringLast update timestamp

Ads

Ads List

Returns ads belonging to an ad account

Python SDK

await snapchat_marketing.ads.list(
ad_account_id="<str>"
)

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": "ads",
"action": "list",
"params": {
"ad_account_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
ad_account_idstringYesAd Account ID
Response Schema

Records

Field NameTypeDescription
idstring
namestring
typestring
ad_squad_idstring
creative_idstring
statusstring
render_typestring
review_statusstring
review_status_reasonsarray<string>
delivery_statusarray<string>
created_atstring
updated_atstring

Meta

Field NameTypeDescription
next_linkstring

Ads Get

Get a single ad by ID

Python SDK

await snapchat_marketing.ads.get(
id="<str>"
)

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": "ads",
"action": "get",
"params": {
"id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
idstringYesAd ID

Search and filter ads 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 snapchat_marketing.ads.search(
query={"filter": {"eq": {"ad_squad_id": "<str>"}}}
)

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": "ads",
"action": "search",
"params": {
"query": {"filter": {"eq": {"ad_squad_id": "<str>"}}}
}
}'

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 meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
ad_squad_idstringParent ad squad ID
created_atstringCreation timestamp
creative_idstringAssociated creative ID
delivery_statusarrayDelivery status messages
idstringUnique ad identifier
namestringAd name
render_typestringRender type
review_statusstringReview status
review_status_reasonsarrayReasons for review status
statusstringAd status
typestringAd type
updated_atstringLast update timestamp
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[].ad_squad_idstringParent ad squad ID
data[].created_atstringCreation timestamp
data[].creative_idstringAssociated creative ID
data[].delivery_statusarrayDelivery status messages
data[].idstringUnique ad identifier
data[].namestringAd name
data[].render_typestringRender type
data[].review_statusstringReview status
data[].review_status_reasonsarrayReasons for review status
data[].statusstringAd status
data[].typestringAd type
data[].updated_atstringLast update timestamp

Creatives

Creatives List

Returns creatives belonging to an ad account

Python SDK

await snapchat_marketing.creatives.list(
ad_account_id="<str>"
)

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": "creatives",
"action": "list",
"params": {
"ad_account_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
ad_account_idstringYesAd Account ID
Response Schema

Records

Field NameTypeDescription
idstring
namestring
typestring
ad_account_idstring
ad_productstring
brand_namestring
call_to_actionstring
headlinestring
render_typestring
review_statusstring
review_status_detailsstring
shareableboolean
forced_view_eligibilitystring
packaging_statusstring
top_snap_crop_positionstring
top_snap_media_idstring
ad_to_place_propertiesobject
web_view_propertiesobject
created_atstring
updated_atstring

Meta

Field NameTypeDescription
next_linkstring

Creatives Get

Get a single creative by ID

Python SDK

await snapchat_marketing.creatives.get(
id="<str>"
)

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": "creatives",
"action": "get",
"params": {
"id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
idstringYesCreative ID

Search and filter creatives 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 snapchat_marketing.creatives.search(
query={"filter": {"eq": {"ad_account_id": "<str>"}}}
)

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": "creatives",
"action": "search",
"params": {
"query": {"filter": {"eq": {"ad_account_id": "<str>"}}}
}
}'

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 meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
ad_account_idstringParent ad account ID
ad_productstringAd product type
ad_to_place_propertiesobjectAd-to-place properties
brand_namestringBrand name displayed in the creative
call_to_actionstringCall to action text
created_atstringCreation timestamp
forced_view_eligibilitystringForced view eligibility status
headlinestringCreative headline
idstringUnique creative identifier
namestringCreative name
packaging_statusstringPackaging status
render_typestringRender type
review_statusstringReview status
review_status_detailsstringDetails about the review status
shareablebooleanWhether the creative is shareable
top_snap_crop_positionstringTop snap crop position
top_snap_media_idstringTop snap media ID
typestringCreative type
updated_atstringLast update timestamp
web_view_propertiesobjectWeb view properties
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[].ad_account_idstringParent ad account ID
data[].ad_productstringAd product type
data[].ad_to_place_propertiesobjectAd-to-place properties
data[].brand_namestringBrand name displayed in the creative
data[].call_to_actionstringCall to action text
data[].created_atstringCreation timestamp
data[].forced_view_eligibilitystringForced view eligibility status
data[].headlinestringCreative headline
data[].idstringUnique creative identifier
data[].namestringCreative name
data[].packaging_statusstringPackaging status
data[].render_typestringRender type
data[].review_statusstringReview status
data[].review_status_detailsstringDetails about the review status
data[].shareablebooleanWhether the creative is shareable
data[].top_snap_crop_positionstringTop snap crop position
data[].top_snap_media_idstringTop snap media ID
data[].typestringCreative type
data[].updated_atstringLast update timestamp
data[].web_view_propertiesobjectWeb view properties

Media

Media List

Returns media belonging to an ad account

Python SDK

await snapchat_marketing.media.list(
ad_account_id="<str>"
)

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": "media",
"action": "list",
"params": {
"ad_account_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
ad_account_idstringYesAd Account ID
Response Schema

Records

Field NameTypeDescription
idstring
namestring
typestring
ad_account_idstring
media_statusstring
file_namestring
file_size_in_bytesinteger
duration_in_secondsnumber
hashstring
download_linkstring
is_demo_mediaboolean
visibilitystring
media_usagesarray<string>
image_metadataobject
video_metadataobject
created_atstring
updated_atstring

Meta

Field NameTypeDescription
next_linkstring

Media Get

Get a single media item by ID

Python SDK

await snapchat_marketing.media.get(
id="<str>"
)

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": "media",
"action": "get",
"params": {
"id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
idstringYesMedia ID

Search and filter media 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 snapchat_marketing.media.search(
query={"filter": {"eq": {"ad_account_id": "<str>"}}}
)

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": "media",
"action": "search",
"params": {
"query": {"filter": {"eq": {"ad_account_id": "<str>"}}}
}
}'

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 meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
ad_account_idstringParent ad account ID
created_atstringCreation timestamp
download_linkstringDownload URL for the media
duration_in_secondsnumberDuration in seconds for video media
file_namestringOriginal file name
file_size_in_bytesintegerFile size in bytes
hashstringMedia file hash
idstringUnique media identifier
image_metadataobjectImage-specific metadata
is_demo_mediabooleanWhether this is demo media
media_statusstringMedia processing status
media_usagesarrayWhere the media is used
namestringMedia name
typestringMedia type
updated_atstringLast update timestamp
video_metadataobjectVideo-specific metadata
visibilitystringMedia visibility setting
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[].ad_account_idstringParent ad account ID
data[].created_atstringCreation timestamp
data[].download_linkstringDownload URL for the media
data[].duration_in_secondsnumberDuration in seconds for video media
data[].file_namestringOriginal file name
data[].file_size_in_bytesintegerFile size in bytes
data[].hashstringMedia file hash
data[].idstringUnique media identifier
data[].image_metadataobjectImage-specific metadata
data[].is_demo_mediabooleanWhether this is demo media
data[].media_statusstringMedia processing status
data[].media_usagesarrayWhere the media is used
data[].namestringMedia name
data[].typestringMedia type
data[].updated_atstringLast update timestamp
data[].video_metadataobjectVideo-specific metadata
data[].visibilitystringMedia visibility setting

Segments

Segments List

Returns audience segments belonging to an ad account

Python SDK

await snapchat_marketing.segments.list(
ad_account_id="<str>"
)

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": "segments",
"action": "list",
"params": {
"ad_account_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
ad_account_idstringYesAd Account ID
Response Schema

Records

Field NameTypeDescription
idstring
namestring
descriptionstring
ad_account_idstring
source_ad_account_idstring
organization_idstring
statusstring
source_typestring
targetable_statusstring
upload_statusstring
retention_in_daysinteger
approximate_number_usersinteger
visible_toarray<string>
created_atstring
updated_atstring

Meta

Field NameTypeDescription
next_linkstring

Segments Get

Get a single audience segment by ID

Python SDK

await snapchat_marketing.segments.get(
id="<str>"
)

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": "segments",
"action": "get",
"params": {
"id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
idstringYesSegment ID

Search and filter segments 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 snapchat_marketing.segments.search(
query={"filter": {"eq": {"ad_account_id": "<str>"}}}
)

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": "segments",
"action": "search",
"params": {
"query": {"filter": {"eq": {"ad_account_id": "<str>"}}}
}
}'

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 meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
ad_account_idstringParent ad account ID
approximate_number_usersintegerApproximate number of users in the segment
created_atstringCreation timestamp
descriptionstringSegment description
idstringUnique segment identifier
namestringSegment name
organization_idstringParent organization ID
retention_in_daysintegerData retention period in days
source_typestringSegment source type
statusstringSegment status
targetable_statusstringWhether the segment is targetable
updated_atstringLast update timestamp
upload_statusstringUpload processing status
visible_toarrayVisibility settings
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[].ad_account_idstringParent ad account ID
data[].approximate_number_usersintegerApproximate number of users in the segment
data[].created_atstringCreation timestamp
data[].descriptionstringSegment description
data[].idstringUnique segment identifier
data[].namestringSegment name
data[].organization_idstringParent organization ID
data[].retention_in_daysintegerData retention period in days
data[].source_typestringSegment source type
data[].statusstringSegment status
data[].targetable_statusstringWhether the segment is targetable
data[].updated_atstringLast update timestamp
data[].upload_statusstringUpload processing status
data[].visible_toarrayVisibility settings