This connector is optimized for AI agents. For the data replication connector, see Facebook Marketing .
This is the full reference documentation for the Facebook-Marketing agent connector.
Supported entities and actions
The Facebook-Marketing connector supports the following entities and actions.
Entity Actions Current User Get Ad Accounts List , Search Campaigns List , Create , Get , Update , Search Ad Sets List , Create , Get , Update , Search Ads List , Create , Get , Update , Search Ad Creatives List , Search Ads Insights List , Search Ad Account Get , Search Custom Conversions List , Search Images List , Search Videos List , Search Pixels List , Get Pixel Stats List Ad Library List
Current User
Current User Get
Returns information about the current user associated with the access token
Python SDK
await facebook_marketing . current_user . get ( )
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": "current_user", "action": "get" }'
Parameters
Parameter Name Type Required Description fieldsstringNo Comma-separated list of fields to return
Response Schema Records Field Name Type Description idstringnamestring | null
Ad Accounts
Ad Accounts List
Returns a list of ad accounts associated with the current user
Python SDK
await facebook_marketing . ad_accounts . 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": "ad_accounts", "action": "list" }'
Parameters
Parameter Name Type Required Description fieldsstringNo Comma-separated list of fields to return limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description idstringaccount_idstring | nullnamestring | nullaccount_statusinteger | nullagenumber | nullamount_spentstring | nullbalancestring | nullbusinessobject | anybusiness_namestring | nullcreated_timestring | nullcurrencystring | nulldisable_reasoninteger | nullspend_capstring | nulltimezone_idinteger | nulltimezone_namestring | null
Field Name Type Description afterstring | null
Ad Accounts Search
Search and filter ad accounts 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 facebook_marketing . ad_accounts . search ( query = { "filter" : { "eq" : { "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": "ad_accounts", "action": "search", "params": { "query": {"filter": {"eq": {"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 idstringAd account ID account_idstringAd account ID (numeric) namestringAd account name balancestringCurrent balance of the ad account currencystringCurrency used by the ad account account_statusintegerAccount status amount_spentstringTotal amount spent business_namestringBusiness name created_timestringAccount creation time spend_capstringSpend cap timezone_namestringTimezone name
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[].idstringAd account ID data[].account_idstringAd account ID (numeric) data[].namestringAd account name data[].balancestringCurrent balance of the ad account data[].currencystringCurrency used by the ad account data[].account_statusintegerAccount status data[].amount_spentstringTotal amount spent data[].business_namestringBusiness name data[].created_timestringAccount creation time data[].spend_capstringSpend cap data[].timezone_namestringTimezone name
Campaigns
Campaigns List
Returns a list of campaigns for the specified ad account
Python SDK
await facebook_marketing . campaigns . list ( 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": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix) fieldsstringNo Comma-separated list of fields to return limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description idstringnamestring | nullaccount_idstring | nulladlabelsarray | nulladlabels[].idstring | nulladlabels[].namestring | nulladlabels[].created_timestring | nulladlabels[].updated_timestring | nullbid_strategystring | nullboosted_object_idstring | nullbudget_rebalance_flagboolean | nullbudget_remainingnumber | nullbuying_typestring | nulldaily_budgetnumber | nullcreated_timestring | nullconfigured_statusstring | nulleffective_statusstring | nullissues_infoarray | nullissues_info[].error_codestring | nullissues_info[].error_messagestring | nullissues_info[].error_summarystring | nullissues_info[].error_typestring | nullissues_info[].levelstring | nulllifetime_budgetnumber | nullobjectivestring | nullsmart_promotion_typestring | nullsource_campaign_idstring | nullspecial_ad_categorystring | nullspecial_ad_category_countryarray | nullspend_capnumber | nullstart_timestring | nullstatusstring | nullstop_timestring | nullupdated_timestring | null
Field Name Type Description afterstring | null
Campaigns Create
Creates a new ad campaign in the specified ad account
Python SDK
await facebook_marketing . campaigns . create ( 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": "create", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix)
Response Schema Records Field Name Type Description idstring
Campaigns Get
Returns a single campaign by ID
Python SDK
await facebook_marketing . campaigns . get ( campaign_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": { "campaign_id": "<str>" } }'
Parameters
Parameter Name Type Required Description campaign_idstringYes The campaign ID fieldsstringNo Comma-separated list of fields to return
Response Schema Records Field Name Type Description idstringnamestring | nullaccount_idstring | nulladlabelsarray | nulladlabels[].idstring | nulladlabels[].namestring | nulladlabels[].created_timestring | nulladlabels[].updated_timestring | nullbid_strategystring | nullboosted_object_idstring | nullbudget_rebalance_flagboolean | nullbudget_remainingnumber | nullbuying_typestring | nulldaily_budgetnumber | nullcreated_timestring | nullconfigured_statusstring | nulleffective_statusstring | nullissues_infoarray | nullissues_info[].error_codestring | nullissues_info[].error_messagestring | nullissues_info[].error_summarystring | nullissues_info[].error_typestring | nullissues_info[].levelstring | nulllifetime_budgetnumber | nullobjectivestring | nullsmart_promotion_typestring | nullsource_campaign_idstring | nullspecial_ad_categorystring | nullspecial_ad_category_countryarray | nullspend_capnumber | nullstart_timestring | nullstatusstring | nullstop_timestring | nullupdated_timestring | null
Campaigns Update
Updates an existing ad campaign
Python SDK
await facebook_marketing . campaigns . update ( campaign_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": "update", "params": { "campaign_id": "<str>" } }'
Parameters
Parameter Name Type Required Description campaign_idstringYes The campaign ID
Response Schema Records Field Name Type Description successboolean
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 facebook_marketing . campaigns . search ( query = { "filter" : { "eq" : { "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": {"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 idstringCampaign ID namestringCampaign name account_idstringAd account ID statusstringCampaign status effective_statusstringEffective status objectivestringCampaign objective daily_budgetnumberDaily budget in account currency lifetime_budgetnumberLifetime budget budget_remainingnumberRemaining budget created_timestringCampaign creation time start_timestringCampaign start time stop_timestringCampaign stop time updated_timestringLast update time
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[].idstringCampaign ID data[].namestringCampaign name data[].account_idstringAd account ID data[].statusstringCampaign status data[].effective_statusstringEffective status data[].objectivestringCampaign objective data[].daily_budgetnumberDaily budget in account currency data[].lifetime_budgetnumberLifetime budget data[].budget_remainingnumberRemaining budget data[].created_timestringCampaign creation time data[].start_timestringCampaign start time data[].stop_timestringCampaign stop time data[].updated_timestringLast update time
Ad Sets
Ad Sets List
Returns a list of ad sets for the specified ad account
Python SDK
await facebook_marketing . ad_sets . list ( 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": "ad_sets", "action": "list", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix) fieldsstringNo Comma-separated list of fields to return limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description idstringnamestring | nullaccount_idstring | nulladlabelsarray | nulladlabels[].idstring | nulladlabels[].namestring | nulladlabels[].created_timestring | nulladlabels[].updated_timestring | nullbid_amountnumber | nullbid_infoobject | anybid_strategystring | nullbid_constraintsobject | anybudget_remainingnumber | nullcampaign_idstring | nullcreated_timestring | nulldaily_budgetnumber | nulleffective_statusstring | nullend_timestring | nulllearning_stage_infoobject | anylifetime_budgetnumber | nullpromoted_objectobject | anystart_timestring | nulltargetingobject | nullupdated_timestring | null
Field Name Type Description afterstring | null
Ad Sets Create
Creates a new ad set in the specified ad account
Python SDK
await facebook_marketing . ad_sets . create ( 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": "ad_sets", "action": "create", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix)
Response Schema Records Field Name Type Description idstring
Ad Sets Get
Returns a single ad set by ID
Python SDK
await facebook_marketing . ad_sets . get ( adset_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": "ad_sets", "action": "get", "params": { "adset_id": "<str>" } }'
Parameters
Parameter Name Type Required Description adset_idstringYes The ad set ID fieldsstringNo Comma-separated list of fields to return
Response Schema Records Field Name Type Description idstringnamestring | nullaccount_idstring | nulladlabelsarray | nulladlabels[].idstring | nulladlabels[].namestring | nulladlabels[].created_timestring | nulladlabels[].updated_timestring | nullbid_amountnumber | nullbid_infoobject | anybid_strategystring | nullbid_constraintsobject | anybudget_remainingnumber | nullcampaign_idstring | nullcreated_timestring | nulldaily_budgetnumber | nulleffective_statusstring | nullend_timestring | nulllearning_stage_infoobject | anylifetime_budgetnumber | nullpromoted_objectobject | anystart_timestring | nulltargetingobject | nullupdated_timestring | null
Ad Sets Update
Updates an existing ad set
Python SDK
await facebook_marketing . ad_sets . update ( adset_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": "ad_sets", "action": "update", "params": { "adset_id": "<str>" } }'
Parameters
Parameter Name Type Required Description adset_idstringYes The ad set ID
Response Schema Records Field Name Type Description successboolean
Ad Sets Search
Search and filter ad sets 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 facebook_marketing . ad_sets . search ( query = { "filter" : { "eq" : { "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": "ad_sets", "action": "search", "params": { "query": {"filter": {"eq": {"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 idstringAd Set ID namestringAd Set name account_idstringAd account ID campaign_idstringParent campaign ID effective_statusstringEffective status daily_budgetnumberDaily budget lifetime_budgetnumberLifetime budget budget_remainingnumberRemaining budget bid_amountnumberBid amount bid_strategystringBid strategy created_timestringAd set creation time start_timestringAd set start time end_timestringAd set end time updated_timestringLast update time
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[].idstringAd Set ID data[].namestringAd Set name data[].account_idstringAd account ID data[].campaign_idstringParent campaign ID data[].effective_statusstringEffective status data[].daily_budgetnumberDaily budget data[].lifetime_budgetnumberLifetime budget data[].budget_remainingnumberRemaining budget data[].bid_amountnumberBid amount data[].bid_strategystringBid strategy data[].created_timestringAd set creation time data[].start_timestringAd set start time data[].end_timestringAd set end time data[].updated_timestringLast update time
Ads
Ads List
Returns a list of ads for the specified ad account
Python SDK
await facebook_marketing . ads . list ( 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": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix) fieldsstringNo Comma-separated list of fields to return limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description idstringnamestring | nullaccount_idstring | nulladset_idstring | nullcampaign_idstring | nulladlabelsarray | nulladlabels[].idstring | nulladlabels[].namestring | nulladlabels[].created_timestring | nulladlabels[].updated_timestring | nullbid_amountinteger | nullbid_infoobject | anybid_typestring | nullconfigured_statusstring | nullconversion_specsarray | nullcreated_timestring | nullcreativeobject | anyeffective_statusstring | nulllast_updated_by_app_idstring | nullrecommendationsarray | nullrecommendations[].blame_fieldstring | nullrecommendations[].codeinteger | nullrecommendations[].confidencestring | nullrecommendations[].importancestring | nullrecommendations[].messagestring | nullrecommendations[].titlestring | nullsource_ad_idstring | nullstatusstring | nulltracking_specsarray | nullupdated_timestring | null
Field Name Type Description afterstring | null
Ads Create
Creates a new ad in the specified ad account. Note - requires a Facebook Page to be connected to the ad account.
Python SDK
await facebook_marketing . ads . create ( 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": "create", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix)
Response Schema Records Field Name Type Description idstring
Ads Get
Returns a single ad by ID
Python SDK
await facebook_marketing . ads . get ( ad_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": { "ad_id": "<str>" } }'
Parameters
Parameter Name Type Required Description ad_idstringYes The ad ID fieldsstringNo Comma-separated list of fields to return
Response Schema Records Field Name Type Description idstringnamestring | nullaccount_idstring | nulladset_idstring | nullcampaign_idstring | nulladlabelsarray | nulladlabels[].idstring | nulladlabels[].namestring | nulladlabels[].created_timestring | nulladlabels[].updated_timestring | nullbid_amountinteger | nullbid_infoobject | anybid_typestring | nullconfigured_statusstring | nullconversion_specsarray | nullcreated_timestring | nullcreativeobject | anyeffective_statusstring | nulllast_updated_by_app_idstring | nullrecommendationsarray | nullrecommendations[].blame_fieldstring | nullrecommendations[].codeinteger | nullrecommendations[].confidencestring | nullrecommendations[].importancestring | nullrecommendations[].messagestring | nullrecommendations[].titlestring | nullsource_ad_idstring | nullstatusstring | nulltracking_specsarray | nullupdated_timestring | null
Ads Update
Updates an existing ad
Python SDK
await facebook_marketing . ads . update ( ad_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": "update", "params": { "ad_id": "<str>" } }'
Parameters
Parameter Name Type Required Description ad_idstringYes The ad ID
Response Schema Records Field Name Type Description successboolean
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 facebook_marketing . ads . search ( query = { "filter" : { "eq" : { "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": {"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 idstringAd ID namestringAd name account_idstringAd account ID adset_idstringParent ad set ID campaign_idstringParent campaign ID statusstringAd status effective_statusstringEffective status created_timestringAd creation time updated_timestringLast update time
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[].idstringAd ID data[].namestringAd name data[].account_idstringAd account ID data[].adset_idstringParent ad set ID data[].campaign_idstringParent campaign ID data[].statusstringAd status data[].effective_statusstringEffective status data[].created_timestringAd creation time data[].updated_timestringLast update time
Ad Creatives
Ad Creatives List
Returns a list of ad creatives for the specified ad account
Python SDK
await facebook_marketing . ad_creatives . list ( 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": "ad_creatives", "action": "list", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix) fieldsstringNo Comma-separated list of fields to return limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description idstringnamestring | nullaccount_idstring | nullactor_idstring | nullbodystring | nullcall_to_action_typestring | nulleffective_object_story_idstring | nullimage_hashstring | nullimage_urlstring | nulllink_urlstring | nullobject_story_idstring | nullobject_story_specobject | nullobject_typestring | nullstatusstring | nullthumbnail_urlstring | nulltitlestring | nullurl_tagsstring | null
Field Name Type Description afterstring | null
Ad Creatives Search
Search and filter ad 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 facebook_marketing . ad_creatives . search ( query = { "filter" : { "eq" : { "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": "ad_creatives", "action": "search", "params": { "query": {"filter": {"eq": {"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 idstringAd Creative ID namestringAd Creative name account_idstringAd account ID bodystringAd body text titlestringAd title statusstringCreative status image_urlstringImage URL thumbnail_urlstringThumbnail URL link_urlstringLink URL call_to_action_typestringCall to action type
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[].idstringAd Creative ID data[].namestringAd Creative name data[].account_idstringAd account ID data[].bodystringAd body text data[].titlestringAd title data[].statusstringCreative status data[].image_urlstringImage URL data[].thumbnail_urlstringThumbnail URL data[].link_urlstringLink URL data[].call_to_action_typestringCall to action type
Ads Insights
Ads Insights List
Returns performance insights for the specified ad account
Python SDK
await facebook_marketing . ads_insights . list ( 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_insights", "action": "list", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix) fieldsstringNo Comma-separated list of fields to return date_preset"today" | "yesterday" | "this_month" | "last_month" | "this_quarter" | "maximum" | "last_3d" | "last_7d" | "last_14d" | "last_28d" | "last_30d" | "last_90d" | "last_week_mon_sun" | "last_week_sun_sat" | "last_quarter" | "last_year" | "this_week_mon_today" | "this_week_sun_today" | "this_year"No Predefined date range time_rangestringNo Time range as JSON object with since and until dates (YYYY-MM-DD) level"ad" | "adset" | "campaign" | "account"No Level of aggregation time_incrementstringNo Number of days (1-90) to aggregate data over, or 'monthly' for monthly aggregation, or 'all_days' for daily breakdown. Use time_increment=1 to get daily insights data. limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description account_idstring | nullaccount_namestring | nullcampaign_idstring | nullcampaign_namestring | nulladset_idstring | nulladset_namestring | nullad_idstring | nullad_namestring | nullclicksinteger | nullimpressionsinteger | nullreachinteger | nullspendnumber | nullcpcnumber | nullcpmnumber | nullctrnumber | nulldate_startstring | nulldate_stopstring | nullactionsarray | nullactions[].action_typestring | nullactions[].action_destinationstring | nullactions[].action_target_idstring | nullactions[].valuenumber | nullactions[].1d_clicknumber | nullactions[].7d_clicknumber | nullactions[].28d_clicknumber | nullactions[].1d_viewnumber | nullactions[].7d_viewnumber | nullactions[].28d_viewnumber | nullaction_valuesarray | nullaction_values[].action_typestring | nullaction_values[].action_destinationstring | nullaction_values[].action_target_idstring | nullaction_values[].valuenumber | nullaction_values[].1d_clicknumber | nullaction_values[].7d_clicknumber | nullaction_values[].28d_clicknumber | nullaction_values[].1d_viewnumber | nullaction_values[].7d_viewnumber | nullaction_values[].28d_viewnumber | null
Field Name Type Description afterstring | null
Ads Insights Search
Search and filter ads insights 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 facebook_marketing . ads_insights . search ( query = { "filter" : { "eq" : { "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_insights", "action": "search", "params": { "query": {"filter": {"eq": {"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 account_idstringAd account ID account_namestringAd account name campaign_idstringCampaign ID campaign_namestringCampaign name adset_idstringAd set ID adset_namestringAd set name ad_idstringAd ID ad_namestringAd name clicksintegerNumber of clicks impressionsintegerNumber of impressions reachintegerNumber of unique people reached spendnumberAmount spent cpcnumberCost per click cpmnumberCost per 1000 impressions ctrnumberClick-through rate date_startstringStart date of the reporting period date_stopstringEnd date of the reporting period actionsarrayTotal number of actions taken action_valuesarrayAction values taken on the ad
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[].account_idstringAd account ID data[].account_namestringAd account name data[].campaign_idstringCampaign ID data[].campaign_namestringCampaign name data[].adset_idstringAd set ID data[].adset_namestringAd set name data[].ad_idstringAd ID data[].ad_namestringAd name data[].clicksintegerNumber of clicks data[].impressionsintegerNumber of impressions data[].reachintegerNumber of unique people reached data[].spendnumberAmount spent data[].cpcnumberCost per click data[].cpmnumberCost per 1000 impressions data[].ctrnumberClick-through rate data[].date_startstringStart date of the reporting period data[].date_stopstringEnd date of the reporting period data[].actionsarrayTotal number of actions taken data[].action_valuesarrayAction values taken on the ad
Ad Account
Ad Account Get
Returns information about the specified ad account including balance and currency
Python SDK
await facebook_marketing . ad_account . get ( 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": "ad_account", "action": "get", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix) fieldsstringNo Comma-separated list of fields to return
Response Schema Records Field Name Type Description idstringaccount_idstring | nullnamestring | nullaccount_statusinteger | nullagenumber | nullamount_spentstring | nullbalancestring | nullbusinessobject | anybusiness_citystring | nullbusiness_country_codestring | nullbusiness_namestring | nullbusiness_statestring | nullbusiness_streetstring | nullbusiness_street2string | nullbusiness_zipstring | nullcreated_timestring | nullcurrencystring | nulldisable_reasoninteger | nullend_advertiserstring | nullend_advertiser_namestring | nullfunding_sourcestring | nullfunding_source_detailsobject | nullhas_migrated_permissionsboolean | nullis_personalinteger | nullis_prepay_accountboolean | nullis_tax_id_requiredboolean | nullmin_campaign_group_spend_capstring | nullmin_daily_budgetinteger | nullownerstring | nullspend_capstring | nulltimezone_idinteger | nulltimezone_namestring | nulltimezone_offset_hours_utcnumber | null
Ad Account Search
Search and filter ad account 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 facebook_marketing . ad_account . search ( query = { "filter" : { "eq" : { "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": "ad_account", "action": "search", "params": { "query": {"filter": {"eq": {"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 idstringAd account ID account_idstringAd account ID (numeric) namestringAd account name balancestringCurrent balance of the ad account currencystringCurrency used by the ad account account_statusintegerAccount status amount_spentstringTotal amount spent business_namestringBusiness name created_timestringAccount creation time spend_capstringSpend cap timezone_namestringTimezone name
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[].idstringAd account ID data[].account_idstringAd account ID (numeric) data[].namestringAd account name data[].balancestringCurrent balance of the ad account data[].currencystringCurrency used by the ad account data[].account_statusintegerAccount status data[].amount_spentstringTotal amount spent data[].business_namestringBusiness name data[].created_timestringAccount creation time data[].spend_capstringSpend cap data[].timezone_namestringTimezone name
Custom Conversions
Custom Conversions List
Returns a list of custom conversions for the specified ad account
Python SDK
await facebook_marketing . custom_conversions . list ( 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": "custom_conversions", "action": "list", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix) fieldsstringNo Comma-separated list of fields to return limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description idstringnamestring | nullaccount_idstring | nullbusinessstring | nullcreation_timestring | nullcustom_event_typestring | nulldata_sourcesarray | nulldata_sources[].idstring | nulldata_sources[].source_typestring | nulldata_sources[].namestring | nulldefault_conversion_valuenumber | nulldescriptionstring | nullevent_source_typestring | nullfirst_fired_timestring | nullis_archivedboolean | nullis_unavailableboolean | nulllast_fired_timestring | nulloffline_conversion_data_setstring | nullretention_daysnumber | nullrulestring | null
Field Name Type Description afterstring | null
Custom Conversions Search
Search and filter custom conversions 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 facebook_marketing . custom_conversions . search ( query = { "filter" : { "eq" : { "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": "custom_conversions", "action": "search", "params": { "query": {"filter": {"eq": {"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 idstringCustom Conversion ID namestringCustom Conversion name account_idstringAd account ID descriptionstringDescription custom_event_typestringCustom event type creation_timestringCreation time first_fired_timestringFirst fired time last_fired_timestringLast fired time is_archivedbooleanWhether the conversion is archived
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[].idstringCustom Conversion ID data[].namestringCustom Conversion name data[].account_idstringAd account ID data[].descriptionstringDescription data[].custom_event_typestringCustom event type data[].creation_timestringCreation time data[].first_fired_timestringFirst fired time data[].last_fired_timestringLast fired time data[].is_archivedbooleanWhether the conversion is archived
Images
Images List
Returns a list of ad images for the specified ad account
Python SDK
await facebook_marketing . images . list ( 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": "images", "action": "list", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix) fieldsstringNo Comma-separated list of fields to return limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description idstring | nullnamestring | nullaccount_idstring | nullcreated_timestring | nullcreativesarray | nullfilenamestring | nullhashstring | nullheightinteger | nullis_associated_creatives_in_adgroupsboolean | nulloriginal_heightinteger | nulloriginal_widthinteger | nullpermalink_urlstring | nullstatusstring | nullupdated_timestring | nullurlstring | nullurl_128string | nullwidthinteger | null
Field Name Type Description afterstring | null
Images Search
Search and filter images 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 facebook_marketing . images . search ( query = { "filter" : { "eq" : { "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": "images", "action": "search", "params": { "query": {"filter": {"eq": {"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 idstringImage ID namestringImage name account_idstringAd account ID hashstringImage hash urlstringImage URL permalink_urlstringPermalink URL widthintegerImage width heightintegerImage height statusstringImage status created_timestringCreation time updated_timestringLast update time
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[].idstringImage ID data[].namestringImage name data[].account_idstringAd account ID data[].hashstringImage hash data[].urlstringImage URL data[].permalink_urlstringPermalink URL data[].widthintegerImage width data[].heightintegerImage height data[].statusstringImage status data[].created_timestringCreation time data[].updated_timestringLast update time
Videos
Videos List
Returns a list of ad videos for the specified ad account
Python SDK
await facebook_marketing . videos . list ( 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": "videos", "action": "list", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix) fieldsstringNo Comma-separated list of fields to return limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description idstringtitlestring | nullaccount_idstring | nullad_breaksarray | nullbackdated_timestring | nullbackdated_time_granularitystring | nullcontent_categorystring | nullcontent_tagsarray | nullcreated_timestring | nullcustom_labelsarray | nulldescriptionstring | nullembed_htmlstring | nullembeddableboolean | nullformatarray | nullformat[].filterstring | nullformat[].embed_htmlstring | nullformat[].widthinteger | nullformat[].heightinteger | nullformat[].picturestring | nulliconstring | nullis_crosspost_videoboolean | nullis_crossposting_eligibleboolean | nullis_episodeboolean | nullis_instagram_eligibleboolean | nulllengthnumber | nulllive_statusstring | nullpermalink_urlstring | nullpost_viewsinteger | nullpremiere_living_room_statusboolean | nullpublishedboolean | nullscheduled_publish_timestring | nullsourcestring | nulluniversal_video_idstring | nullupdated_timestring | nullviewsinteger | null
Field Name Type Description afterstring | null
Videos Search
Search and filter videos 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 facebook_marketing . videos . search ( query = { "filter" : { "eq" : { "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": "videos", "action": "search", "params": { "query": {"filter": {"eq": {"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 idstringVideo ID titlestringVideo title account_idstringAd account ID descriptionstringVideo description lengthnumberVideo length in seconds sourcestringVideo source URL permalink_urlstringPermalink URL viewsintegerNumber of views created_timestringCreation time updated_timestringLast update time
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[].idstringVideo ID data[].titlestringVideo title data[].account_idstringAd account ID data[].descriptionstringVideo description data[].lengthnumberVideo length in seconds data[].sourcestringVideo source URL data[].permalink_urlstringPermalink URL data[].viewsintegerNumber of views data[].created_timestringCreation time data[].updated_timestringLast update time
Pixels
Pixels List
Returns a list of Facebook pixels for the specified ad account, including pixel configuration and event quality data
Python SDK
await facebook_marketing . pixels . list ( 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": "pixels", "action": "list", "params": { "account_id": "<str>" } }'
Parameters
Parameter Name Type Required Description account_idstringYes The Facebook Ad Account ID (without act_ prefix) fieldsstringNo Comma-separated list of fields to return limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description idstringnamestring | nullcreation_timestring | nullcreatorobject | nulldata_use_settingstring | nullenable_automatic_matchingboolean | nullfirst_party_cookie_statusstring | nullis_created_by_appboolean | nullis_crmboolean | nullis_unavailableboolean | nulllast_fired_timestring | nullowner_ad_accountobject | nullowner_businessobject | null
Field Name Type Description afterstring | null
Pixels Get
Returns details about a single Facebook pixel by ID
Python SDK
await facebook_marketing . pixels . get ( pixel_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": "pixels", "action": "get", "params": { "pixel_id": "<str>" } }'
Parameters
Parameter Name Type Required Description pixel_idstringYes The Facebook pixel ID fieldsstringNo Comma-separated list of fields to return
Response Schema Records Field Name Type Description idstringnamestring | nullcreation_timestring | nullcreatorobject | nulldata_use_settingstring | nullenable_automatic_matchingboolean | nullfirst_party_cookie_statusstring | nullis_created_by_appboolean | nullis_crmboolean | nullis_unavailableboolean | nulllast_fired_timestring | nullowner_ad_accountobject | nullowner_businessobject | null
Pixel Stats
Pixel Stats List
Returns event quality and stats data for a Facebook pixel, including event counts, match quality scores, and deduplication metrics
Python SDK
await facebook_marketing . pixel_stats . list ( pixel_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": "pixel_stats", "action": "list", "params": { "pixel_id": "<str>" } }'
Parameters
Parameter Name Type Required Description pixel_idstringYes The Facebook pixel ID start_timestringNo Start time for stats period as Unix timestamp end_timestringNo End time for stats period as Unix timestamp aggregation"event" | "device" | "custom_data_field"No Aggregation level for stats
Response Schema Records Field Name Type Description dataarray | nulleventstring | nullevent_sourcestring | nulltotal_countinteger | nulltotal_matched_countinteger | nulltotal_deduped_countinteger | nulltest_events_countinteger | null
Ad Library
Ad Library List
Search the Facebook Ad Library for ads about social issues, elections or politics, and ads delivered to the UK or EU. Returns archived ads matching the specified search criteria including ad creative content, delivery dates, spend ranges, and demographic reach data.
Python SDK
await facebook_marketing . ad_library . list ( ad_reached_countries = "<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": "ad_library", "action": "list", "params": { "ad_reached_countries": "<str>" } }'
Parameters
Parameter Name Type Required Description ad_reached_countriesstringYes Search by ISO country code to return ads that reached specific countries. Use ALL to search all countries. search_termsstringNo The terms to search for. Blank space is treated as logical AND. Limit of 100 characters. search_page_idsstringNo Search for ads by specific Facebook Page IDs (comma-separated, up to 10) ad_type"ALL" | "EMPLOYMENT_ADS" | "FINANCIAL_PRODUCTS_AND_SERVICES_ADS" | "HOUSING_ADS" | "POLITICAL_AND_ISSUE_ADS"No Filter by ad type category ad_active_status"ACTIVE" | "ALL" | "INACTIVE"No Filter by ad active status ad_delivery_date_minstringNo Search for ads delivered after this date (inclusive, YYYY-MM-DD) ad_delivery_date_maxstringNo Search for ads delivered before this date (inclusive, YYYY-MM-DD) bylinesstringNo Filter by paid-for-by disclaimer byline (JSON array of strings). Available only for POLITICAL_AND_ISSUE_ADS. languagesstringNo Filter by language codes (ISO 639-1 JSON array, e.g. "['en','es']") media_type"ALL" | "IMAGE" | "MEME" | "VIDEO" | "NONE"No Filter by media type in the ad publisher_platformsstringNo Filter by Meta platform where the ad appeared (JSON array) search_type"KEYWORD_UNORDERED" | "KEYWORD_EXACT_PHRASE"No Type of search to use for search_terms unmask_removed_contentbooleanNo Whether to reveal content removed for violating standards fieldsstringNo Comma-separated list of fields to return limitintegerNo Maximum number of results to return afterstringNo Cursor for pagination
Response Schema Records Field Name Type Description idstringad_creation_timestring | nullad_creative_bodiesarray | nullad_creative_link_captionsarray | nullad_creative_link_descriptionsarray | nullad_creative_link_titlesarray | nullad_delivery_start_timestring | nullad_delivery_stop_timestring | nullad_snapshot_urlstring | nullage_country_gender_reach_breakdownarray | nullbeneficiary_payersarray | nullbr_total_reachinteger | nullbylinesstring | nullcurrencystring | nulldelivery_by_regionarray | nulldemographic_distributionarray | nullestimated_audience_sizeobject | nulleu_total_reachinteger | nullimpressionsobject | nulllanguagesarray | nullpage_idstring | nullpage_namestring | nullpublisher_platformsarray | nullspendobject | nulltarget_agesarray | nulltarget_genderstring | nulltarget_locationsarray | nulltotal_reach_by_locationarray | null
Field Name Type Description afterstring | null