When you list Meta insights one ad per row, Meta leaves out every ad that has been archived or deleted unless your request asks for those statuses by name. The spend those ads made does not disappear: Meta still counts it in the campaign, ad set and account totals. So per-ad rows can add up to less than the account total for the same days, and the gap is the spend of ads you have since archived or deleted. To get it back, filter on ad.effective_status with every status listed, archived and deleted included. When the Meta connector is available, etlmcp sends that filter on every request.
How Meta treats archived and deleted objects
Meta sorts campaigns, ad sets and ads into three groups: live (active, paused, with issues, in review and similar), archived, and deleted. For reporting:
- Archived objects can still be read by their ID, stats included, but a list of children skips them unless you filter for
ARCHIVED. - Deleted objects can still be read by their ID, stats included, but never as a child of a parent that is not deleted. Deleting a campaign also hides its ad sets and ads from normal listings: you reach them only by asking for their IDs.
- Parent totals include every child, live, archived or deleted, with no filter needed.
- Per-child insights, the ones you get with the
levelparameter, include live objects only, while the parent's total still counts the archived and deleted ones, so the children's rows can add up to less than the parent.
Meta also notes that a deleted ad can go on recording impressions, clicks and actions for 28 days after the last day it delivered. Meta advises waiting 28 days after an ad's last delivery before you delete it, so its figures have settled.
Ask for the statuses, not for activity
If you query the Insights API yourself, add a filtering entry on ad.effective_status with the IN operator and every value Meta's Ad reference lists: ACTIVE, PAUSED, DELETED, PENDING_REVIEW, DISAPPROVED, PREAPPROVED, PENDING_BILLING_INFO, CAMPAIGN_PAUSED, ARCHIVED, ADSET_PAUSED, IN_PROCESS and WITH_ISSUES. Meta's status guide names this filter as the way to get insights for deleted objects.
Meta's limits and best practices page separately recommends a filter on ad.impressions greater than 0, so that a report returns only the ads that had data. That filter trims empty rows. Meta's pages do not say that it brings back archived or deleted ads on its own, so do not use it in place of the status filter. A filter that names only live statuses, such as ACTIVE and PAUSED, leaves that spend out too.
What etlmcp does when the connector is available
When the Meta connector is available, etlmcp asks for the account's insights at the ad level, one row per ad per day, and every request carries the ad.effective_status filter with all twelve statuses above. An ad you archived or deleted would keep its rows on the days it spent, so the sum of cost over a day would not be short by the spend of those ads.
Each row would keep the campaign, ad set and ad IDs and names as Meta reports them. The row would not carry the ad's status: you cannot tell from your table which ads are now archived or deleted. If you need that, read the status from Meta yourself and join it on ad_id.
When the connector is available, each routine sync, scheduled or started with Run now, pulls the last 29 days again. That is longer than the 28 days Meta gives a deleted ad to keep recording, so late impressions and actions from an ad you deleted recently are read again by the routine syncs that follow. Routine syncs do not go back further than that window; start a run by hand over older dates if you want them read again. See the Meta connector for the columns and Start a run for a run over chosen dates.
Checking a gap
If your per-ad total is below the account's own total for the same days, check these in order:
- Make sure both sides cover the same dates.
- Look at the filter that built the lower number. If it names only live statuses, or none, the archived and deleted ads are the likely gap.
- Pull the account-level insights for one day of the gap. Meta counts every child at that level, so it gives you the target your per-ad rows should reach.
- If an ad was deleted less than 28 days after it last delivered, its figures may still move: compare again after a later sync.