Skip to main content

Facebook-Marketing full reference

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.

EntityActions
CampaignsList, Get, Search
Ad SetsList, Get, Search
AdsList, Get, Search
Ad CreativesList, Search
Ads InsightsList, Search
Custom ConversionsList, Search
ImagesList, Search
VideosList, Search

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/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaigns",
"action": "list",
"params": {
"account_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
account_idstringYesThe Facebook Ad Account ID (without act_ prefix)
fieldsstringNoComma-separated list of fields to return
limitintegerNoMaximum number of results to return
afterstringNoCursor for pagination
Response Schema

Records

Field NameTypeDescription
idstring
namestring | null
account_idstring | null
adlabelsarray | null
adlabels[].idstring | null
adlabels[].namestring | null
adlabels[].created_timestring | null
adlabels[].updated_timestring | null
bid_strategystring | null
boosted_object_idstring | null
budget_rebalance_flagboolean | null
budget_remainingnumber | null
buying_typestring | null
daily_budgetnumber | null
created_timestring | null
configured_statusstring | null
effective_statusstring | null
issues_infoarray | null
issues_info[].error_codestring | null
issues_info[].error_messagestring | null
issues_info[].error_summarystring | null
issues_info[].error_typestring | null
issues_info[].levelstring | null
lifetime_budgetnumber | null
objectivestring | null
smart_promotion_typestring | null
source_campaign_idstring | null
special_ad_categorystring | null
special_ad_category_countryarray | null
spend_capnumber | null
start_timestring | null
statusstring | null
stop_timestring | null
updated_timestring | null

Meta

Field NameTypeDescription
afterstring | null

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/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaigns",
"action": "get",
"params": {
"campaign_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
campaign_idstringYesThe campaign ID
fieldsstringNoComma-separated list of fields to return
Response Schema

Records

Field NameTypeDescription
idstring
namestring | null
account_idstring | null
adlabelsarray | null
adlabels[].idstring | null
adlabels[].namestring | null
adlabels[].created_timestring | null
adlabels[].updated_timestring | null
bid_strategystring | null
boosted_object_idstring | null
budget_rebalance_flagboolean | null
budget_remainingnumber | null
buying_typestring | null
daily_budgetnumber | null
created_timestring | null
configured_statusstring | null
effective_statusstring | null
issues_infoarray | null
issues_info[].error_codestring | null
issues_info[].error_messagestring | null
issues_info[].error_summarystring | null
issues_info[].error_typestring | null
issues_info[].levelstring | null
lifetime_budgetnumber | null
objectivestring | null
smart_promotion_typestring | null
source_campaign_idstring | null
special_ad_categorystring | null
special_ad_category_countryarray | null
spend_capnumber | null
start_timestring | null
statusstring | null
stop_timestring | null
updated_timestring | null

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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 NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.idstringCampaign ID
hits[].data.namestringCampaign name
hits[].data.account_idstringAd account ID
hits[].data.statusstringCampaign status
hits[].data.effective_statusstringEffective status
hits[].data.objectivestringCampaign objective
hits[].data.daily_budgetnumberDaily budget in account currency
hits[].data.lifetime_budgetnumberLifetime budget
hits[].data.budget_remainingnumberRemaining budget
hits[].data.created_timestringCampaign creation time
hits[].data.start_timestringCampaign start time
hits[].data.stop_timestringCampaign stop time
hits[].data.updated_timestringLast update time
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
account_idstringYesThe Facebook Ad Account ID (without act_ prefix)
fieldsstringNoComma-separated list of fields to return
limitintegerNoMaximum number of results to return
afterstringNoCursor for pagination
Response Schema

Records

Field NameTypeDescription
idstring
namestring | null
account_idstring | null
adlabelsarray | null
adlabels[].idstring | null
adlabels[].namestring | null
adlabels[].created_timestring | null
adlabels[].updated_timestring | null
bid_amountnumber | null
bid_infoobject | any
bid_strategystring | null
bid_constraintsobject | any
budget_remainingnumber | null
campaign_idstring | null
created_timestring | null
daily_budgetnumber | null
effective_statusstring | null
end_timestring | null
learning_stage_infoobject | any
lifetime_budgetnumber | null
promoted_objectobject | any
start_timestring | null
targetingobject | null
updated_timestring | null

Meta

Field NameTypeDescription
afterstring | null

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
adset_idstringYesThe ad set ID
fieldsstringNoComma-separated list of fields to return
Response Schema

Records

Field NameTypeDescription
idstring
namestring | null
account_idstring | null
adlabelsarray | null
adlabels[].idstring | null
adlabels[].namestring | null
adlabels[].created_timestring | null
adlabels[].updated_timestring | null
bid_amountnumber | null
bid_infoobject | any
bid_strategystring | null
bid_constraintsobject | any
budget_remainingnumber | null
campaign_idstring | null
created_timestring | null
daily_budgetnumber | null
effective_statusstring | null
end_timestring | null
learning_stage_infoobject | any
lifetime_budgetnumber | null
promoted_objectobject | any
start_timestring | null
targetingobject | null
updated_timestring | null

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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 NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.idstringAd Set ID
hits[].data.namestringAd Set name
hits[].data.account_idstringAd account ID
hits[].data.campaign_idstringParent campaign ID
hits[].data.effective_statusstringEffective status
hits[].data.daily_budgetnumberDaily budget
hits[].data.lifetime_budgetnumberLifetime budget
hits[].data.budget_remainingnumberRemaining budget
hits[].data.bid_amountnumberBid amount
hits[].data.bid_strategystringBid strategy
hits[].data.created_timestringAd set creation time
hits[].data.start_timestringAd set start time
hits[].data.end_timestringAd set end time
hits[].data.updated_timestringLast update time
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds

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/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "ads",
"action": "list",
"params": {
"account_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
account_idstringYesThe Facebook Ad Account ID (without act_ prefix)
fieldsstringNoComma-separated list of fields to return
limitintegerNoMaximum number of results to return
afterstringNoCursor for pagination
Response Schema

Records

Field NameTypeDescription
idstring
namestring | null
account_idstring | null
adset_idstring | null
campaign_idstring | null
adlabelsarray | null
adlabels[].idstring | null
adlabels[].namestring | null
adlabels[].created_timestring | null
adlabels[].updated_timestring | null
bid_amountinteger | null
bid_infoobject | any
bid_typestring | null
configured_statusstring | null
conversion_specsarray | null
created_timestring | null
creativeobject | any
effective_statusstring | null
last_updated_by_app_idstring | null
recommendationsarray | null
recommendations[].blame_fieldstring | null
recommendations[].codeinteger | null
recommendations[].confidencestring | null
recommendations[].importancestring | null
recommendations[].messagestring | null
recommendations[].titlestring | null
source_ad_idstring | null
statusstring | null
tracking_specsarray | null
updated_timestring | null

Meta

Field NameTypeDescription
afterstring | null

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/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "ads",
"action": "get",
"params": {
"ad_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
ad_idstringYesThe ad ID
fieldsstringNoComma-separated list of fields to return
Response Schema

Records

Field NameTypeDescription
idstring
namestring | null
account_idstring | null
adset_idstring | null
campaign_idstring | null
adlabelsarray | null
adlabels[].idstring | null
adlabels[].namestring | null
adlabels[].created_timestring | null
adlabels[].updated_timestring | null
bid_amountinteger | null
bid_infoobject | any
bid_typestring | null
configured_statusstring | null
conversion_specsarray | null
created_timestring | null
creativeobject | any
effective_statusstring | null
last_updated_by_app_idstring | null
recommendationsarray | null
recommendations[].blame_fieldstring | null
recommendations[].codeinteger | null
recommendations[].confidencestring | null
recommendations[].importancestring | null
recommendations[].messagestring | null
recommendations[].titlestring | null
source_ad_idstring | null
statusstring | null
tracking_specsarray | null
updated_timestring | null

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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 NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.idstringAd ID
hits[].data.namestringAd name
hits[].data.account_idstringAd account ID
hits[].data.adset_idstringParent ad set ID
hits[].data.campaign_idstringParent campaign ID
hits[].data.statusstringAd status
hits[].data.effective_statusstringEffective status
hits[].data.created_timestringAd creation time
hits[].data.updated_timestringLast update time
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
account_idstringYesThe Facebook Ad Account ID (without act_ prefix)
fieldsstringNoComma-separated list of fields to return
limitintegerNoMaximum number of results to return
afterstringNoCursor for pagination
Response Schema

Records

Field NameTypeDescription
idstring
namestring | null
account_idstring | null
actor_idstring | null
bodystring | null
call_to_action_typestring | null
effective_object_story_idstring | null
image_hashstring | null
image_urlstring | null
link_urlstring | null
object_story_idstring | null
object_story_specobject | null
object_typestring | null
statusstring | null
thumbnail_urlstring | null
titlestring | null
url_tagsstring | null

Meta

Field NameTypeDescription
afterstring | null

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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 NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.idstringAd Creative ID
hits[].data.namestringAd Creative name
hits[].data.account_idstringAd account ID
hits[].data.bodystringAd body text
hits[].data.titlestringAd title
hits[].data.statusstringCreative status
hits[].data.image_urlstringImage URL
hits[].data.thumbnail_urlstringThumbnail URL
hits[].data.link_urlstringLink URL
hits[].data.call_to_action_typestringCall to action type
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
account_idstringYesThe Facebook Ad Account ID (without act_ prefix)
fieldsstringNoComma-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"NoPredefined date range
time_rangestringNoTime range as JSON object with since and until dates (YYYY-MM-DD)
level"ad" | "adset" | "campaign" | "account"NoLevel of aggregation
limitintegerNoMaximum number of results to return
afterstringNoCursor for pagination
Response Schema

Records

Field NameTypeDescription
account_idstring | null
account_namestring | null
campaign_idstring | null
campaign_namestring | null
adset_idstring | null
adset_namestring | null
ad_idstring | null
ad_namestring | null
clicksinteger | null
impressionsinteger | null
reachinteger | null
spendnumber | null
cpcnumber | null
cpmnumber | null
ctrnumber | null
date_startstring | null
date_stopstring | null

Meta

Field NameTypeDescription
afterstring | null

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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
Response Schema
Field NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.account_idstringAd account ID
hits[].data.account_namestringAd account name
hits[].data.campaign_idstringCampaign ID
hits[].data.campaign_namestringCampaign name
hits[].data.adset_idstringAd set ID
hits[].data.adset_namestringAd set name
hits[].data.ad_idstringAd ID
hits[].data.ad_namestringAd name
hits[].data.clicksintegerNumber of clicks
hits[].data.impressionsintegerNumber of impressions
hits[].data.reachintegerNumber of unique people reached
hits[].data.spendnumberAmount spent
hits[].data.cpcnumberCost per click
hits[].data.cpmnumberCost per 1000 impressions
hits[].data.ctrnumberClick-through rate
hits[].data.date_startstringStart date of the reporting period
hits[].data.date_stopstringEnd date of the reporting period
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
account_idstringYesThe Facebook Ad Account ID (without act_ prefix)
fieldsstringNoComma-separated list of fields to return
limitintegerNoMaximum number of results to return
afterstringNoCursor for pagination
Response Schema

Records

Field NameTypeDescription
idstring
namestring | null
account_idstring | null
businessstring | null
creation_timestring | null
custom_event_typestring | null
data_sourcesarray | null
data_sources[].idstring | null
data_sources[].source_typestring | null
data_sources[].namestring | null
default_conversion_valuenumber | null
descriptionstring | null
event_source_typestring | null
first_fired_timestring | null
is_archivedboolean | null
is_unavailableboolean | null
last_fired_timestring | null
offline_conversion_data_setstring | null
retention_daysnumber | null
rulestring | null

Meta

Field NameTypeDescription
afterstring | null

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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 NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.idstringCustom Conversion ID
hits[].data.namestringCustom Conversion name
hits[].data.account_idstringAd account ID
hits[].data.descriptionstringDescription
hits[].data.custom_event_typestringCustom event type
hits[].data.creation_timestringCreation time
hits[].data.first_fired_timestringFirst fired time
hits[].data.last_fired_timestringLast fired time
hits[].data.is_archivedbooleanWhether the conversion is archived
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds

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/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "images",
"action": "list",
"params": {
"account_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
account_idstringYesThe Facebook Ad Account ID (without act_ prefix)
fieldsstringNoComma-separated list of fields to return
limitintegerNoMaximum number of results to return
afterstringNoCursor for pagination
Response Schema

Records

Field NameTypeDescription
idstring | null
namestring | null
account_idstring | null
created_timestring | null
creativesarray | null
filenamestring | null
hashstring | null
heightinteger | null
is_associated_creatives_in_adgroupsboolean | null
original_heightinteger | null
original_widthinteger | null
permalink_urlstring | null
statusstring | null
updated_timestring | null
urlstring | null
url_128string | null
widthinteger | null

Meta

Field NameTypeDescription
afterstring | null

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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 NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.idstringImage ID
hits[].data.namestringImage name
hits[].data.account_idstringAd account ID
hits[].data.hashstringImage hash
hits[].data.urlstringImage URL
hits[].data.permalink_urlstringPermalink URL
hits[].data.widthintegerImage width
hits[].data.heightintegerImage height
hits[].data.statusstringImage status
hits[].data.created_timestringCreation time
hits[].data.updated_timestringLast update time
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds

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/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "videos",
"action": "list",
"params": {
"account_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
account_idstringYesThe Facebook Ad Account ID (without act_ prefix)
fieldsstringNoComma-separated list of fields to return
limitintegerNoMaximum number of results to return
afterstringNoCursor for pagination
Response Schema

Records

Field NameTypeDescription
idstring
titlestring | null
account_idstring | null
ad_breaksarray | null
backdated_timestring | null
backdated_time_granularitystring | null
content_categorystring | null
content_tagsarray | null
created_timestring | null
custom_labelsarray | null
descriptionstring | null
embed_htmlstring | null
embeddableboolean | null
formatarray | null
format[].filterstring | null
format[].embed_htmlstring | null
format[].widthinteger | null
format[].heightinteger | null
format[].picturestring | null
iconstring | null
is_crosspost_videoboolean | null
is_crossposting_eligibleboolean | null
is_episodeboolean | null
is_instagram_eligibleboolean | null
lengthnumber | null
live_statusstring | null
permalink_urlstring | null
post_viewsinteger | null
premiere_living_room_statusboolean | null
publishedboolean | null
scheduled_publish_timestring | null
sourcestring | null
universal_video_idstring | null
updated_timestring | null
viewsinteger | null

Meta

Field NameTypeDescription
afterstring | null

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/connectors/sources/{your_source_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 NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's next_cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
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 NameTypeDescription
hitsarrayList of matching records
hits[].idstringRecord identifier
hits[].scorenumberRelevance score
hits[].dataobjectRecord data containing the searchable fields listed above
hits[].data.idstringVideo ID
hits[].data.titlestringVideo title
hits[].data.account_idstringAd account ID
hits[].data.descriptionstringVideo description
hits[].data.lengthnumberVideo length in seconds
hits[].data.sourcestringVideo source URL
hits[].data.permalink_urlstringPermalink URL
hits[].data.viewsintegerNumber of views
hits[].data.created_timestringCreation time
hits[].data.updated_timestringLast update time
next_cursorstring | nullCursor for next page of results
took_msnumberQuery execution time in milliseconds