OverviewProductsPlatformsAPI ReferenceResources
Conversions API

Update a conversion destination

PATCHhttps://zernio.com/api/v1/accounts/{accountId}/conversion-destinations/{destinationId}

Changes a LinkedIn conversion rule's name, value, attribution windows, or turns it on or off.

Partial-update a conversion rule. LinkedIn-only today. Whitelisted fields: name, enabled, attribution windows, valueType, value, attributionType. The rule's type and parent ad account are intentionally not exposed for update. Recreate the rule if those need to change.

PlatformsLinkedIn

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

accountIdstringRequired
destinationIdstringRequired

Body

application/json

What every request needs

adAccountIdstringRequired
Optional parameters7 fields
namestring, max 255
enabledboolean

Setting false is equivalent to calling DELETE: the rule will appear as inactive afterwards.

attributionTypestringOne of LAST_TOUCH_BY_CAMPAIGN | LAST_TOUCH_BY_CONVERSION
postClickAttributionWindowSizeintegerOne of 1 | 7 | 30 | 90 | 365

365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types.

viewThroughAttributionWindowSizeintegerOne of 1 | 7 | 30 | 90 | 365

365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types.

valueTypestringOne of DYNAMIC | FIXED | NO_VALUE
valueobject

Used when valueType=FIXED.

Responses

Success· the request worked

Errors· the request failed

PATCH/v1/accounts/{accountId}/conversion-destinations/{destinationId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.conversions.updateConversionDestination({  path: {    accountId: 'account_abc123',    destinationId: 'destination_abc123',  },  body: {    adAccountId: 'adaccount_abc123',  },});console.log(data);
{  "platform": "linkedinads",  "destination": {    "id": "string",    "name": "string",    "type": "string",    "status": "active",    "adAccountId": "string"  }}
OpenAPI specification
Was this page helpful?