ETLMCPData Conveyance Works
Log in Start free
Docs

The trailing sync window: which days each run re-pulls

Why recent days change in your destination: each routine sync pulls the last few days again, how many depends on the platform, and when it reaches further back.

Every routine sync, the daily scheduled run and Run now alike, pulls the last few days again, ending today in the pipeline's time zone. Ad platforms can update a day's figures after the day is over, for example when a conversion is credited late or invalid traffic is removed, so pulling recent days again is how those corrections reach your destination. That is why yesterday's numbers can differ from what you saw this morning. The window is 7 days by default, today included, and longer for platforms that keep restating a day for longer. It never reaches further back than the history your plan keeps.

How many days each platform re-pulls

etlmcp takes the default or the number of days its connector code sets for that platform, whichever is longer. When the connector is available, a routine sync of each platform pulls these days, today included:

Pinterest, Snapchat and the demo connector use the default. The others re-pull longer because their figures move for longer:

  • Meta. Meta's Insights best-practices page says figures stop changing 28 days after they are reported. The Meta window covers that and one day more.
  • Google Ads. Google's help center puts the default conversion window for Search and Display at 30 days and notes that some conversions happen several days after the ad interaction. The Google Ads window covers the default window and one day more. Depending on the conversion source, a conversion action's window can be set as short as 1 day or as long as 90; with a window longer than 30 days, days older than the trailing window can still gain conversions, so run a backfill over them when you need them settled.
  • Shopify. etlmcp counts each Shopify order on the day it was placed, and its totals are what remains after refunds, returns and order edits, so those changes land on the order's own day. A cancelled order drops out of the day it was placed. A day pulled again within the window carries the totals as they stand now.

Which day counts as today

A scheduled run ends its window on the date it runs, in the pipeline's own time zone. Run now ends on the same local date, but never later than today's date in UTC, because a run cannot ask for a future day. A pipeline set to a time zone ahead of UTC can therefore get a Run now window that ends a day earlier than the scheduled one would. The time zone and hour are set on the pipeline; see when a pipeline runs.

The last day in any window is still in progress, so its figures are partial. The next day's sync pulls it again, along with the rest of the window.

The plan's history caps the start

The window never starts more than your plan's history before its last day. On Free that is 30 days, on Starter 365, on Team 365, on Agency 730 and on Scale 3650. On Free, the Shopify window is longer than the plan's history, so a Shopify sync on Free starts at the oldest day the plan keeps. On the other plans every window in the table fits, and the cap matters only for the catch-up described next. See the plans.

After a gap, the scheduled window reaches back

A scheduled sync is skipped while its source needs reconnecting or cannot be read, and on a day when another run of the same pipeline is already queued or running. So that no days fall out of every window, the scheduler checks the last day the pipeline's earlier syncs covered. If that day comes before the start of today's window, the run starts at the first day of a trailing window ending on that last covered day, not just the day after it: that last day was incomplete, and the days before it were still being restated.

For example, a Meta pipeline whose last scheduled sync ended on March 1 and whose source was reconnected on March 20 starts its next scheduled window on the first day of the window that ended March 1, so the days in between and the days Meta was still correcting are pulled in one run. The plan's history still caps the start.

The last day covered is read from completed scheduled syncs first, and from any completed sync when no scheduled one counts yet; in that case it is never later than the day before the first undelivered sync's range. A sync that ended partial, which failed while delivering, counts only for a destination that receives every row again on each run; for one that replaces a date range, such as a PostgreSQL table, only a success counts.

Run now does not do this catch-up: it always pulls the plain trailing window. To fill a longer gap by hand, start a run with dates, as backfills explains.

What happens to rows already in your destination

A re-pull replaces, it does not add. For a PostgreSQL destination, each run deletes the pipeline's own rows for the dates it pulled, widened to any date that appears in the new rows, and writes the fresh ones. Totals in your table therefore move for recent days and settle once a day has left the window.

Starting a trailing-window run yourself

With Start a run on the REST API or run_pipeline in MCP, leave out both dates to get the same window as Run now. Give only one of them and the request is refused with give both start and end, or neither for the trailing window. If a run fails, the next scheduled sync's window covers the recent days it missed; see retries.

Related

Sources

  1. Limits and Best Practices — developers.facebook.com, checked
  2. About data freshness — support.google.com, checked
  3. About conversion windows — support.google.com, checked