This connector is optimized for AI agents. For the data replication connector, see Snapchat Marketing .
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.
Entity Actions Organizations List , Get , Search Adaccounts List , Get , Search Campaigns List , Get , Search Adsquads List , Get , Search Ads List , Get , Search Creatives List , Get , Search Media List , Get , Search Segments List , 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 Name Type Description idstringnamestringtypestringstatestringaddress_line_1stringadministrative_district_level_1stringlocalitystringpostal_codestringcountrystringcontact_namestringcontact_emailstringcontact_phonestringcontact_phone_optinbooleanaccepted_term_versionstringconfiguration_settingsobjectmy_display_namestringmy_invited_emailstringmy_member_idstringrolesarray<string>createdByCallerbooleanis_agencybooleanverification_request_idstringdemand_sourcestringcreated_atstringupdated_atstring
Field Name Type Description 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 Name Type Required Description idstringYes Organization ID
Organizations Search
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 Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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 Name Type Required Description organization_idstringYes Organization ID
Response Schema Records Field Name Type Description idstringnamestringtypestringstatusstringorganization_idstringadvertiser_organization_idstringcurrencystringtimezonestringbilling_typestringbilling_center_idstringagency_representing_clientbooleanclient_paying_invoicesbooleanfunding_source_idsarray<string>regulationsobjectcreated_atstringupdated_atstring
Field Name Type Description 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 Name Type Required Description idstringYes Ad Account ID
Adaccounts Search
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 Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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 Name Type Required Description ad_account_idstringYes Ad Account ID
Response Schema Records Field Name Type Description idstringnamestringad_account_idstringstatusstringobjectivestringbuy_modelstringcreation_statestringstart_timestringdelivery_statusarray<string>objective_v2_propertiesobjectpacing_properties_versionintegercreated_atstringupdated_atstring
Field Name Type Description 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 Name Type Required Description idstringYes Campaign ID
Campaigns Search
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 Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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 Name Type Required Description ad_account_idstringYes Ad Account ID
Response Schema Records Field Name Type Description idstringnamestringtypestringcampaign_idstringstatusstringauto_bidbooleanbid_strategystringbilling_eventstringchild_ad_typestringcreation_statestringdaily_budget_microintegerlifetime_budget_microintegerdelivery_constraintstringdelivery_properties_versionintegerdelivery_statusarray<string>end_timestringstart_timestringforced_view_settingstringoptimization_goalstringpacing_typestringplacementstringtarget_bidbooleantargetingobjecttargeting_reach_statusstringskadnetwork_propertiesobjectevent_sourcesobjectcreated_atstringupdated_atstring
Field Name Type Description 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 Name Type Required Description idstringYes Ad Squad ID
Adsquads Search
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 Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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 Name Type Required Description ad_account_idstringYes Ad Account ID
Response Schema Records Field Name Type Description idstringnamestringtypestringad_squad_idstringcreative_idstringstatusstringrender_typestringreview_statusstringreview_status_reasonsarray<string>delivery_statusarray<string>created_atstringupdated_atstring
Field Name Type Description 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 Name Type Required Description idstringYes Ad ID
Ads Search
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 Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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 Name Type Required Description ad_account_idstringYes Ad Account ID
Response Schema Records Field Name Type Description idstringnamestringtypestringad_account_idstringad_productstringbrand_namestringcall_to_actionstringheadlinestringrender_typestringreview_statusstringreview_status_detailsstringshareablebooleanforced_view_eligibilitystringpackaging_statusstringtop_snap_crop_positionstringtop_snap_media_idstringad_to_place_propertiesobjectweb_view_propertiesobjectcreated_atstringupdated_atstring
Field Name Type Description 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 Name Type Required Description idstringYes Creative ID
Creatives Search
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 Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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
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 Name Type Required Description ad_account_idstringYes Ad Account ID
Response Schema Records Field Name Type Description idstringnamestringtypestringad_account_idstringmedia_statusstringfile_namestringfile_size_in_bytesintegerduration_in_secondsnumberhashstringdownload_linkstringis_demo_mediabooleanvisibilitystringmedia_usagesarray<string>image_metadataobjectvideo_metadataobjectcreated_atstringupdated_atstring
Field Name Type Description next_linkstring
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 Name Type Required Description idstringYes Media 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 Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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 Name Type Required Description ad_account_idstringYes Ad Account ID
Response Schema Records Field Name Type Description idstringnamestringdescriptionstringad_account_idstringsource_ad_account_idstringorganization_idstringstatusstringsource_typestringtargetable_statusstringupload_statusstringretention_in_daysintegerapproximate_number_usersintegervisible_toarray<string>created_atstringupdated_atstring
Field Name Type Description 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 Name Type Required Description idstringYes Segment ID
Segments Search
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 Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description 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 Name Type Description 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