Get started with a free trial today
Already have an account? Sign in
Stitch’s Facebook Ads integration replicates ad, campaign, and adcreative data using theFacebook Marketing API 10.0.
Note: This integration does not currently support replicating data for reviews, pages, etc.
Refer to theSchema section for a list of objects available for replication.
A high-level look at Stitch's Facebook Ads (v1) integration, including release status, useful links, and the features supported in Stitch.
| STITCH | |||
| Release status | Released on September 11, 2017 | Supported by | |
| Stitch plan | Standard | API availability | Available |
| Singer GitHub repository | |||
| REPLICATION SETTINGS | |||
| Anchor Scheduling | Supported | Advanced Scheduling | Unsupported |
| Table-level reset | Supported | Configurable Replication Methods | Unsupported |
| DATA SELECTION | |||
| Table selection | Supported | Column selection | Supported |
| Select all | Supported | ||
| TRANSPARENCY | |||
| Extraction Logs | Supported | Loading Reports | Supported |
To set up Facebook Ads in Stitch, you need:
Verify your access in Facebook Ads. If the user who creates the integration has restricted permissions - meaning the user doesn’t have access to all campaigns or ads - Stitch may encounter issues replicating data.
Even if you only intend to sync certain pieces of data post-setup, the user completing the initial setup should still have full access.
Pause all ad-blocking software currently in use. Because Facebook authentication uses pop ups, you may encounter issues if ad blockers aren’t disabled during the setup.
On the Stitch Dashboard page, click theAdd Integration button.
Click theFacebook Ads icon.
Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.
For example, the name “Stitch Facebook Ads” would create a schema calledstitch_facebook_ads in the destination.Note: Schema names cannot be changed after you save the integration.
An attribution window is the amount of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted.
We recommend selecting thesame attribution window you use in Facebook Ads to prevent discrepancies between Facebook’s UI and data replicated by Stitch. For example: If the attribution window in Facebook Ads is7 days, you should define this setting as7 days.
Then, during every replication job, Stitch will replicatethe past seven days’ worth of data to account for result attribution. This will ensure that records updated during the attribution period are correctly captured by Stitch.
For more info, see theAttribution windows and data extraction section.
What if clicks and views have different windows in Facebook Ads?
In this case, you should select thegreater of the two. For example: If clicks have a window of 7 days and views have a window of 1 day, you should select7 days as the setting in Stitch. This will ensure that the values for clicks and views are correctly updated.
Check theInclude data from deleted campaigns, ads, and adsets box to have Stitch replicate data for these deleted objects.
Note: Data for deleted campaigns, ads, and adsets will be included only inCore Object tables.
The Sync Historical Data setting defines the starting date for your Facebook Ads integration. This means that dataequal to or newer than this date will be replicated to your data warehouse.
Change this setting if you want to replicate data beyond Facebook Ads’s default setting of1 year. For a detailed look at historical replication jobs, check out theSyncing Historical SaaS Data guide.
In theReplication Frequency section, you’ll create the integration’sreplication schedule. An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.
Facebook Ads integrations support the following replication scheduling methods:
To keep your row usage low, consider setting the integration to replicate less frequently. See theUnderstanding and Reducing Your Row Usage guide for tips on reducing your usage.
After clicking theAuthorize button, a small pop-up window will display.
You’ll be taken through a series of steps to allow Stitch to access data from your Public Profile, Facebook Ads, and related stats.
After you’ve finished authorizing Stitch, you’ll be prompted to select the Facebook Ad Account you want to pull data from. Select the desired account by clicking the checkbox in theConnect column.
If you don’t see the profiles that you would expect to, verify your Facebook Ads permissions before reaching out to support.
After your credentials are validated, you’ll be directed back to Stitch (click theAll Done button to wrap things up) and the Integration Details page will display.
The last step is to select the tables and columns you want to replicate.Learn about the available tables for this integration.
Note: If a replication job is currently in progress, new selections won’t be used until the next job starts.
For Facebook Ads integrations, you can select:
Individual tables and columns
All tables and columns
Click the tabs to view instructions for each selection method.
To track a table, click thecheckbox next to the table’s name. A blue checkmark means the table is set to replicate.
To track a column, click thecheckbox next to the column’s name. A blue checkmark means the column is set to replicate.
Click theTables to Replicate tab.
In the menu that displays, clickTrack all Tables and Fields:

