See the demo

LinkedIn Ads API: what the Marketing API returns, and how to get access

The LinkedIn Ads API returns spend and conversions from adAnalytics and leads from leadFormResponses. Access tiers, limits, and why campaign sums don't tie.

· 8 min read · Gabriel Sorato

The LinkedIn Ads API is the LinkedIn Marketing API: spend, clicks and conversions come from the adAnalytics endpoint, and lead form submissions come from leadFormResponses, which belongs to a separate product, the Lead Sync API. adAnalytics returns only impressions and clicks unless the fields parameter asks for more, accepts up to 20 metrics per call, and caps a response at 15,000 elements with no pagination (Reporting, updated November 11, 2026, read November 29, 2026). As of November 29, 2026, the Marketing API documentation mentioned no official MCP server, and the linkedin organization on GitHub had no MCP repository.

I read every LinkedIn page cited here on November 29, 2026, against API version 202611. Field, endpoint and permission names appear exactly as LinkedIn writes them, in code format, with a link to the page.

LinkedIn Marketing API: LinkedIn’s REST APIs for ads, reporting, leads, conversions and company pages. Calls go to https://api.linkedin.com/rest/ with a Linkedin-Version header in YYYYMM format (Versioning, updated November 16, 2026).

What does the problem look like?

Your campaign rows add up to more conversions than the account total. Or the integration brings in impressions and clicks, but spend is blank. Or Campaign Manager shows more leads this month than Salesforce received. Or a job that ran fine for a year starts failing on a version error.

What does the adAnalytics endpoint return?

adAnalytics has three finders (Reporting): analytics, to group by one pivot; statistics, for up to three pivots; and attributedRevenueMetrics, for revenue pulled from a connected CRM. Reading it requires the r_ads_reporting permission. timeGranularity takes ALL, DAILY, MONTHLY and YEARLY, and pivots run from ACCOUNT, CAMPAIGN_GROUP, CAMPAIGN and CREATIVE to professional demographics such as MEMBER_JOB_FUNCTION and MEMBER_SENIORITY (Metrics Available, updated November 16, 2026).

The metrics that answer “what did I spend and what came back”:

FieldLinkedIn’s descriptionThe catchSource
costInLocalCurrency”Cost in the account’s local currency”Not adjusted for over delivery when a demographic pivot is usedMetrics
costInUsd”Cost in USD”Same demographic caveatMetrics
clicks”The count of chargeable clicks”Not a website visitMetrics
landingPageClicks”Clicks which take the user to the creative landing page”Closest thing to a GA4 sessionMetrics
externalWebsiteConversionsActions taken “after clicking on or seeing your ad”Mixes post-click and post-view; may be estimatedMetrics
conversionValueInLocalCurrencyValue set by the advertiser’s conversion rulesDisappears under demographic pivotsMetrics
oneClickLeads”Leads generated through One Click Lead Gen”A count, not the lead itselfMetrics
approximateMemberReachUnique members with at least one impressionOnly for date ranges of 92 days or lessMetrics

externalWebsiteConversions splits into externalWebsitePostClickConversions and externalWebsitePostViewConversions. All three carry the same warning: “When conversions can’t be attributed to individual users, group level attribution or estimation can be used” (Metrics Available).

Why don’t LinkedIn’s numbers tie out?

Five mechanisms, all written down in the docs.

1. fields decides what comes back. Without it, the response carries only impressions and clicks (Reporting). That’s the blank-spend bug: the job never asked for costInLocalCurrency.

2. A conversion is counted once per campaign. Conversion rules live in /rest/conversions, and their attributionType defaults to LAST_TOUCH_BY_CAMPAIGN: “conversion actions are counted once for each campaign to which they can be attributed” (Conversion Tracking, updated August 26, 2026). A synthetic example with round numbers: the account logs 10 conversions, and 3 of them can be attributed to two campaigns each. Add up the campaign rows and you get 13. The alternative, LAST_TOUCH_BY_CONVERSION, counts each conversion once.

