The Meta Marketing API insights endpoint returns spend, impressions, clicks and conversions for any ad account, campaign, ad set or ad. Reporting at scale means querying at the account node with a level parameter, running large pulls as async jobs, requesting explicit attribution windows, reading the rate limit headers on every response and reloading the last 28 days daily. Pulling one account takes an afternoon; pulling 300 accounts every day, at ad level, with breakdowns and numbers that match Ads Manager, is a different project. The Insights API is flexible, which is the problem: the same request can return different conversions depending on attribution windows, report time and action types, and Meta changed which windows are available in January 2026.
This guide is for data engineers loading Meta Ads data into a warehouse. It pulls together what the Meta Marketing API documentation spreads across several pages, as of October 2026, when v26.0 was the latest Graph and Marketing API version.
Meta Marketing API insights basics: levels, fields and breakdowns
Insights is an edge on every ad object: /act_<AD_ACCOUNT_ID>/insights, /<CAMPAIGN_ID>/insights, /<ADSET_ID>/insights and /<AD_ID>/insights. For warehouse loads, query at the account node and set the level parameter (campaign, adset or ad). One call per account and day range is far more efficient than one call per object.
The parameters that shape every request:
fields: the metrics and attributes you want, such ascampaign_id,adset_id,ad_id,spend,impressions,clicks,actionsandaction_values.time_rangeordate_preset: the dates. Meta recommends presets where possible because they are cheaper to compute.time_increment=1: one row per day. Without it you get one total for the whole range.breakdowns: splits rows by dimensions such asage,gender,country,publisher_platformordevice_platform.action_breakdowns: splits theactionsarray, byaction_typeby default.filtering: for example, only rows with impressions greater than zero, which removes thousands of empty rows from large accounts.
A typical daily ad-level request looks like this (example):
GET /v26.0/act_1234567890/insights
?level=ad
&fields=campaign_id,adset_id,ad_id,spend,impressions,clicks,actions,action_values
&time_range={"since":"2026-10-01","until":"2026-10-28"}
&time_increment=1
&action_attribution_windows=["7d_click","1d_view"]
&filtering=[{"field":"impressions","operator":"GREATER_THAN","value":0}]
Keep breakdowns out of the main fact load. Each breakdown multiplies rows and processing cost, and some have shorter history (see below). Pull the breakdowns you actually report on as separate, smaller tables.
Sync vs async report jobs
Meta suggests trying synchronous calls first and switching to asynchronous jobs when they time out. At warehouse scale, most ad-level loads end up async.
The async flow:
- Submit: POST to the same
/insightsedge with the same parameters. The response contains areport_run_id. - Poll: GET the report run and check
async_statusandasync_percent_completion. The job is done when the status isJob Completedand completion is 100. - Fetch: GET
/<REPORT_RUN_ID>/insightsand page through the results. - Handle failure:
Job Failedmeans resubmit, ideally with a smaller date range or fewer fields.Job Skippedmeans the job expired and must be resubmitted. From v25.0, failed jobs return error details.
Practical rules: do not store report_run_id values long term, because they expire after 30 days. Poll with backoff rather than in a tight loop, since every poll is another API call. Async jobs can take up to an hour, so design the scheduler around submitting many jobs and collecting them later, not waiting on each.
Attribution windows in API requests
The action_attribution_windows parameter decides which windows the actions and action_values fields report. When you request several windows, each action comes back with a value per window.
The January 2026 change matters for every existing pipeline. Meta announced that from January 12, 2026 the 7-day view (7d_view) and 28-day view (28d_view) windows are no longer returned. The windows that remain are 1-day click, 7-day click, 28-day click, 1-day engaged view and 1-day view, along with defaults based on the advertiser's attribution settings. If your pipeline still requests the removed windows, check what it is receiving now and fix the request.
Two more settings decide whether your numbers match Ads Manager:
- Unified attribution setting: Ads Manager reports each ad set under its own attribution setting. The
use_unified_attribution_settingparameter asks the API to do the same. Choose one approach on purpose: either match each ad set's setting, or request a fixed window for everything so numbers are comparable across accounts. action_report_time: whether conversions are dated by the impression that led to them or by when the conversion happened. Impression-based dates are better for campaign evaluation, conversion-based dates for revenue reporting.
Store the windows and report time you used as columns or table metadata. Six months from now, someone will ask why the numbers changed.
Rate limits and usage headers
Meta applies Business Use Case (BUC) rate limits per ad account. For Ads Insights, the hourly call limit is a formula based on access tier and active ads: for standard access, 600 + 400 × active ads, minus a small penalty for user errors, and much higher for advanced access. You cannot see that budget directly, so you read the headers.
X-Business-Use-Case-Usage: for each ad account,call_count,total_cputimeandtotal_timeas percentages of the allowance, the use casetype(such asads_insights), andestimated_time_to_regain_accessin minutes when throttled.X-FB-Ads-Insights-Throttle:app_id_util_pctandacc_id_util_pct, the share of app and ad account capacity used, plus the access tier.
Error codes to handle:
- 80000 (subcode 2446079): Ads Insights BUC limit reached for that account.
- 4 (subcode 1504022): global throttling during high load. Wait and retry later.
- 100 (subcode 1487534): too much data requested in one call. Narrow the date range, fields or objects.
- 613: a custom rate limit was reached.
The pattern that works: a per-account token bucket in your scheduler, informed by the headers. When any percentage passes about 75, slow that account down. When an account is throttled, park it until the estimated time has passed and move on to others. Never retry a throttled call in a tight loop.
Restatements: how far back to reload
Meta says insights data refreshes every 15 minutes and does not change after 28 days. That gives you a clean rule: reload the last 28 days every day and overwrite those dates. Add a day of buffer so time zone boundaries never leave a gap.
Three more retention limits since January 2026 affect history:
- Unique-count fields (such as
unique_actions) with breakdowns: 13 months - Hourly breakdowns: 13 months
- Frequency breakdowns (
frequency_value): 6 months
Total values remain available for 37 months. If you need longer history for any of these, your warehouse is the only place it will exist, so start storing it now.
Handling actions arrays and custom conversions
actions and action_values are arrays of objects, not columns. Each element has an action_type, a value, and one key per requested attribution window, for example:
{
"action_type": "offsite_conversion.fb_pixel_purchase",
"value": "14",
"7d_click": "12",
"1d_view": "2"
}
Values arrive as strings, so cast them in staging. Custom conversions appear with action types in the form offsite_conversion.custom.<CUSTOM_CONVERSION_ID>. Join that ID to the account's custom conversions (from the customconversions edge) to get readable names.
Pick your primary conversion per client and write it down. A purchase can appear under several action types (for example a pixel purchase and an omni purchase that combines channels), and summing them double counts. We keep a mapping seed per client that says which action type is the reported "purchase" and which value field is revenue. If you send server events through the Conversions API, make sure deduplication works first, as covered in our server-side CAPI guide.
Loading into the warehouse
The loading pattern we use for Meta Ads data in a client-owned marketing data warehouse:
- Land raw JSON per account, level and date in a raw table (a VARIANT column in Snowflake, JSON in BigQuery), with the request parameters stored beside it.
- Flatten in staging: one row per date, account, campaign, ad set and ad for the base metrics, and a separate long table of date, ad, action type, window and value for actions.
- Overwrite by date range: delete and insert, or merge on the natural key, for the 29-day reload window.
- Track API versions: Meta's changelog lists when each version stops working. Marketing API v24.0, for example, was available only until October 6, 2026. Upgrade on a schedule, not when calls start failing.
Flattening the actions array in Snowflake looks like this (example):
select
r.raw:date_start::date as report_date,
r.raw:ad_id::string as ad_id,
a.value:action_type::string as action_type,
a.value:"7d_click"::number as conversions_7d_click,
a.value:"1d_view"::number as conversions_1d_view
from raw.meta_insights_ad_daily r,
lateral flatten(input => r.raw:actions) a;
To compare Meta with Google in the same model, the field mapping in our Google Ads API reporting guide applies the same way. We engineered two products with Pixis, an AI marketing platform working across Meta, Google and TikTok Ads (Pixis case study), and run ETL pipelines like this for agencies and brands. Once the tables are in place, the same model feeds dashboards in Looker Studio or Power BI. If you want this mapped for your accounts, book a free 30-minute ad data review or start with an ad data plan.
Frequently asked questions
How far back can the Meta Insights API go?
Meta says total values remain available for up to 37 months. Since January 12, 2026, some breakdowns are shorter: unique-count fields with breakdowns and hourly breakdowns are limited to 13 months, and frequency breakdowns to 6 months. If you will need history beyond those limits, pull it into your own warehouse now, because the API will not give it back later.
Why do Meta API numbers differ from Ads Manager?
The usual causes are a different attribution setting (Ads Manager uses each ad set's setting, while an API request may specify windows explicitly), a different action report time (impression date vs conversion date), a date range that has not finished restating, or a different action type (for example a pixel purchase vs an omni purchase). Match those four first. Time zone is rarely the cause, because both use the ad account's time zone.
How do I avoid Meta API rate limit errors?
Read the X-Business-Use-Case-Usage and X-FB-Ads-Insights-Throttle headers on every response and slow down as any value approaches 100. Request fewer fields per call, use async jobs for large reports, filter to objects with impressions, and spread accounts across the hour instead of starting them all at once. When you are throttled, wait for the estimated_time_to_regain_access value rather than retrying immediately.
Can I connect Meta Ads data to Looker Studio?
Yes. For a single account, a third-party connector straight into Looker Studio is often enough. For many accounts, load Insights API data into a warehouse such as BigQuery first and point Looker Studio at modeled tables: reports load faster, every client uses the same attribution window and action type, and history is kept beyond the API's retention limits.