This connector is optimized for AI agents. For the data replication connector, see Reddit Ads .
This is the full reference documentation for the Reddit-Ads agent connector.
Supported entities and actions
The Reddit-Ads connector supports the following entities and actions.
Businesses
Businesses List
Retrieve all businesses associated with the authenticated user.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "businesses",
"action": "list"
}'
Python SDK
await reddit_ads . businesses . 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": "businesses",
"action": "list"
}'
Parameters
Parameter Name Type Required Description page.sizeintegerNo Number of items per page (max 1000) page.tokenstringNo Pagination token for next page
Response Schema Records Field Name Type Description idstringnamestringcountrystringprimary_contact_idstringcreator_idstringindustrystringwebsite_urlnull | stringphonenull | stringagency_affiliatedbooleantwo_fa_enforcementstringcreated_atstringmodified_atstring
Field Name Type Description next_linknull | string
Ad Accounts
Ad Accounts List
Retrieve the ad accounts in a business.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "ad_accounts",
"action": "list",
"params": {
"business_id": "<str>"
}
}'
Python SDK
await reddit_ads . ad_accounts . list (
business_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": "list",
"params": {
"business_id": "<str>"
}
}'
Parameters
Parameter Name Type Required Description business_idstringYes The business ID page.sizeintegerNo Number of items per page (max 1000) page.tokenstringNo Pagination token for next page
Response Schema Records Field Name Type Description idstringnamestringbusiness_idstringtype"MANAGED" | "SELF_SERVE"currencystringtime_zone_idstringadmin_approval"ADMIN" | "BANNED" | "NEEDS_ID_VERIFICATION" | "PENDING" | "SUSPENDED" | "SUSPICIOUS" | "TRUSTED" | "VALID"attribution_typestringclick_attribution_window"DAY" | "MONTH" | "WEEK"view_attribution_window"DAY" | "MONTH" | "WEEK"app_attribution_typestringapp_click_attribution_windowstringapp_view_attribution_windowstringprimary_contact_member_idstringsuspension_reasonnull | stringcreated_atstringmodified_atstringexcluded_communitiesarray<string>excluded_keywordsarray<string>pixel_partner_preferencesarray<string>
Field Name Type Description next_linknull | string
Ad Accounts Get
Retrieve ad account by ID.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "ad_accounts",
"action": "get",
"params": {
"ad_account_id": "<str>"
}
}'
Python SDK
await reddit_ads . ad_accounts . get (
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": "ad_accounts",
"action": "get",
"params": {
"ad_account_id": "<str>"
}
}'
Parameters
Parameter Name Type Required Description ad_account_idstringYes The ad account ID
Response Schema Records Field Name Type Description idstringnamestringbusiness_idstringtype"MANAGED" | "SELF_SERVE"currencystringtime_zone_idstringadmin_approval"ADMIN" | "BANNED" | "NEEDS_ID_VERIFICATION" | "PENDING" | "SUSPENDED" | "SUSPICIOUS" | "TRUSTED" | "VALID"attribution_typestringclick_attribution_window"DAY" | "MONTH" | "WEEK"view_attribution_window"DAY" | "MONTH" | "WEEK"app_attribution_typestringapp_click_attribution_windowstringapp_view_attribution_windowstringprimary_contact_member_idstringsuspension_reasonnull | stringcreated_atstringmodified_atstringexcluded_communitiesarray<string>excluded_keywordsarray<string>pixel_partner_preferencesarray<string>
Campaigns
Campaigns List
Retrieve campaigns by ad account.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "campaigns",
"action": "list",
"params": {
"ad_account_id": "<str>"
}
}'
Python SDK
await reddit_ads . 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 The ad account ID idarray<string>No Filter by campaign IDs (comma-separated) page.sizeintegerNo Number of items per page (max 1000) page.tokenstringNo Pagination token for next page
Response Schema Records Field Name Type Description idstringnamestringad_account_idstringobjective"APP_INSTALLS" | "CATALOG_SALES" | "CLICKS" | "CONVERSIONS" | "IMPRESSIONS" | "LEAD_GENERATION" | "VIDEO_VIEWABLE_IMPRESSIONS"configured_status"ACTIVE" | "ARCHIVED" | "DELETED" | "PAUSED"effective_status"ACTIVE" | "AD_GROUP_PAUSED" | "ARCHIVED" | "CAMPAIGN_PAUSED" | "COMPLETED" | "DELETED" | "PAUSED" | "PENDING_APPROVAL" | "PENDING_BILLING_INFO" | "PENDING_ID_VERIFICATION" | "REJECTED" | "PROCESSING"delivery_statusnull | arrayfunding_instrument_idstringgoal_type"LIFETIME_SPEND" | "DAILY_SPEND"goal_valueintegeris_campaign_budget_optimizationbooleanspend_capnull | integerstart_timenull | stringend_timenull | stringoptimization_goalnull | stringbid_strategynull | stringbid_typenull | stringbid_valuenull | integerapp_idnull | stringview_through_conversion_typenull | stringspecial_ad_categoriesarray<string>schedulearrayskadnetwork_metadatanull | objectage_restrictionnull | stringinvoice_labelnull | stringconversion_pixel_idnull | stringis_maxbooleanuse_catalogbooleantypestringcreated_atstringmodified_atstring
Field Name Type Description next_linknull | string
Campaigns Get
Retrieve a campaign by ID.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "campaigns",
"action": "get",
"params": {
"campaign_id": "<str>"
}
}'
Python SDK
await reddit_ads . 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
Response Schema Records Field Name Type Description idstringnamestringad_account_idstringobjective"APP_INSTALLS" | "CATALOG_SALES" | "CLICKS" | "CONVERSIONS" | "IMPRESSIONS" | "LEAD_GENERATION" | "VIDEO_VIEWABLE_IMPRESSIONS"configured_status"ACTIVE" | "ARCHIVED" | "DELETED" | "PAUSED"effective_status"ACTIVE" | "AD_GROUP_PAUSED" | "ARCHIVED" | "CAMPAIGN_PAUSED" | "COMPLETED" | "DELETED" | "PAUSED" | "PENDING_APPROVAL" | "PENDING_BILLING_INFO" | "PENDING_ID_VERIFICATION" | "REJECTED" | "PROCESSING"delivery_statusnull | arrayfunding_instrument_idstringgoal_type"LIFETIME_SPEND" | "DAILY_SPEND"goal_valueintegeris_campaign_budget_optimizationbooleanspend_capnull | integerstart_timenull | stringend_timenull | stringoptimization_goalnull | stringbid_strategynull | stringbid_typenull | stringbid_valuenull | integerapp_idnull | stringview_through_conversion_typenull | stringspecial_ad_categoriesarray<string>schedulearrayskadnetwork_metadatanull | objectage_restrictionnull | stringinvoice_labelnull | stringconversion_pixel_idnull | stringis_maxbooleanuse_catalogbooleantypestringcreated_atstringmodified_atstring
Campaigns Context Store 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.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "campaigns",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"ad_account_id": "<str>"
}
}
}
}
}'
Python SDK
await reddit_ads . campaigns . context_store_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": "context_store_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, startswith, endswith, contains, array_contains, 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_idstringThe ad account this campaign belongs to app_idstringApp Store or Play Store ID configured_statusstringUser-configured status (ACTIVE, ARCHIVED, DELETED, PAUSED) created_atstringCreation timestamp in ISO 8601 format effective_statusstringEffective delivery status funding_instrument_idstringFunding instrument ID goal_typestringGoal type (LIFETIME_SPEND, DAILY_SPEND) goal_valueintegerGoal value in microcurrency idstringUnique campaign identifier is_campaign_budget_optimizationbooleanWhether campaign budget optimization is enabled modified_atstringLast modification timestamp namestringCampaign name objectivestringCampaign objective spend_capintegerSpend cap in microcurrency
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_idstringThe ad account this campaign belongs to data[].app_idstringApp Store or Play Store ID data[].configured_statusstringUser-configured status (ACTIVE, ARCHIVED, DELETED, PAUSED) data[].created_atstringCreation timestamp in ISO 8601 format data[].effective_statusstringEffective delivery status data[].funding_instrument_idstringFunding instrument ID data[].goal_typestringGoal type (LIFETIME_SPEND, DAILY_SPEND) data[].goal_valueintegerGoal value in microcurrency data[].idstringUnique campaign identifier data[].is_campaign_budget_optimizationbooleanWhether campaign budget optimization is enabled data[].modified_atstringLast modification timestamp data[].namestringCampaign name data[].objectivestringCampaign objective data[].spend_capintegerSpend cap in microcurrency
Campaigns Context Store SQL Query
Run a SQL query against campaigns records in the Airbyte Context Store. SQL projections may return any set of columns, so each result row is a dictionary matching the query's selected fields. Only available in hosted mode.
Use the hosted server documentation to find the qualified Context Store table name and SQL guidance.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "campaigns",
"action": "context_store_sql_query",
"params": {
"sql": "SELECT * FROM <qualified_context_store_table> LIMIT 100"
}
}'
Python SDK
await reddit_ads . campaigns . context_store_sql_query (
sql = "SELECT * FROM <qualified_context_store_table> LIMIT 100"
)
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": "context_store_sql_query",
"params": {
"sql": "SELECT * FROM <qualified_context_store_table> LIMIT 100"
}
}'
Parameters
Parameter Name Type Required Description sqlstringYes SQL query to execute against this entity's Context Store data limitintegerNo Maximum results to return
Response Schema Field Name Type Description dataarrayProjected rows, with dictionary keys matching the selected columns metaobjectQuery metadata meta.has_morebooleanWhether the result was limited and more rows are available meta.cursornullSQL query results do not use cursor pagination meta.took_msnumber | nullQuery execution time in milliseconds
Ad Groups
Ad Groups List
Retrieve ad groups by ad account.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "ad_groups",
"action": "list",
"params": {
"ad_account_id": "<str>"
}
}'
Python SDK
await reddit_ads . ad_groups . 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": "ad_groups",
"action": "list",
"params": {
"ad_account_id": "<str>"
}
}'
Parameters
Parameter Name Type Required Description ad_account_idstringYes The ad account ID campaign_idstringNo Filter by campaign ID page.sizeintegerNo Number of items per page (max 1000) page.tokenstringNo Pagination token for next page
Response Schema Records Field Name Type Description idstringnamestringtype"MANUAL" | "AUTOMATED"ad_account_idstringcampaign_idstringconfigured_status"ACTIVE" | "ARCHIVED" | "DELETED" | "PAUSED"effective_status"ACTIVE" | "AD_GROUP_PAUSED" | "ARCHIVED" | "CAMPAIGN_PAUSED" | "COMPLETED" | "DELETED" | "PAUSED" | "PENDING_APPROVAL" | "PENDING_BILLING_INFO" | "PENDING_ID_VERIFICATION" | "REJECTED" | "PROCESSING"delivery_statusnull | arraybid_strategynull | stringbid_typenull | stringbid_valuenull | integeroptimization_goalnull | stringcampaign_objective_typenull | stringgoal_typenull | stringgoal_valuenull | integeris_campaign_budget_optimizationnull | booleanstart_timenull | stringend_timenull | stringtargetingobjectview_through_conversion_typenull | stringconversion_pixel_idnull | stringapp_idnull | stringoptimization_strategy_typenull | stringproduct_set_idnull | stringsaved_audience_idnull | stringschedulearrayskadnetwork_metadatanull | objectshopping_typenull | stringcreated_atstringmodified_atstring
Field Name Type Description next_linknull | string
Ad Groups Get
Retrieve an ad group by ID.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "ad_groups",
"action": "get",
"params": {
"ad_group_id": "<str>"
}
}'
Python SDK
await reddit_ads . ad_groups . get (
ad_group_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_groups",
"action": "get",
"params": {
"ad_group_id": "<str>"
}
}'
Parameters
Parameter Name Type Required Description ad_group_idstringYes The ad group ID
Response Schema Records Field Name Type Description idstringnamestringtype"MANUAL" | "AUTOMATED"ad_account_idstringcampaign_idstringconfigured_status"ACTIVE" | "ARCHIVED" | "DELETED" | "PAUSED"effective_status"ACTIVE" | "AD_GROUP_PAUSED" | "ARCHIVED" | "CAMPAIGN_PAUSED" | "COMPLETED" | "DELETED" | "PAUSED" | "PENDING_APPROVAL" | "PENDING_BILLING_INFO" | "PENDING_ID_VERIFICATION" | "REJECTED" | "PROCESSING"delivery_statusnull | arraybid_strategynull | stringbid_typenull | stringbid_valuenull | integeroptimization_goalnull | stringcampaign_objective_typenull | stringgoal_typenull | stringgoal_valuenull | integeris_campaign_budget_optimizationnull | booleanstart_timenull | stringend_timenull | stringtargetingobjectview_through_conversion_typenull | stringconversion_pixel_idnull | stringapp_idnull | stringoptimization_strategy_typenull | stringproduct_set_idnull | stringsaved_audience_idnull | stringschedulearrayskadnetwork_metadatanull | objectshopping_typenull | stringcreated_atstringmodified_atstring
Ads
Ads List
Retrieve ads by ad account. Filters combine with logical AND across different query parameters.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "ads",
"action": "list",
"params": {
"ad_account_id": "<str>"
}
}'
Python SDK
await reddit_ads . 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 The ad account ID campaign_idarray<string>No Filter by campaign IDs (comma-separated) ad_group_idarray<string>No Filter by ad group IDs (comma-separated) configured_statusarray<"ACTIVE" | "ARCHIVED" | "DELETED" | "PAUSED">No Filter by configured status effective_statusarray<"ACTIVE" | "AD_GROUP_PAUSED" | "ARCHIVED" | "CAMPAIGN_PAUSED" | "COMPLETED" | "DELETED" | "MISSING_PERMISSIONS" | "PAUSED" | "PENDING_APPROVAL" | "PENDING_BILLING_INFO" | "PENDING_ID_VERIFICATION" | "PROCESSING" | "REJECTED">No Filter by effective status page.sizeintegerNo Number of items per page (max 1000) page.tokenstringNo Pagination token for next page
Response Schema Records Field Name Type Description idstringnamestringtype"UNSPECIFIED" | "DYNAMIC_CREATIVE_AD_TEMPLATE"ad_account_idstringad_group_idstringcampaign_idstringcampaign_objective_typenull | stringclick_urlnull | stringclick_url_query_parametersarray<object>configured_status"ACTIVE" | "ARCHIVED" | "DELETED" | "PAUSED"effective_status"ACTIVE" | "AD_GROUP_PAUSED" | "ARCHIVED" | "CAMPAIGN_PAUSED" | "COMPLETED" | "DELETED" | "MISSING_PERMISSIONS" | "PAUSED" | "PENDING_APPROVAL" | "PENDING_BILLING_INFO" | "PENDING_ID_VERIFICATION" | "PROCESSING" | "REJECTED"delivery_statusnull | arrayevent_trackersarray<object>post_idnull | stringpost_urlnull | stringpreview_urlnull | stringpreview_expirynull | stringrejection_reasonnull | stringprofile_idnull | stringproductsnull | arrayshopping_creativenull | objectskadnetwork_metadatanull | objectextensionsnull | objectcreated_atstringmodified_atstring
Field Name Type Description next_linknull | string
Ads Get
Retrieve an ad by ID.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "ads",
"action": "get",
"params": {
"ad_id": "<str>"
}
}'
Python SDK
await reddit_ads . 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
Response Schema Records Field Name Type Description idstringnamestringtype"UNSPECIFIED" | "DYNAMIC_CREATIVE_AD_TEMPLATE"ad_account_idstringad_group_idstringcampaign_idstringcampaign_objective_typenull | stringclick_urlnull | stringclick_url_query_parametersarray<object>configured_status"ACTIVE" | "ARCHIVED" | "DELETED" | "PAUSED"effective_status"ACTIVE" | "AD_GROUP_PAUSED" | "ARCHIVED" | "CAMPAIGN_PAUSED" | "COMPLETED" | "DELETED" | "MISSING_PERMISSIONS" | "PAUSED" | "PENDING_APPROVAL" | "PENDING_BILLING_INFO" | "PENDING_ID_VERIFICATION" | "PROCESSING" | "REJECTED"delivery_statusnull | arrayevent_trackersarray<object>post_idnull | stringpost_urlnull | stringpreview_urlnull | stringpreview_expirynull | stringrejection_reasonnull | stringprofile_idnull | stringproductsnull | arrayshopping_creativenull | objectskadnetwork_metadatanull | objectextensionsnull | objectcreated_atstringmodified_atstring
Ads Context Store 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.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "ads",
"action": "context_store_search",
"params": {
"query": {
"filter": {
"eq": {
"ad_account_id": "<str>"
}
}
}
}
}'
Python SDK
await reddit_ads . ads . context_store_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": "ads",
"action": "context_store_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, startswith, endswith, contains, array_contains, 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_idstringThe ad account this ad belongs to ad_group_idstringThe ad group this ad belongs to campaign_idstringThe campaign this ad belongs to click_urlstringClick destination URL configured_statusstringUser-configured status created_atstringCreation timestamp effective_statusstringEffective delivery status idstringUnique ad identifier modified_atstringLast modification timestamp namestringAd name post_idstringReddit post ID (t3_ prefix) post_urlstringReddit post URL preview_urlstringAd preview URL rejection_reasonstringReason the ad was rejected
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_idstringThe ad account this ad belongs to data[].ad_group_idstringThe ad group this ad belongs to data[].campaign_idstringThe campaign this ad belongs to data[].click_urlstringClick destination URL data[].configured_statusstringUser-configured status data[].created_atstringCreation timestamp data[].effective_statusstringEffective delivery status data[].idstringUnique ad identifier data[].modified_atstringLast modification timestamp data[].namestringAd name data[].post_idstringReddit post ID (t3_ prefix) data[].post_urlstringReddit post URL data[].preview_urlstringAd preview URL data[].rejection_reasonstringReason the ad was rejected
Ads Context Store SQL Query
Run a SQL query against ads records in the Airbyte Context Store. SQL projections may return any set of columns, so each result row is a dictionary matching the query's selected fields. Only available in hosted mode.
Use the hosted server documentation to find the qualified Context Store table name and SQL guidance.
CLI
airbyte-agent connectors execute --json '{
"workspace": "<your_workspace_name>",
"name": "reddit-ads",
"entity": "ads",
"action": "context_store_sql_query",
"params": {
"sql": "SELECT * FROM <qualified_context_store_table> LIMIT 100"
}
}'
Python SDK
await reddit_ads . ads . context_store_sql_query (
sql = "SELECT * FROM <qualified_context_store_table> LIMIT 100"
)
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": "context_store_sql_query",
"params": {
"sql": "SELECT * FROM <qualified_context_store_table> LIMIT 100"
}
}'
Parameters
Parameter Name Type Required Description sqlstringYes SQL query to execute against this entity's Context Store data limitintegerNo Maximum results to return
Response Schema Field Name Type Description dataarrayProjected rows, with dictionary keys matching the selected columns metaobjectQuery metadata meta.has_morebooleanWhether the result was limited and more rows are available meta.cursornullSQL query results do not use cursor pagination meta.took_msnumber | nullQuery execution time in milliseconds