ETLMCPData Conveyance Works
Log in Start free
Guides

LinkedIn retention and month rounding

LinkedIn keeps ad performance for ten years and demographics for two, and widens ALL-granularity ranges older than six months to whole months.

Coming This connector is coming.

LinkedIn's reporting API keeps ad performance figures (by account, campaign or creative) for ten years and professional demographic figures (by job title, function, seniority and the like) for two years. A second rule catches backfills: when you ask for a total with timeGranularity=ALL and either end of your date range lies more than six months back, LinkedIn moves that date to a month boundary and returns the whole month. A total that starts on the 15th of an old month therefore includes the 1st to the 14th as well, and comes out higher than the days you asked for. LinkedIn states this rounding only for ALL; daily requests, which etlmcp makes, come back as one row per day.

What LinkedIn keeps, and for how long

The retention period depends on what the request groups by:

Request grouped by Kept for
Account, campaign or creative (performance) Ten years
A professional demographic pivot, such as member job title, job function or seniority Two years

A request for a date before the allowed minimum fails with HTTP 400 and the code DATE_TOO_EARLY.

How month rounding inflates a total

timeGranularity=ALL returns one total for the whole range instead of one row per day. In LinkedIn's example, a request made on 1 August 2021 for 15 January to 15 July 2021 has its start moved back to 1 January, because the 15th sits outside the six-month window for daily data. The answer then counts spend, impressions and clicks from 1 to 14 January too. The same rule applies to the end date when it is older than six months, so an old range can grow at both ends.

To keep a backfill total from exceeding the sum of its daily rows:

  • Read the dates LinkedIn sends back. Request the dateRange field, and each element in the answer shows the dates it covers. Compare them with the range you asked for before you store or compare the figure.
  • Ask for whole months. For periods older than six months, request from the 1st to the last day of a month. The rounding then changes nothing.
  • Ask for days. With timeGranularity=DAILY you get one row per day and can add up exactly the days you need.

The page's numbers do not line up

LinkedIn's explanation of the rounding speaks of a six-month period for daily data and a two-year period for monthly data. Its retention section, a few lines above, gives ten years for performance data without mentioning either. The page does not say whether daily rows older than six months are still served one day at a time. Treat the two statements as describing different things, and check any old daily pull against a whole-month total before you rely on it.

What etlmcp does with LinkedIn's limits

When the LinkedIn connector is available, etlmcp asks for one row per creative per day (timeGranularity=DAILY) and never uses ALL. It checks the dates on every row it receives: a row whose start and end fall on different days stops the run with linkedin returned a row that covers more than one day, so a month-rounded figure is never stored under a single date. Summing etlmcp's daily rows for 15 January to 15 July gives exactly those days. If you compare them with an ALL total from another tool, line both up on whole calendar months first.

etlmcp only requests the creative pivot, never a demographic one, so the two-year demographic limit does not shorten anything etlmcp stores.

For the ten-year limit, the connector works out LinkedIn's oldest servable day itself, in UTC, before any call:

  • A backfill that starts earlier is moved up to that day. The older days are neither requested nor overwritten, so rows you stored while LinkedIn still served them stay in your table.
  • A range that ends before that day cannot be served at all and is refused; the only provides data from page explains the message.
  • If LinkedIn still answers DATE_TOO_EARLY, the run fails without retrying, because the same range cannot succeed later.

Your plan's history limit also applies: a backfill cannot start more than your plan's days of history back. Free keeps 30 days and Scale 3650; the backfill rules list every check, and the plans list each one's history.

Related

Sources

  1. Reporting - LinkedIn — learn.microsoft.com, checked