ETLMCPData Conveyance Works
Log in Start free
Guides

LinkedIn reporting limits: 20 metrics, 15,000 elements

LinkedIn's ad analytics endpoint returns up to 20 metrics, has no paging, stops at 15,000 elements and throttles by metric values. How to size requests.

Coming This connector is coming.

LinkedIn's ad analytics endpoint answers each request in one piece. You can ask for up to 20 metrics in a call, there is no second page, and a response holds at most 15,000 elements. LinkedIn also throttles an application that pulls more than 45 million metric values in any five-minute window. LinkedIn's page states the cap but does not say how a response shows that a request asked for more: treat a response with exactly 15,000 elements as cut short and ask again for a smaller slice.

The four limits, in plain terms

LinkedIn's reporting documentation for the adAnalytics endpoint sets these rules:

Limit What it means for you
Up to 20 metrics per request List what you need in the fields parameter. Without fields, you only get impressions and clicks.
No pagination There is no next page to follow. One request, one response.
15,000 elements per response In LinkedIn's daily samples, an element is one row: one pivot value for one day. A response is never longer than the cap.
45 million metric values per 5 minutes Go over it and requests are throttled: LinkedIn lists HTTP 429 with TOO_MANY_REQUESTS for this case.

LinkedIn's list of metrics you can name in fields includes dateRange and pivotValues next to metrics such as impressions and costInLocalCurrency, so count every name you put in fields when you check a request against the 20.

How to tell whether a request fits

The element count is roughly the number of pivot values times the number of time buckets. With pivot=CREATIVE and timeGranularity=DAILY, that is active creatives times days. An account with 600 creatives running every day for a 30-day range can return up to 18,000 elements, which is over the cap: split the range in two and each half fits. With timeGranularity=ALL, there is one bucket for the whole range, so the creative count alone decides.

The throttle is counted differently. LinkedIn measures a request's cost as the number of metrics you asked for times the number of records that came back. A request for 10 metrics that returns 15,000 elements costs 150,000 metric values, so about 300 such full responses in five minutes reach the limit. Asking only for the fields you use is the lever LinkedIn itself points to: halving your field list halves the cost of every call.

Other restrictions on the same endpoint

  • An empty response means either no activity in the range or no read access to the account. The answer looks the same in both cases.
  • Professional demographic pivots, such as job title or company size, return only the top 100 values per creative per day and drop values with fewer than 3 events. Some metrics, including conversionValueInLocalCurrency, are not returned with those pivots.
  • Performance data by account, campaign or creative is kept for ten years, demographic data for two. A start date outside the retention period can be refused with DATE_TOO_EARLY.
  • Creative, campaign and account metrics are near real-time. Demographic metrics can lag by 24 to 48 hours.

What etlmcp does about these limits

When the LinkedIn connector is available, a sync asks for one pivot only, CREATIVE, at DAILY granularity for one ad account, with a short fields list: dateRange, pivotValues, impressions, clicks, costInLocalCurrency, externalWebsiteConversions and conversionValueInLocalCurrency.

A long date range will be requested as a series of shorter date windows. If a window's response reaches 15,000 elements, etlmcp assumes it was cut short, sets it aside, splits that window in half and asks for each half again. It keeps halving until every answer is under the cap. If a single day still comes back at the cap, the sync stops with LinkedIn returned too many rows for one day instead of storing a day that may be missing creatives. See LinkedIn connector errors for what to do next.

Before reading the report, a sync will read the ad account itself. That is how it will tell an account with no activity apart from one it can no longer see, since the report alone cannot.

When LinkedIn answers with HTTP 429, etlmcp will wait and try the request again, using LinkedIn's Retry-After header when one is sent. If the throttle does not clear within the wait the connector allows, the run fails as rate limited, and the retry rules for the whole run take over: up to 3 attempts in all. The sync page covers the rest of how a LinkedIn sync runs.

Related

Sources

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