Zernio
APIFor you
Zernio
APIFor you
API Reference

Conversions API

List account conversion goalsGETList conversion actionsGETList associated campaignsGETList conversion destinationsGETList custom conversion goalsGETCreate website conversion actionPOSTCreate a conversion destinationPOSTCreate a custom conversion goalPOSTGet a conversion destinationGETGet attribution metricsGETGet Event Match QualityGETUpdate account conversion goalsPATCHUpdate a conversion action's settingsPATCHUpdate a conversion destinationPATCHUpdate a custom conversion goalPATCHDelete a conversion destinationDELETEAssociate campaignsPOSTAdjust uploaded conversionsPOSTRemove associated campaignsDELETERemove a custom conversion goalDELETESend conversion eventsPOST
Dashboard
OverviewPlatformsAPI ReferenceResources
Conversions API

Get attribution metrics

Shows a LinkedIn conversion rule's attributed conversions, value, leads and cost over time.

LinkedIn-only today. Returns conversion-attribution metrics (externalWebsiteConversions, externalWebsitePostClickConversions, externalWebsitePostViewConversions, conversionValueInLocalCurrency, qualifiedLeads, costInLocalCurrency) bucketed by date.

Date-range constraints (passed through from LinkedIn):

  • granularity=DAILY is retained for ~6 months only
  • granularity=ALL with a range > 6 months auto-rounds to month boundaries
  • granularity=MONTHLY/YEARLY retains 24 months

Throttle: LinkedIn caps adAnalytics at 45M metric values per 5-minute window across the calling token. Single-rule queries are well within that limit; surfaces as 429 if hit.


PlatformsLinkedIn
GET
/v1/accounts/{accountId}/conversion-destinations/{destinationId}/metrics

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

In: header

Path Parameters

accountId*string
destinationId*string

Query Parameters

adAccountId*string
startDate*string
Match^\\d{4}-\\d{2}-\\d{2}$
endDate?string
Match^\\d{4}-\\d{2}-\\d{2}$
granularity?string
Default"DAILY"

Value in

  • "ALL"
  • "DAILY"
  • "MONTHLY"
  • "YEARLY"

Response Body

application/json

application/json

application/json

application/json

import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.conversions.getConversionMetrics({  path: {    accountId: 'account_abc123',    destinationId: 'destination_abc123',  },  query: {    adAccountId: 'adaccount_abc123',    startDate: 'string',  },});console.log(data);
{  "platform": "linkedinads",  "granularity": "ALL",  "rows": [    {      "start": "string",      "end": "string",      "metrics": {        "property1": 0,        "property2": 0      }    }  ]}
Was this page helpful?

Get a conversion destination

Shows one LinkedIn conversion rule with its full settings. LinkedIn-only today. Returns the full destination record for one conversion rule. The `adAccountId` query parameter is required because LinkedIn rules are scoped to a sponsored ad account.

Get Event Match Quality

Shows how well your server-side conversion events match users, with event match quality and coverage for Meta or Pinterest. Reads Meta Event Match Quality (EMQ) and pixel↔CAPI event coverage for a pixel/dataset, live from Meta's Dataset Quality API. Web events only (a Meta limitation). Other platforms return 405, except Pinterest. Requires the Ads add-on. Pinterest (`pinterestads`): `destinationId` is the numeric ad account id. Rows come from Pinterest's Event Quality Score for Conversions API web events over the last 14 days, one per event name, with each identifier's coverage in `matchKeys` and `eventCoveragePercentage` set to the tag/API `event_id` overlap. No `compositeScore`.