3. The window counts views. postClickAttributionWindowSize defaults to 30 days and viewThroughAttributionWindowSize to 7; both accept 1, 7 or 30 (Conversion Tracking). Someone who saw the ad and converted days later through a Google search can get credited by LinkedIn and by Google. It’s the same double count I walked through in connecting Google Ads, Meta and GA4 to one AI.

4. Demographic data is approximate. The docs say “professional demographic metrics are approximate”, drop values with fewer than 3 events, and return only the top 100 values per creative per day (Reporting). So daily rows don’t sum to the period, and campaigns don’t sum to the account. Demographic metrics also lag 24 to 48 hours, while performance metrics are “near real-time.”

5. A chargeable click is not a session. clicks counts billable clicks, and the docs give “clicks to view the landing page or company page” as examples (Metrics Available). The fair comparison with GA4 is landingPageClicks, and even then the gap between a click and a session that actually loaded remains.

Where do Lead Gen Form leads come from?

A different API. oneClickLeads in adAnalytics is only a count. The lead itself, with answers, comes from leadFormResponses in the Lead Sync API, which needs the r_marketing_leadgen_automation permission. The docs are explicit: with r_ads or rw_ads, an integration “cannot retrieve leads through leadFormResponses” (Lead Sync, updated November 4, 2026).

The call uses q=owner with two required parameters: owner (the ad account or organization) and leadType, which takes SPONSORED, EVENT, COMPANY and ORGANIZATION_PRODUCT. The response carries submittedAt in epoch time, the campaign in leadMetadata, the creative in associatedEntity, the answers in formResponse.answers, and consent checkboxes in consentResponses. Test leads arrive with testLead: true and have to be filtered out before they reach HubSpot or Salesforce.

For real-time delivery, leadNotifications creates webhook subscriptions. Since March 16, 2026, only validated webhooks get notified, with a cap of 1,500 subscriptions per owner and lead type (Lead Sync). The integration requirements say LinkedIn stores lead data for 365 days and recommend a full pull every 24 hours as a backstop for missed webhooks (Integration Requirements, rules LGF-108 and LGF-201).

consentResponses records which consent checkboxes the member accepted on the form. Whether that consent covers your intended use under the privacy laws that apply to you is a question for your counsel; the API only hands you the record.

How do you get access to the API?

The Quick Start lists five steps: create a LinkedIn Page, create an app in the Developer Portal, review the restricted use cases, request the product under the Products tab, and fill in the access form. Advertising API and Lead Sync API are separate requests (Increasing Access, updated October 19, 2026).

ItemWhat the docs saySource
Development tierUnlimited reads on accounts you administer; edits on up to 5 ad accountsIncreasing Access
Standard tierUnlimited edits; requested by support ticket, with a video of your platformIncreasing Access
Access token60 daysRefresh Tokens
Refresh token365 days from the first authorization, never extended; approved Marketing Developer Platform partners onlyRefresh Tokens
VersionA new one every month, supported for at least one year; 202601 sunsets January 15, 2027Versioning
Daily quotaNot published; shown in the app’s Analytics tab, resets at midnight UTCRate Limiting
adAnalytics quota45 million metric values per 5 minutes; over that, HTTP 429Reporting

Midnight UTC is 7 p.m. Eastern during standard time. And the version header is mandatory: the docs say “the latest version is not applied by default” and that “an error response is returned when the version header is missing in the request” (Versioning).

Is there an official LinkedIn MCP server?

Not that I could find. As of November 29, 2026, the Marketing API documentation did not mention MCP, and a GitHub search for “mcp” in the linkedin organization returned no repositories. The servers that exist are community projects, and they fall into two groups.

The first group calls the Marketing API with the OAuth token of whoever connects. What it can read and change is whatever that token allows: r_ads_reporting reads reports, and rw_ads manages ad accounts where the user holds one of ACCOUNT_BILLING_ADMIN, ACCOUNT_MANAGER, CAMPAIGN_MANAGER or CREATIVE_MANAGER (Increasing Access). An agent holding rw_ads can change a live campaign.