After you finish setting up Facebook Ads, itsSync Status may show asPending on either the Stitch Dashboard or in the Integration Details page.
For a new integration, aPending status indicates that Stitch is in the process of scheduling the initial replication job for the integration.This may take some time to complete.
Initial replication jobs with Anchor Scheduling
If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to theAnchor Scheduling documentation for more information.
The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.
When Stitch runs a replication job for Facebook Ads, it will use the value of theAttribution Window setting to query for and extract data for Incremental tables. An attribution window is a period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted.
For example: If set to7 days, Stitch will replicate the past seven days’ worth of data every time a replication job runs. While Stitch replicates data in this way to account for updates to records made during the attribution window, it can have asubstantial impact on your overall row usage.
In the sections below are examples of how attribution windows impact how Stitch extracts data during historical and ongoing replication jobs.
For historical and full re-replications of Facebook Ads data, Stitch will query for and extract data newer than or equal to the date defined in theStart Date field in the Integration Settings page.
TheStart Date, in conjunction with theAttribution Window, defines the minimum date Stitch should query for when extracting historical data. This is calculated as:
Start Date - Attribution Window = Minimum Extraction Date
Note: For theads_insights stream, theMinimum Extraction Date cannot be more than 37 months ago.
Example
During the initial set up, theAttribution Window andStart Date settings are defined as:
07/03/2017, or2017-07-03 00:00:00To account for the Attribution Window, Stitch would calculate theMinimum Extraction Date value as:2017-07-03 00:00:00 - 28 days = 2017-06-05 00:00:00
If you were to write a SQL query using this date for theads table, it might look like this:
SELECT*FROMfacebook_ads.adsWHEREupdated_time>='2017-06-05 00:00:00'/* Min. Extraction Date */ORDERBYupdated_timeFor ongoing replication jobs, Stitch will query for and extract data using the last saved maximum value in the table’s Replication Key column and the Attribution Window for the table.
Note: This applies to every replication job that takes place after the historical replication job.
Example
The last maximum saved Replication Key value for theads table is2017-10-01 00:00:00.
To account for the Attribution Window of 28 days, we’d subtract this from the last maximum saved Replication Key value:
2017-10-01 00:00:00 - 28 days = 2017-09-03 00:00:00
In this case, Stitch would query for and extract data that is newer than or equal to2017-09-03 00:00:00 and older than or equal to2017-10-01 00:00:00.
If this were a SQL query, it might look like this:
SELECT*FROMadsWHEREupdated_time>='2017-09-03 00:00:00'/* max Replication Key value - Attribution Window */ANDupdated_time<='2017-10-01 00:00:00'/* max Replication Key value from previous job */ORDERBYupdated_timeDue to the attribution window, a high Replication Frequency may not be necessary. Because Stitch will replicate data from the pastN days during every replication job, recent data will be re-replicated and count towards your row quota.
To reduce your row usage and replicating redundant data, consider setting the integration to replicate less frequently. For example: every 12 or 24 hours.
Schemas and versioning
Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.
The schema and info displayed below is forversion 1 of this integration.
This is the latest version of the Facebook Ads integration.
There are two types of tables in Stitch’s Facebook Ads integration: Core Object and Insights.
adcreative,ads,adsets, andcampaigns tables. To learn more about how Facebook Ads data is structured, we recommend checking out theirAPI guide.ads_insights_age_and_gender table is segmented by day, age, and gender.Table and column names in your destination
Depending on your destination, table and column names may not appear as they are outlined below.
For example: Object names are lowercased in Redshift (CusTomERs >customers), while case is maintained in PostgreSQL destinations (CusTomERs >CusTomERs). Refer to theLoading Guide for your destination for more info.
Theadcreative table contains info about the creatives used in ads, in your Facebook Ads account.
This is a Core Object table.
Facebook’s API limits the number of ad creatives that can be retrieved through their API to 50,000, which isdocumented here. If you’re missing data from this table and have more than 50,000 ad creatives in your Facebook Ads account, this may be the cause of the discrepancy.
Full Table | |
Primary Key | id |
| Useful links |
| Join adcreative with | on |
|---|---|
| ads | adcreative.account_id = ads.account_id adcreative.adlabels.id = ads.id adcreative.id = ads.creative.creative_id |
| ads_insights | adcreative.account_id = ads_insights.account_id |
| ads_insights_age_and_gender | adcreative.account_id = ads_insights_age_and_gender.account_id |
| ads_insights_country | adcreative.account_id = ads_insights_country.account_id |
| ads_insights_dma | adcreative.account_id = ads_insights_dma.account_id |
| ads_insights_platform_and_device | adcreative.account_id = ads_insights_platform_and_device.account_id |
| ads_insights_region | adcreative.account_id = ads_insights_region.account_id |
| adsets | adcreative.adlabels.id = adsets.id adcreative.object_story_spec.link_data.offer_id = adsets.promoted_object.offer_id adcreative.object_story_spec.template_data.offer_id = adsets.promoted_object.offer_id adcreative.object_story_spec.video_data.offer_id = adsets.promoted_object.offer_id adcreative.object_story_spec.page_id = adsets.promoted_object.page_id adcreative.product_set_id = adsets.promoted_object.product_set_id |
account_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
actor_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
adlabels ARRAY
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
applink_treatment STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
body STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
call_to_action_type STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
effective_instagram_story_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
effective_object_story_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
image_crops OBJECT
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
image_hash STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
image_url STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
instagram_actor_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
instagram_permalink_url STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
instagram_story_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
link_og_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
link_url STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object_story_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object_story_spec OBJECT
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object_type STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object_url STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
product_set_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
template_url STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
template_url_spec OBJECT
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
thumbnail_url STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
title STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
url_tags STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
video_id STRING |
Theads table contains info about the ads in your Facebook Ads account.
This is a Core Object table.
Because this table usesupdated_time as part of the Primary Key, query results might return various versions of the same adgroup.
To reflect the latest state of the adgroup, use the latestupdated_time timestamp.
If theInclude data from deleted campaigns, ads, and adsets box in the integration’s settings is checked, this table will include data for deleted ads.
Key-based Incremental | |
Primary Keys | id updated_time |
Replication Key | updated_time |
| Useful links |
| Join ads with | on |
|---|---|
| adcreative | ads.account_id = adcreative.account_id ads.id = adcreative.adlabels.id ads.creative.creative_id = adcreative.id |
| ads_insights | ads.account_id = ads_insights.account_id ads.adset_id = ads_insights.adset_id ads.id = ads_insights.ad_id ads.campaign_id = ads_insights.campaign_id |
| ads_insights_age_and_gender | ads.account_id = ads_insights_age_and_gender.account_id ads.adset_id = ads_insights_age_and_gender.adset_id ads.id = ads_insights_age_and_gender.ad_id ads.campaign_id = ads_insights_age_and_gender.campaign_id |
| ads_insights_country | ads.account_id = ads_insights_country.account_id ads.adset_id = ads_insights_country.adset_id ads.id = ads_insights_country.ad_id ads.campaign_id = ads_insights_country.campaign_id |
| ads_insights_dma | ads.account_id = ads_insights_dma.account_id ads.adset_id = ads_insights_dma.adset_id ads.id = ads_insights_dma.ad_id ads.campaign_id = ads_insights_dma.campaign_id |
| ads_insights_platform_and_device | ads.account_id = ads_insights_platform_and_device.account_id ads.adset_id = ads_insights_platform_and_device.adset_id ads.id = ads_insights_platform_and_device.ad_id ads.campaign_id = ads_insights_platform_and_device.campaign_id |
| ads_insights_region | ads.account_id = ads_insights_region.account_id ads.adset_id = ads_insights_region.adset_id ads.id = ads_insights_region.ad_id ads.campaign_id = ads_insights_region.campaign_id |
| adsets | ads.id = adsets.id ads.adset_id = adsets.id |
| campaigns | ads.id = campaigns.ads.data.id ads.campaign_id = campaigns.id |
account_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
adlabels ARRAY
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
adset_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bid_amount INTEGER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bid_info OBJECT
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bid_type STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
campaign_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
conversion_specs ARRAY
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
created_time DATE-TIME | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
creative OBJECT
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
effective_status STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
last_updated_by_app_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
recommendations ARRAY
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
source_ad_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
targeting OBJECT
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tracking_specs ARRAY
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updated_time DATE-TIME |
Theads_insights table contains entries for each campaign/set/ad combination for each day, along with detailed statistics.
Note: Data for deleted ads, adsets, and campaigns will not appear in this table even if theInclude data from deleted campaigns, ads, and adsets option in the integration’s settings is enabled.
To analyze data that’s been segmented by various characteristics, consider tracking some of the otherads_insights tables in this integration. The following tables contain the same fields as this one (ads_insights), but include additional dimensions to segment the data:
ads_insights_age_and_gender - Data segmented by age and genderads_insights_country - Data segmented by countryads_insights_dma - Data segmented by DMA (Designated Market Area)ads_insights_platform_and_device - Data segmented by platform and deviceads_insights_region - Data segmented by regionKey-based Incremental | |
Primary Keys | ad_id adset_id campaign_id date_start |
Replication Key | date_start |
| Useful links |
| Join ads_insights with | on |
|---|---|
| adcreative | ads_insights.account_id = adcreative.account_id |
| ads | ads_insights.account_id = ads.account_id ads_insights.adset_id = ads.adset_id ads_insights.ad_id = ads.id ads_insights.campaign_id = ads.campaign_id |
| ads_insights_age_and_gender | ads_insights.account_id = ads_insights_age_and_gender.account_id ads_insights.adset_id = ads_insights_age_and_gender.adset_id ads_insights.ad_id = ads_insights_age_and_gender.ad_id ads_insights.campaign_id = ads_insights_age_and_gender.campaign_id |
| ads_insights_country | ads_insights.account_id = ads_insights_country.account_id ads_insights.adset_id = ads_insights_country.adset_id ads_insights.ad_id = ads_insights_country.ad_id ads_insights.campaign_id = ads_insights_country.campaign_id |
| ads_insights_dma | ads_insights.account_id = ads_insights_dma.account_id ads_insights.adset_id = ads_insights_dma.adset_id ads_insights.ad_id = ads_insights_dma.ad_id ads_insights.campaign_id = ads_insights_dma.campaign_id |
| ads_insights_platform_and_device | ads_insights.account_id = ads_insights_platform_and_device.account_id ads_insights.adset_id = ads_insights_platform_and_device.adset_id ads_insights.ad_id = ads_insights_platform_and_device.ad_id ads_insights.campaign_id = ads_insights_platform_and_device.campaign_id |
| ads_insights_region | ads_insights.account_id = ads_insights_region.account_id ads_insights.adset_id = ads_insights_region.adset_id ads_insights.ad_id = ads_insights_region.ad_id ads_insights.campaign_id = ads_insights_region.campaign_id |
| adsets | ads_insights.adset_id = adsets.id |
| campaigns | ads_insights.ad_id = campaigns.ads.data.id ads_insights.campaign_id = campaigns.id |
account_id STRING | ||||||||||
account_name STRING | ||||||||||
action_values ARRAY
| ||||||||||
actions ARRAY
| ||||||||||
ad_id STRING | ||||||||||
ad_name STRING | ||||||||||
adset_id STRING | ||||||||||
adset_name STRING | ||||||||||
campaign_id STRING | ||||||||||
campaign_name STRING | ||||||||||
canvas_avg_view_percent NUMBER | ||||||||||
canvas_avg_view_time NUMBER | ||||||||||
clicks INTEGER | ||||||||||
conversion_rate_ranking STRING | ||||||||||
conversion_values ARRAY
| ||||||||||
conversions ARRAY
| ||||||||||
cost_per_action_type ARRAY
| ||||||||||
cost_per_inline_link_click NUMBER | ||||||||||
cost_per_inline_post_engagement NUMBER | ||||||||||
cost_per_unique_action_type ARRAY
| ||||||||||
cost_per_unique_click NUMBER | ||||||||||
cost_per_unique_inline_link_click NUMBER | ||||||||||
cpc NUMBER | ||||||||||
cpm NUMBER | ||||||||||
cpp NUMBER | ||||||||||
ctr NUMBER | ||||||||||
date_start DATE-TIME | ||||||||||
date_stop DATE-TIME | ||||||||||
engagement_rate_ranking STRING | ||||||||||
frequency NUMBER | ||||||||||
impressions INTEGER | ||||||||||
inline_link_click_ctr NUMBER | ||||||||||
inline_link_clicks INTEGER | ||||||||||
inline_post_engagement INTEGER | ||||||||||
objective STRING | ||||||||||
outbound_clicks ARRAY
| ||||||||||
quality_ranking STRING | ||||||||||
reach INTEGER | ||||||||||
social_spend NUMBER | ||||||||||
spend NUMBER | ||||||||||
unique_actions ARRAY
| ||||||||||
unique_clicks INTEGER | ||||||||||
unique_ctr NUMBER | ||||||||||
unique_inline_link_click_ctr NUMBER | ||||||||||
unique_inline_link_clicks INTEGER | ||||||||||
unique_link_clicks_ctr NUMBER | ||||||||||
unique_outbound_clicks ARRAY
| ||||||||||
video_30_sec_watched_actions ARRAY
| ||||||||||
video_p100_watched_actions ARRAY
| ||||||||||
video_p25_watched_actions ARRAY
| ||||||||||
video_p50_watched_actions ARRAY
| ||||||||||
video_p75_watched_actions ARRAY
| ||||||||||
video_play_curve_actions ARRAY
| ||||||||||
website_ctr ARRAY
|
Theads_insights_age_and_gender table contains entries for each campaign/set/ad combination for each day, along with detailed statistics, segmented by age and gender.
This table contains the same fields as theads_insights table, with the exception ofage andgender.
Note: Data for deleted ads, adsets, and campaigns will not appear in this table even if theInclude data from deleted campaigns, ads, and adsets option in the integration’s settings is enabled.
Key-based Incremental | |
Primary Keys | ad_id adset_id campaign_id date_start age gender |
Replication Key | date_start |
| Useful links |
| Join ads_insights_age_and_gender with | on |
|---|---|
| adcreative | ads_insights_age_and_gender.account_id = adcreative.account_id |
| ads | ads_insights_age_and_gender.account_id = ads.account_id ads_insights_age_and_gender.adset_id = ads.adset_id ads_insights_age_and_gender.ad_id = ads.id ads_insights_age_and_gender.campaign_id = ads.campaign_id |
| ads_insights | ads_insights_age_and_gender.account_id = ads_insights.account_id ads_insights_age_and_gender.adset_id = ads_insights.adset_id ads_insights_age_and_gender.ad_id = ads_insights.ad_id ads_insights_age_and_gender.campaign_id = ads_insights.campaign_id |
| ads_insights_country | ads_insights_age_and_gender.account_id = ads_insights_country.account_id ads_insights_age_and_gender.adset_id = ads_insights_country.adset_id ads_insights_age_and_gender.ad_id = ads_insights_country.ad_id ads_insights_age_and_gender.campaign_id = ads_insights_country.campaign_id |
| ads_insights_dma | ads_insights_age_and_gender.account_id = ads_insights_dma.account_id ads_insights_age_and_gender.adset_id = ads_insights_dma.adset_id ads_insights_age_and_gender.ad_id = ads_insights_dma.ad_id ads_insights_age_and_gender.campaign_id = ads_insights_dma.campaign_id |
| ads_insights_platform_and_device | ads_insights_age_and_gender.account_id = ads_insights_platform_and_device.account_id ads_insights_age_and_gender.adset_id = ads_insights_platform_and_device.adset_id ads_insights_age_and_gender.ad_id = ads_insights_platform_and_device.ad_id ads_insights_age_and_gender.campaign_id = ads_insights_platform_and_device.campaign_id |
| ads_insights_region | ads_insights_age_and_gender.account_id = ads_insights_region.account_id ads_insights_age_and_gender.adset_id = ads_insights_region.adset_id ads_insights_age_and_gender.ad_id = ads_insights_region.ad_id ads_insights_age_and_gender.campaign_id = ads_insights_region.campaign_id |
| adsets | ads_insights_age_and_gender.adset_id = adsets.id |
| campaigns | ads_insights_age_and_gender.ad_id = campaigns.ads.data.id ads_insights_age_and_gender.campaign_id = campaigns.id |
account_id STRING | ||||||||||
account_name STRING | ||||||||||
action_values ARRAY
| ||||||||||
actions ARRAY
| ||||||||||
ad_id STRING | ||||||||||
ad_name STRING | ||||||||||
adset_id STRING | ||||||||||
adset_name STRING | ||||||||||
age INTEGER, STRING | ||||||||||
campaign_id STRING | ||||||||||
campaign_name STRING | ||||||||||
canvas_avg_view_percent NUMBER | ||||||||||
canvas_avg_view_time NUMBER | ||||||||||
clicks INTEGER | ||||||||||
conversion_rate_ranking STRING | ||||||||||
conversion_values ARRAY
| ||||||||||
conversions ARRAY
| ||||||||||
cost_per_action_type ARRAY
| ||||||||||
cost_per_inline_link_click NUMBER | ||||||||||
cost_per_inline_post_engagement NUMBER | ||||||||||
cost_per_unique_action_type ARRAY
| ||||||||||
cost_per_unique_click NUMBER | ||||||||||
cost_per_unique_inline_link_click NUMBER | ||||||||||
cpc NUMBER | ||||||||||
cpm NUMBER | ||||||||||
cpp NUMBER | ||||||||||
ctr NUMBER | ||||||||||
date_start DATE-TIME | ||||||||||
date_stop DATE-TIME | ||||||||||
engagement_rate_ranking STRING | ||||||||||
frequency NUMBER | ||||||||||
gender STRING | ||||||||||
impressions INTEGER | ||||||||||
inline_link_click_ctr NUMBER | ||||||||||
inline_link_clicks INTEGER | ||||||||||
inline_post_engagement INTEGER | ||||||||||
objective STRING | ||||||||||
outbound_clicks ARRAY
| ||||||||||
quality_ranking STRING | ||||||||||
reach INTEGER | ||||||||||
social_spend NUMBER | ||||||||||
spend NUMBER | ||||||||||
unique_actions ARRAY
| ||||||||||
unique_clicks INTEGER | ||||||||||
unique_ctr NUMBER | ||||||||||
unique_inline_link_click_ctr NUMBER | ||||||||||
unique_inline_link_clicks INTEGER | ||||||||||
unique_link_clicks_ctr NUMBER | ||||||||||
unique_outbound_clicks ARRAY
| ||||||||||
video_30_sec_watched_actions ARRAY
| ||||||||||
video_p100_watched_actions ARRAY
| ||||||||||
video_p25_watched_actions ARRAY
| ||||||||||
video_p50_watched_actions ARRAY
| ||||||||||
video_p75_watched_actions ARRAY
| ||||||||||
video_play_curve_actions ARRAY
| ||||||||||
website_ctr ARRAY
|
Theads_insights_country table contains entries for each campaign/set/ad combination for each day, along with detailed statistics, segmented by country.
This table contains the same fields as theads_insights table, with the exception ofcountry.
Note: Data for deleted ads, adsets, and campaigns will not appear in this table even if theInclude data from deleted campaigns, ads, and adsets option in the integration’s settings is enabled.
Key-based Incremental | |
Primary Keys | ad_id adset_id campaign_id date_start country |
Replication Key | date_start |
| Useful links |
| Join ads_insights_country with | on |
|---|---|
| adcreative | ads_insights_country.account_id = adcreative.account_id |
| ads | ads_insights_country.account_id = ads.account_id ads_insights_country.adset_id = ads.adset_id ads_insights_country.ad_id = ads.id ads_insights_country.campaign_id = ads.campaign_id |
| ads_insights | ads_insights_country.account_id = ads_insights.account_id ads_insights_country.adset_id = ads_insights.adset_id ads_insights_country.ad_id = ads_insights.ad_id ads_insights_country.campaign_id = ads_insights.campaign_id |
| ads_insights_age_and_gender | ads_insights_country.account_id = ads_insights_age_and_gender.account_id ads_insights_country.adset_id = ads_insights_age_and_gender.adset_id ads_insights_country.ad_id = ads_insights_age_and_gender.ad_id ads_insights_country.campaign_id = ads_insights_age_and_gender.campaign_id |
| ads_insights_dma | ads_insights_country.account_id = ads_insights_dma.account_id ads_insights_country.adset_id = ads_insights_dma.adset_id ads_insights_country.ad_id = ads_insights_dma.ad_id ads_insights_country.campaign_id = ads_insights_dma.campaign_id |
| ads_insights_platform_and_device | ads_insights_country.account_id = ads_insights_platform_and_device.account_id ads_insights_country.adset_id = ads_insights_platform_and_device.adset_id ads_insights_country.ad_id = ads_insights_platform_and_device.ad_id ads_insights_country.campaign_id = ads_insights_platform_and_device.campaign_id |
| ads_insights_region | ads_insights_country.account_id = ads_insights_region.account_id ads_insights_country.adset_id = ads_insights_region.adset_id ads_insights_country.ad_id = ads_insights_region.ad_id ads_insights_country.campaign_id = ads_insights_region.campaign_id |
| adsets | ads_insights_country.adset_id = adsets.id |
| campaigns | ads_insights_country.ad_id = campaigns.ads.data.id ads_insights_country.campaign_id = campaigns.id |
account_id STRING | ||||||||||
account_name STRING | ||||||||||
action_values ARRAY
| ||||||||||
actions ARRAY
| ||||||||||
ad_id STRING | ||||||||||
ad_name STRING | ||||||||||
adset_id STRING | ||||||||||
adset_name STRING | ||||||||||
campaign_id STRING | ||||||||||
campaign_name STRING | ||||||||||
canvas_avg_view_percent NUMBER | ||||||||||
canvas_avg_view_time NUMBER | ||||||||||
clicks INTEGER | ||||||||||
conversion_rate_ranking STRING | ||||||||||
conversion_values ARRAY
| ||||||||||
conversions ARRAY
| ||||||||||
cost_per_action_type ARRAY
| ||||||||||
cost_per_inline_link_click NUMBER | ||||||||||
cost_per_inline_post_engagement NUMBER | ||||||||||
cost_per_unique_action_type ARRAY
| ||||||||||
cost_per_unique_click NUMBER | ||||||||||
cost_per_unique_inline_link_click NUMBER | ||||||||||
country STRING | ||||||||||
cpc NUMBER | ||||||||||
cpm NUMBER | ||||||||||
cpp NUMBER | ||||||||||
ctr NUMBER | ||||||||||
date_start DATE-TIME | ||||||||||
date_stop DATE-TIME | ||||||||||
engagement_rate_ranking STRING | ||||||||||
frequency NUMBER | ||||||||||
impressions INTEGER | ||||||||||
inline_link_click_ctr NUMBER | ||||||||||
inline_link_clicks INTEGER | ||||||||||
inline_post_engagement INTEGER | ||||||||||
objective STRING | ||||||||||
outbound_clicks ARRAY
| ||||||||||
quality_ranking STRING | ||||||||||
reach INTEGER | ||||||||||
social_spend NUMBER | ||||||||||
spend NUMBER | ||||||||||
unique_actions ARRAY
| ||||||||||
unique_clicks INTEGER | ||||||||||
unique_ctr NUMBER | ||||||||||
unique_inline_link_click_ctr NUMBER | ||||||||||
unique_inline_link_clicks INTEGER | ||||||||||
unique_link_clicks_ctr NUMBER | ||||||||||
unique_outbound_clicks ARRAY
| ||||||||||
video_30_sec_watched_actions ARRAY
| ||||||||||
video_p100_watched_actions ARRAY
| ||||||||||
video_p25_watched_actions ARRAY
| ||||||||||
video_p50_watched_actions ARRAY
| ||||||||||
video_p75_watched_actions ARRAY
| ||||||||||
video_play_curve_actions ARRAY
| ||||||||||
website_ctr ARRAY
|
Theads_insights_dma table contains entries for each campaign/set/ad combination for each day, along with detailed statistics, segmented by DMA (Designated Market Area).
This table contains the same fields as theads_insights table, with the exception ofdma.
Note: Data for deleted ads, adsets, and campaigns will not appear in this table even if theInclude data from deleted campaigns, ads, and adsets option in the integration’s settings is enabled.
Key-based Incremental | |
Primary Keys | ad_id adset_id campaign_id dma date_start |
Replication Key | date_start |
| Useful links |
| Join ads_insights_dma with | on |
|---|---|
| adcreative | ads_insights_dma.account_id = adcreative.account_id |
| ads | ads_insights_dma.account_id = ads.account_id ads_insights_dma.adset_id = ads.adset_id ads_insights_dma.ad_id = ads.id ads_insights_dma.campaign_id = ads.campaign_id |
| ads_insights | ads_insights_dma.account_id = ads_insights.account_id ads_insights_dma.adset_id = ads_insights.adset_id ads_insights_dma.ad_id = ads_insights.ad_id ads_insights_dma.campaign_id = ads_insights.campaign_id |
| ads_insights_age_and_gender | ads_insights_dma.account_id = ads_insights_age_and_gender.account_id ads_insights_dma.adset_id = ads_insights_age_and_gender.adset_id ads_insights_dma.ad_id = ads_insights_age_and_gender.ad_id ads_insights_dma.campaign_id = ads_insights_age_and_gender.campaign_id |
| ads_insights_country | ads_insights_dma.account_id = ads_insights_country.account_id ads_insights_dma.adset_id = ads_insights_country.adset_id ads_insights_dma.ad_id = ads_insights_country.ad_id ads_insights_dma.campaign_id = ads_insights_country.campaign_id |
| ads_insights_platform_and_device | ads_insights_dma.account_id = ads_insights_platform_and_device.account_id ads_insights_dma.adset_id = ads_insights_platform_and_device.adset_id ads_insights_dma.ad_id = ads_insights_platform_and_device.ad_id ads_insights_dma.campaign_id = ads_insights_platform_and_device.campaign_id |
| ads_insights_region | ads_insights_dma.account_id = ads_insights_region.account_id ads_insights_dma.adset_id = ads_insights_region.adset_id ads_insights_dma.ad_id = ads_insights_region.ad_id ads_insights_dma.campaign_id = ads_insights_region.campaign_id |
| adsets | ads_insights_dma.adset_id = adsets.id |
| campaigns | ads_insights_dma.ad_id = campaigns.ads.data.id ads_insights_dma.campaign_id = campaigns.id |
account_id STRING | ||||||||||
account_name STRING | ||||||||||
action_values ARRAY
| ||||||||||
actions ARRAY
| ||||||||||
ad_id STRING | ||||||||||
ad_name STRING | ||||||||||
adset_id STRING | ||||||||||
adset_name STRING | ||||||||||
campaign_id STRING | ||||||||||
campaign_name STRING | ||||||||||
canvas_avg_view_percent NUMBER | ||||||||||
canvas_avg_view_time NUMBER | ||||||||||
clicks INTEGER | ||||||||||
conversion_rate_ranking STRING | ||||||||||
conversion_values ARRAY
| ||||||||||
conversions ARRAY
| ||||||||||
cost_per_action_type ARRAY
| ||||||||||
cost_per_inline_link_click NUMBER | ||||||||||
cost_per_inline_post_engagement NUMBER | ||||||||||
cost_per_unique_action_type ARRAY
| ||||||||||
cost_per_unique_click NUMBER | ||||||||||
cost_per_unique_inline_link_click NUMBER | ||||||||||
cpc NUMBER | ||||||||||
cpm NUMBER | ||||||||||
cpp NUMBER | ||||||||||
ctr NUMBER | ||||||||||
date_start DATE-TIME | ||||||||||
date_stop DATE-TIME | ||||||||||
dma STRING | ||||||||||
engagement_rate_ranking STRING | ||||||||||
frequency NUMBER | ||||||||||
impressions INTEGER | ||||||||||
inline_link_click_ctr NUMBER | ||||||||||
inline_link_clicks INTEGER | ||||||||||
inline_post_engagement INTEGER | ||||||||||
objective STRING | ||||||||||
outbound_clicks ARRAY
| ||||||||||
quality_ranking STRING | ||||||||||
reach INTEGER | ||||||||||
social_spend NUMBER | ||||||||||
spend NUMBER | ||||||||||
unique_actions ARRAY
| ||||||||||
unique_clicks INTEGER | ||||||||||
unique_ctr NUMBER | ||||||||||
unique_inline_link_click_ctr NUMBER | ||||||||||
unique_inline_link_clicks INTEGER | ||||||||||
unique_link_clicks_ctr NUMBER | ||||||||||
unique_outbound_clicks ARRAY
| ||||||||||
video_30_sec_watched_actions ARRAY
| ||||||||||
video_p100_watched_actions ARRAY
| ||||||||||
video_p25_watched_actions ARRAY
| ||||||||||
video_p50_watched_actions ARRAY
| ||||||||||
video_p75_watched_actions ARRAY
| ||||||||||
video_play_curve_actions ARRAY
| ||||||||||
website_ctr ARRAY
|
Theads_insights_hourly_advertiser table contains entries for each campaign/set/ad combination for each day, along with detailed statistics, segmented by audience and advertiser time zones.This table contains the same fields as theads_insights table, with the exception ofhourly_stats_aggregated_by_advertiser_time_zone.
Note: Data for deleted ads, adsets, and campaigns will not appear in this table even if theInclude data from deleted campaigns, ads, and adsets option in the integration’s settings is enabled.
Key-based Incremental | |
Primary Keys | hourly_stats_aggregated_by_advertiser_time_zone ad_id adset_id campaign_id date_start |
Replication Key | date_start |
| Useful links |
account_currency STRING | ||||||||||
account_id STRING | ||||||||||
account_name STRING | ||||||||||
action_values ARRAY
| ||||||||||
actions ARRAY
| ||||||||||
ad_id STRING | ||||||||||
ad_name STRING | ||||||||||
adset_id STRING | ||||||||||
adset_name STRING | ||||||||||
attribution_setting STRING | ||||||||||
buying_type STRING | ||||||||||
campaign_id STRING | ||||||||||
campaign_name STRING | ||||||||||
canvas_avg_view_percent STRING | ||||||||||
canvas_avg_view_time STRING | ||||||||||
catalog_segment_value ARRAY
| ||||||||||
clicks STRING | ||||||||||
conversion_rate_ranking STRING | ||||||||||
conversion_values ARRAY
| ||||||||||
conversions ARRAY
| ||||||||||
converted_product_quantity ARRAY
| ||||||||||
converted_product_value ARRAY
| ||||||||||
cost_per_action_type ARRAY
| ||||||||||
cost_per_conversion ARRAY
| ||||||||||
cost_per_estimated_ad_recallers STRING | ||||||||||
cost_per_inline_link_click STRING | ||||||||||
cost_per_inline_post_engagement STRING | ||||||||||
cost_per_outbound_click ARRAY
| ||||||||||
cost_per_thruplay ARRAY
| ||||||||||
cost_per_unique_action_type ARRAY
| ||||||||||
cost_per_unique_click STRING | ||||||||||
cost_per_unique_inline_link_click STRING | ||||||||||
cost_per_unique_outbound_click ARRAY
| ||||||||||
cpc STRING | ||||||||||
cpm STRING | ||||||||||
cpp STRING | ||||||||||
ctr STRING | ||||||||||
date_start DATE-TIME | ||||||||||
date_stop DATE-TIME | ||||||||||
engagement_rate_ranking STRING | ||||||||||
estimated_ad_recall_rate STRING | ||||||||||
estimated_ad_recallers STRING | ||||||||||
frequency STRING | ||||||||||
full_view_impressions STRING | ||||||||||
hourly_stats_aggregated_by_advertiser_time_zone STRING | ||||||||||
impressions STRING | ||||||||||
inline_link_click_ctr STRING | ||||||||||
inline_link_clicks STRING | ||||||||||
inline_post_engagement STRING | ||||||||||
instant_experience_clicks_to_open STRING | ||||||||||
instant_experience_clicks_to_start STRING | ||||||||||
instant_experience_outbound_clicks STRING | ||||||||||
mobile_app_purchase_roas ARRAY
| ||||||||||
objective STRING | ||||||||||
optimization_goal STRING | ||||||||||
outbound_clicks ARRAY
| ||||||||||
outbound_clicks_ctr ARRAY
| ||||||||||
place_page_name STRING | ||||||||||
purchase_roas ARRAY
| ||||||||||
qualifying_question_qualify_answer_rate STRING | ||||||||||
quality_ranking STRING | ||||||||||
reach STRING | ||||||||||
social_spend STRING | ||||||||||
spend STRING | ||||||||||
website_ctr ARRAY
| ||||||||||
website_purchase_roas ARRAY
|
Theads_insights_platform_and_device table contains entries for each campaign/set/ad combination for each day, along with detailed statistics, segmented by publisher platform, platform position, and device.
This table contains the same fields as theads_insights table, with the exception of the following fields:
publisher_platformplatform_positionimpression_deviceNote: Data for deleted ads, adsets, and campaigns will not appear in this table even if theInclude data from deleted campaigns, ads, and adsets option in the integration’s settings is enabled.
Key-based Incremental | |
Primary Keys | ad_id adset_id campaign_id date_start publisher_platform platform_position impression_device |
Replication Key | date_start |
| Useful links |
| Join ads_insights_platform_and_device with | on |
|---|---|
| adcreative | ads_insights_platform_and_device.account_id = adcreative.account_id |
| ads | ads_insights_platform_and_device.account_id = ads.account_id ads_insights_platform_and_device.adset_id = ads.adset_id ads_insights_platform_and_device.ad_id = ads.id ads_insights_platform_and_device.campaign_id = ads.campaign_id |
| ads_insights | ads_insights_platform_and_device.account_id = ads_insights.account_id ads_insights_platform_and_device.adset_id = ads_insights.adset_id ads_insights_platform_and_device.ad_id = ads_insights.ad_id ads_insights_platform_and_device.campaign_id = ads_insights.campaign_id |
| ads_insights_age_and_gender | ads_insights_platform_and_device.account_id = ads_insights_age_and_gender.account_id ads_insights_platform_and_device.adset_id = ads_insights_age_and_gender.adset_id ads_insights_platform_and_device.ad_id = ads_insights_age_and_gender.ad_id ads_insights_platform_and_device.campaign_id = ads_insights_age_and_gender.campaign_id |
| ads_insights_country | ads_insights_platform_and_device.account_id = ads_insights_country.account_id ads_insights_platform_and_device.adset_id = ads_insights_country.adset_id ads_insights_platform_and_device.ad_id = ads_insights_country.ad_id ads_insights_platform_and_device.campaign_id = ads_insights_country.campaign_id |
| ads_insights_dma | ads_insights_platform_and_device.account_id = ads_insights_dma.account_id ads_insights_platform_and_device.adset_id = ads_insights_dma.adset_id ads_insights_platform_and_device.ad_id = ads_insights_dma.ad_id ads_insights_platform_and_device.campaign_id = ads_insights_dma.campaign_id |
| ads_insights_region | ads_insights_platform_and_device.account_id = ads_insights_region.account_id ads_insights_platform_and_device.adset_id = ads_insights_region.adset_id ads_insights_platform_and_device.ad_id = ads_insights_region.ad_id ads_insights_platform_and_device.campaign_id = ads_insights_region.campaign_id |
| adsets | ads_insights_platform_and_device.adset_id = adsets.id |
| campaigns | ads_insights_platform_and_device.ad_id = campaigns.ads.data.id ads_insights_platform_and_device.campaign_id = campaigns.id |
account_id STRING | ||||||||||
account_name STRING | ||||||||||
action_values ARRAY
| ||||||||||
actions ARRAY
| ||||||||||
ad_id STRING | ||||||||||
ad_name STRING | ||||||||||
adset_id STRING | ||||||||||
adset_name STRING | ||||||||||
campaign_id STRING | ||||||||||
campaign_name STRING | ||||||||||
canvas_avg_view_percent NUMBER | ||||||||||
canvas_avg_view_time NUMBER | ||||||||||
clicks INTEGER | ||||||||||
conversion_rate_ranking STRING | ||||||||||
conversion_values ARRAY
| ||||||||||
conversions ARRAY
| ||||||||||
cost_per_action_type ARRAY
| ||||||||||
cost_per_inline_link_click NUMBER | ||||||||||
cost_per_inline_post_engagement NUMBER | ||||||||||
cost_per_unique_action_type ARRAY
| ||||||||||
cost_per_unique_click NUMBER | ||||||||||
cost_per_unique_inline_link_click NUMBER | ||||||||||
cpc NUMBER | ||||||||||
cpm NUMBER | ||||||||||
cpp NUMBER | ||||||||||
ctr NUMBER | ||||||||||
date_start DATE-TIME | ||||||||||
date_stop DATE-TIME | ||||||||||
engagement_rate_ranking STRING | ||||||||||
frequency NUMBER | ||||||||||
impression_device STRING | ||||||||||
impressions INTEGER | ||||||||||
inline_link_click_ctr NUMBER | ||||||||||
inline_link_clicks INTEGER | ||||||||||
inline_post_engagement INTEGER | ||||||||||
objective STRING | ||||||||||
outbound_clicks ARRAY
| ||||||||||
placement STRING | ||||||||||
platform_position STRING | ||||||||||
publisher_platform STRING | ||||||||||
quality_ranking STRING | ||||||||||
reach INTEGER | ||||||||||
social_spend NUMBER | ||||||||||
spend NUMBER | ||||||||||
unique_actions ARRAY
| ||||||||||
unique_clicks INTEGER | ||||||||||
unique_ctr NUMBER | ||||||||||
unique_inline_link_click_ctr NUMBER | ||||||||||
unique_inline_link_clicks INTEGER | ||||||||||
unique_link_clicks_ctr NUMBER | ||||||||||
unique_outbound_clicks ARRAY
| ||||||||||
video_30_sec_watched_actions ARRAY
| ||||||||||
video_p100_watched_actions ARRAY
| ||||||||||
video_p25_watched_actions ARRAY
| ||||||||||
video_p50_watched_actions ARRAY
| ||||||||||
video_p75_watched_actions ARRAY
| ||||||||||
video_play_curve_actions ARRAY
| ||||||||||
website_ctr ARRAY
|
Theads_insights_region table contains entries for each campaign/set/ad combination for each day, along with detailed statistics, segmented by region. This table enables you to view your data by the region (ex: state or province) where people live or were located when they saw your ads, depending on how the location targeting was set.
This table contains the same fields as theads_insights table, with the exception ofregion.
Note: Data for deleted ads, adsets, and campaigns will not appear in this table even if theInclude data from deleted campaigns, ads, and adsets option in the integration’s settings is enabled.
Key-based Incremental | |
Primary Keys | ad_id adset_id campaign_id date_start region |
Replication Key | date_start |
| Useful links |
| Join ads_insights_region with | on |
|---|---|
| adcreative | ads_insights_region.account_id = adcreative.account_id |
| ads | ads_insights_region.account_id = ads.account_id ads_insights_region.adset_id = ads.adset_id ads_insights_region.ad_id = ads.id ads_insights_region.campaign_id = ads.campaign_id |
| ads_insights | ads_insights_region.account_id = ads_insights.account_id ads_insights_region.adset_id = ads_insights.adset_id ads_insights_region.ad_id = ads_insights.ad_id ads_insights_region.campaign_id = ads_insights.campaign_id |
| ads_insights_age_and_gender | ads_insights_region.account_id = ads_insights_age_and_gender.account_id ads_insights_region.adset_id = ads_insights_age_and_gender.adset_id ads_insights_region.ad_id = ads_insights_age_and_gender.ad_id ads_insights_region.campaign_id = ads_insights_age_and_gender.campaign_id |
| ads_insights_country | ads_insights_region.account_id = ads_insights_country.account_id ads_insights_region.adset_id = ads_insights_country.adset_id ads_insights_region.ad_id = ads_insights_country.ad_id ads_insights_region.campaign_id = ads_insights_country.campaign_id |
| ads_insights_dma | ads_insights_region.account_id = ads_insights_dma.account_id ads_insights_region.adset_id = ads_insights_dma.adset_id ads_insights_region.ad_id = ads_insights_dma.ad_id ads_insights_region.campaign_id = ads_insights_dma.campaign_id |
| ads_insights_platform_and_device | ads_insights_region.account_id = ads_insights_platform_and_device.account_id ads_insights_region.adset_id = ads_insights_platform_and_device.adset_id ads_insights_region.ad_id = ads_insights_platform_and_device.ad_id ads_insights_region.campaign_id = ads_insights_platform_and_device.campaign_id |
| adsets | ads_insights_region.adset_id = adsets.id |
| campaigns | ads_insights_region.ad_id = campaigns.ads.data.id ads_insights_region.campaign_id = campaigns.id |
account_id STRING | ||||||||||
account_name STRING | ||||||||||
action_values ARRAY
| ||||||||||
actions ARRAY
| ||||||||||
ad_id STRING | ||||||||||
ad_name STRING | ||||||||||
adset_id STRING | ||||||||||
adset_name STRING | ||||||||||
campaign_id STRING | ||||||||||
campaign_name STRING | ||||||||||
canvas_avg_view_percent NUMBER | ||||||||||
canvas_avg_view_time NUMBER | ||||||||||
clicks INTEGER | ||||||||||
conversion_rate_ranking STRING | ||||||||||
conversion_values ARRAY
| ||||||||||
conversions ARRAY
| ||||||||||
cost_per_action_type ARRAY
| ||||||||||
cost_per_inline_link_click NUMBER | ||||||||||
cost_per_inline_post_engagement NUMBER | ||||||||||
cost_per_unique_action_type ARRAY
| ||||||||||
cost_per_unique_click NUMBER | ||||||||||
cost_per_unique_inline_link_click NUMBER | ||||||||||
cpc NUMBER | ||||||||||
cpm NUMBER | ||||||||||
cpp NUMBER | ||||||||||
ctr NUMBER | ||||||||||
date_start DATE-TIME | ||||||||||
date_stop DATE-TIME | ||||||||||
engagement_rate_ranking STRING | ||||||||||
frequency NUMBER | ||||||||||
impressions INTEGER | ||||||||||
inline_link_click_ctr NUMBER | ||||||||||
inline_link_clicks INTEGER | ||||||||||
inline_post_engagement INTEGER | ||||||||||
objective STRING | ||||||||||
outbound_clicks ARRAY
| ||||||||||
quality_ranking STRING | ||||||||||
reach INTEGER | ||||||||||
region STRING | ||||||||||
social_spend NUMBER | ||||||||||
spend NUMBER | ||||||||||
unique_actions ARRAY
| ||||||||||
unique_clicks INTEGER | ||||||||||
unique_ctr NUMBER | ||||||||||
unique_inline_link_click_ctr NUMBER | ||||||||||
unique_inline_link_clicks INTEGER | ||||||||||
unique_link_clicks_ctr NUMBER | ||||||||||
unique_outbound_clicks ARRAY
| ||||||||||
video_30_sec_watched_actions ARRAY
| ||||||||||
video_p100_watched_actions ARRAY
| ||||||||||
video_p25_watched_actions ARRAY
| ||||||||||
video_p50_watched_actions ARRAY
| ||||||||||
video_p75_watched_actions ARRAY
| ||||||||||
video_play_curve_actions ARRAY
| ||||||||||
website_ctr ARRAY
|
Theadsets table contains info about the Ad Sets in your Facebook Ads account.
This is a Core Object table.
Because this table usesupdated_time as part of the Primary Key, query results might return various versions of the same adgroup.
To reflect the latest state of the adgroup, use the latestupdated_time timestamp.
If theInclude data from deleted campaigns, ads, and adsets box in the integration’s settings is checked, this table will include data for deleted adsets.
Key-based Incremental | |
Primary Keys | id updated_time |
Replication Key | updated_time |
| Useful links |
| Join adsets with | on |
|---|---|
| adcreative | adsets.id = adcreative.adlabels.id adsets.promoted_object.offer_id = adcreative.object_story_spec.link_data.offer_id adsets.promoted_object.offer_id = adcreative.object_story_spec.template_data.offer_id adsets.promoted_object.offer_id = adcreative.object_story_spec.video_data.offer_id adsets.promoted_object.page_id = adcreative.object_story_spec.page_id adsets.promoted_object.product_set_id = adcreative.product_set_id |
| ads | adsets.id = ads.id adsets.id = ads.adset_id |
| ads_insights | adsets.id = ads_insights.adset_id |
| ads_insights_age_and_gender | adsets.id = ads_insights_age_and_gender.adset_id |
| ads_insights_country | adsets.id = ads_insights_country.adset_id |
| ads_insights_dma | adsets.id = ads_insights_dma.adset_id |
| ads_insights_platform_and_device | adsets.id = ads_insights_platform_and_device.adset_id |
| ads_insights_region | adsets.id = ads_insights_region.adset_id |
account_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
adlabels ARRAY
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bid_info OBJECT
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
budget_remaining NUMBER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
campaign_id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
created_time DATE-TIME | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
daily_budget NUMBER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
effective_status STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
end_time DATE-TIME | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lifetime_budget NUMBER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name STRING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
promoted_object OBJECT
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
start_time DATE-TIME | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
targeting OBJECT
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updated_time DATE-TIME |
Thecampaigns table contains info about the campaigns in your Facebook Ads account. Facebook defines campaigns as“a grouping of ad sets organized by the same business objective.”
This is a Core Object table.
If theInclude data from deleted campaigns, ads, and adsets box in the integration’s settings is checked, this table will include data for deleted campaigns.
Key-based Incremental | |
Primary Key | id |
Replication Key | updated_time |
| Useful links |
| Join campaigns with | on |
|---|---|
| ads | campaigns.ads.data.id = ads.id campaigns.id = ads.campaign_id |
| ads_insights | campaigns.ads.data.id = ads_insights.ad_id campaigns.id = ads_insights.campaign_id |
| ads_insights_age_and_gender | campaigns.ads.data.id = ads_insights_age_and_gender.ad_id campaigns.id = ads_insights_age_and_gender.campaign_id |
| ads_insights_country | campaigns.ads.data.id = ads_insights_country.ad_id campaigns.id = ads_insights_country.campaign_id |
| ads_insights_dma | campaigns.ads.data.id = ads_insights_dma.ad_id campaigns.id = ads_insights_dma.campaign_id |
| ads_insights_platform_and_device | campaigns.ads.data.id = ads_insights_platform_and_device.ad_id campaigns.id = ads_insights_platform_and_device.campaign_id |
| ads_insights_region | campaigns.ads.data.id = ads_insights_region.ad_id campaigns.id = ads_insights_region.campaign_id |
account_id STRING | ||||
adlabels ARRAY
| ||||
ads OBJECT
| ||||
buying_type STRING | ||||
effective_status STRING | ||||
id STRING | ||||
name STRING | ||||
objective STRING | ||||
spend_cap NUMBER | ||||
start_time DATE-TIME | ||||
updated_time DATE-TIME |
| Related | Troubleshooting |
Did this article help? If you have questions or feedback, feel free tosubmit a pull request with your suggestions,open an issue on GitHub, orreach out to us.