Meta pipelines
Marketing API pulls with breakdowns, backfills and alerts when a field or limit changes.
Meta Ads
We pull Meta Marketing API insights for Facebook, Instagram, Messenger and Audience Network placements, with audience and creative breakdowns, into Redshift, Snowflake, BigQuery, PostgreSQL or Databricks. Then we join them to the same spend model as every other channel and keep Meta's attribution settings visible.
What we pull
Pulled through the platform's API on a schedule, landed in your warehouse, and kept up to date.
Example mapping
The same fields every other platform has, under different names and rules. Here is how we line them up.
| Concept | Meta Ads field | In your model | What we do |
|---|---|---|---|
| Spend | spend | spend_usd | Kept in the ad account currency, then converted |
| Date & time zone | date_start | date + account_tz | Reporting day in the ad account's time zone |
| Currency | account_currency | currency + spend_usd | Per ad account |
| Attribution window | action_values (purchase) | attributed_sales + attribution_window | 7-day click and 1-day view by default |
What we build
Marketing API pulls with breakdowns, backfills and alerts when a field or limit changes.
Meta's 7-day click and 1-day view numbers kept and labeled, next to Shopify sales and your attribution platform.
AI flags rising frequency and falling CTR before ROAS drops.
Shift budget toward what's working, inside limits you approve.
Where the data goes
Instagram ads run through Meta, so one Marketing API pipeline covers both, split by placement.
We call the Marketing API insights endpoint for each ad account at campaign, ad set and ad level, one row per day. Long date ranges and heavy breakdowns run as asynchronous report jobs so they finish instead of timing out.
The publisher_platform and platform_position breakdowns separate Facebook, Instagram, Messenger and Audience Network, down to Instagram feed, Stories, Reels and Explore.
Meta returns conversions as nested lists of action types and values per attribution window. Models flatten them so purchases, leads and add-to-carts become plain columns.
Tableau, Power BI and Looker Studio read the modeled tables, next to Shopify sales and every other channel.
| Table | Grain | What's in it |
|---|---|---|
meta_raw.insights | One API response per account, level, breakdown set and day | Raw JSON with the nested actions arrays, kept for replays. |
meta_ads.ad_daily | Ad x day | Spend, impressions, clicks, reach, frequency and actions for the attribution windows you choose. |
meta_ads.ad_daily_placement | Ad x day x publisher platform x position | Facebook versus Instagram, and Instagram feed, Stories, Reels and Explore. |
meta_ads.ad_daily_audience | Ad x day x age and gender, or country | Audience breakdowns, stored apart because Meta only allows some breakdowns together. |
meta_ads.ad_creatives | One row per creative | Format, text and asset IDs, for creative and fatigue analysis. |
Warehouses we load: Amazon Redshift, Snowflake, BigQuery, Databricks and PostgreSQL. BI tools on top: Tableau, Power BI and Looker Studio, as dashboards or automated client reports. How we model it: marketing data warehouse.
Results
FAQ
Meta credits conversions with its own attribution window (7-day click and 1-day view by default) and includes modeled conversions. Shopify records the orders that actually happened. We keep both side by side and report ROAS on a rule you agree on.
Yes. Snapchat, Pinterest, LinkedIn and Reddit ads all have APIs, and they land in the same model as everything else.
Yes. Instagram ads are bought and reported through Meta, so their data comes from the Meta Marketing API, not a separate Instagram ads API. We pull insights with the publisher_platform breakdown, load them into Redshift and model an Instagram view by placement. The same tables can live in Snowflake, BigQuery, PostgreSQL or Databricks.
Yes, at the level Meta reports it. The platform_position breakdown splits Instagram spend and results by position, such as feed, Stories, Reels and Explore. Some metrics are not available with every breakdown, and we label those gaps rather than estimate them.
Land it in a warehouse first. Connecting a BI tool straight to the Marketing API runs into rate limits and nested conversion fields. With the data modeled in Redshift, Snowflake or BigQuery, Tableau and Power BI read flat ad, placement and audience tables through their native connectors.
Reach counts unique people. The same person reached on Monday and Tuesday counts once for the week but once on each day, so summed daily reach overstates weekly reach. We pull reach at the grain you report on, or label it as daily so nobody sums it by mistake.
Tell us which accounts you run and where the numbers stop matching. An engineer will tell you what we'd fix first.