The second group automates a logged-in browser session or reads personal profiles, and it stays out of this article. LinkedIn’s User Agreement (effective November 3, 2025, read November 29, 2026), section 8.2, bars using “software, devices, scripts, robots or any other means or processes (such as crawlers, browser plugins and add-ons or any other technology) to scrape or copy the Services, including profiles.”

Whichever server you pick, the agent gets each platform’s raw number. Plugged in next to the Google Ads and Meta MCPs, it tends to add up three versions of the same deal, through the same window mechanism described above.

How do you diagnose your integration?

CheckWhere to lookWhat a mismatch meansSource
Requested metricsfields parameter on each callBlank spend: only impressions and clicks came backReporting
Row capa response with exactly 15,000 elementsDate range or pivot too wide; rows droppedReporting
Attribution ruleattributionType in /rest/conversionsLAST_TOUCH_BY_CAMPAIGN inflates campaign sumsConversion Tracking
View-throughexternalWebsitePostViewConversionsConversions GA4 credits to another channelMetrics Available
Test leadstestLeadFake leads in the CRMLead Sync
VersionLinkedin-Version header202601 stops answering on January 15, 2027Versioning
Tokendate of the last OAuth consentRefresh token expires 365 days later and needs a new loginRefresh Tokens

How do you fix it?

  1. Ask for metrics by name. List everything the job stores in fields, up to the 20-metric limit (Reporting), and store the account currency next to costInLocalCurrency.
  2. Pull account totals from the ACCOUNT pivot. Never sum campaigns for conversions. Store the rule behind each number next to it: attributionType and both windows.
  3. Split post-click from post-view. If you compare with GA4 or with closed-won revenue, compare post-click.
  4. Query the full period at the highest level. That’s LinkedIn’s own advice for reducing the effect of demographic approximation (Reporting).
  5. Take leads by webhook and pull daily. Deduplicate on the response id and join to the campaign through the URN in leadMetadata. The data storage requirements put no time limit on storing lead gen form responses.
  6. Pin the version and put the upgrade on the calendar. With monthly versions and a one-year support window, migration is a yearly task.

Then comes the definition. “LinkedIn leads” can mean oneClickLeads, the responses in leadFormResponses, or the qualified contact in your CRM: three numbers, each right for a different question. Writing down which one answers which question, and querying it the same way every time, is what a semantic layer does, and it starts with a marketing data dictionary. Precisian collects Google Ads, Meta and LinkedIn automatically into each customer’s lake, isolated on Precisian’s infrastructure, and the customer’s own AI, BI tool or automation reads those definitions through MCP or the API.

When can’t it be fixed?

View-through conversions. They happen away from the click and LinkedIn may estimate them. Nothing on your site confirms them person by person.

Demographics below the threshold. Values with fewer than 3 events disappear, and what comes back is approximate (Reporting). No parameter returns the exact number.

Revenue attribution has its own rules. attributedRevenueMetrics only works with a CRM connected to Business Manager, and the docs list Salesforce, Dynamics 365 and HubSpot, plus a CRM already linked to Sales Navigator. The date range must be 30 to 366 days, and returnOnAdSpend is revenueWonInUsd / costInUsd with credit “distributed at a business level across multiple ad accounts” (Metrics Available). It’s a platform ROAS, with the limits I covered in MER vs ROAS.

When Precisian is the wrong answer: if LinkedIn is your only paid channel and Campaign Manager’s report already answers sales, a data platform is a cost with no problem attached. The problem starts when LinkedIn has to agree with Google Ads, Meta and Salesforce, as with the Google Ads API.

What does this article not cover?

LinkedIn’s Conversions API, which sends server-side conversions to LinkedIn. The Community Management API, for organic page data. Matched Audiences. And no personal profile data at all.

If your LinkedIn campaign rows add up to more than the account total, the first step is to read the attributionType on each conversion rule and compare the ACCOUNT pivot with the sum of the CAMPAIGN pivot for the same dates. See this article’s question answered on a real lake, with no contract commitment.