ETLMCPData Conveyance Works
Log in Start free
Docs

Meta connector: what is synced and how

What a Meta sync pulls: one row per ad per day, purchases at Meta's default attribution, how far back it reaches, and when the login must be renewed.

Coming This connector is coming.

When the connector is available, a Meta sync reads the Marketing API's insights report at ad level, one row per ad per day, with Meta's default attribution left in place. Conversions are Meta's grouped purchases (omni_purchase), Meta serves history back 37 months, and each routine sync pulls the last 29 days again because Meta keeps revising recent figures. The login gives a long-lived token that cannot be refreshed, so you reconnect Meta about every two months; etlmcp emails your organization's owners before the token runs out.

The fields each row carries, and which Meta metric fills each one, are listed on the Meta connector page.

The report etlmcp asks for

Each request goes to the ad account's insights edge with the level set to ad and time_increment set to 1. Without that setting, Meta's insights reference says you get one total for the whole period instead of daily rows. Every row carries the campaign, ad set and ad ids and names; the ad set lands in the common adgroup_id and adgroup_name columns.

Meta's guide to ad object status says a report broken down with level leaves archived and deleted objects out, while their stats can still be read through the ad.effective_status filter. etlmcp sends that filter with every ad status, so spend from an ad you have since deleted or archived still appears on the days it ran.

No breakdowns are requested, so your table has no age, gender, placement or device split.

Conversions and clicks

Meta returns actions and action_values as lists, one entry per action type, and several purchase types overlap. Adding them up would count the same sale more than once. etlmcp reads one type only, omni_purchase, which Meta's Ads Action Stats reference lists under its grouped types as Purchases. That one type fills conversions and conversion_value; nothing is summed across types.

Every other action type becomes its own column under extra, named extra.actions.<type> for the count and extra.action_values.<type> for the value. If your conversion of interest is a lead or a registration, read that column rather than conversions.

The common clicks column is Meta's clicks metric, its count of clicks on your ads. Link clicks are a separate Meta metric, inline_link_clicks, kept as extra.link_clicks. Meta's insights reference notes that link clicks are always attributed with a one-day click window.

Attribution is not overridden. etlmcp does not send action_attribution_windows or use_unified_attribution_setting, so Meta applies its API default. The same reference tells you to set the unified setting to true to get Ads Manager's behavior, so purchase counts in your table can differ from what Ads Manager shows. Meta's reference also describes the default window two different ways in two sections, so compare a few days against Ads Manager before you report on these numbers.

History, date windows and re-pulls

Meta refuses a time range that starts more than 37 months before today. etlmcp works out the earliest allowed day from that limit and refuses an earlier start before calling Meta, so a backfill asking for older data fails at once instead of partway through.

A long range is fetched in short date windows. Meta's best-practices page says that a query that times out or returns too much data should be split into smaller ranges, and that asynchronous reports are the fallback for timeouts. etlmcp follows that order: a window Meta cannot answer is split in half and each half is asked for again; a single day that still times out is submitted as an asynchronous report and read back when Meta finishes it. A single day that is still over Meta's data limit stops the run with an error, because the same request can never succeed.

Meta's best-practices page says insights figures stop changing 28 days after they are reported. A routine sync therefore re-pulls the last 29 days, longer than the default of 7, so late conversions and corrected spend overwrite the earlier rows. See the trailing window for how this works across platforms.

Login, scope and token expiry

etlmcp asks Meta for one permission, ads_read, which Meta's permissions reference describes as access to ad report data through the Insights API. etlmcp asks for no permission that manages ads. It tells Meta's consent screen to ask again for a permission you once declined, so a reconnect can restore it.

Facebook Login gives a short-lived token that lasts hours. etlmcp swaps it at once for a long-lived token, which Meta says generally lasts about 60 days. etlmcp receives no refresh token from Meta, so it cannot renew the token in the background. etlmcp records when it expires, and a daily check emails the organization's owners once before that date, with the subject Your {…} connection expires on {…}, filled in with Meta and the date. Reconnect Meta before that date. Once it passes, the connection and its sources are marked as needing a reconnect. See expiring connections.

When Meta refuses a sync and the login no longer holds ads_read, the sync stops with the Meta login no longer allows reading ads; reconnect Meta.

Which ad accounts you can pick

Meta reports a status for every ad account. etlmcp lets you pick accounts with status 1 (active), 3 (unsettled) or 9 (in grace period). Any other status, such as disabled or closed, shows in the account picker with its box turned off, so you cannot tick it, and with the reason Meta reports this ad account as {…} and the status in words.

For error messages during a sync, see Meta connector errors.

Related

Sources

  1. Ad Account, Insights — developers.facebook.com, checked
  2. Limits and Best Practices — developers.facebook.com, checked
  3. Ad Account — developers.facebook.com, checked
  4. Manage your ad object's status — developers.facebook.com, checked
  5. Ads Action Stats — developers.facebook.com, checked
  6. Long-lived access tokens — developers.facebook.com, checked
  7. Permissions Reference for Meta Technologies APIs — developers.facebook.com, checked