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

Update a conversion destination

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
PATCH
/v1/accounts/{accountId}/conversion-destinations/{destinationId}

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

At least one mutable field beyond adAccountId is required; the route returns 400 if no patch fields are provided.

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.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"  }}
Was this page helpful?

Update a conversion action's settings

Changes a Google Ads conversion action's settings, such as primary or secondary, counting, value and lookback windows, or removes or restores it. Updates a Google Ads conversion action in one mutate, each field sent written on its own update mask leaf so omitted fields keep their value. Send at least one field. `primaryForGoal` sets `primary_for_goal`: a primary action counts toward its goal's bidding and the Conversions column; a secondary one is observation-only (All conversions). `countingType`, `category`, the value settings (`defaultValue`, `defaultCurrency`, `alwaysUseDefaultValue`) and the click-through / view-through lookback windows map to the same-named conversion_action fields. `status: REMOVED` removes the action (Google keeps it, with its history, as REMOVED) and must be sent alone; `status: ENABLED` restores a removed action. Google refuses HIDDEN on website actions, so it is not offered.

Update a custom conversion goal

Renames a Google Ads custom conversion goal or replaces the conversion actions in it. Returns the re-read goal.

adAccountId*string
name?string
Lengthlength <= 255
enabled?boolean

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

attributionType?string

Value in

  • "LAST_TOUCH_BY_CAMPAIGN"
  • "LAST_TOUCH_BY_CONVERSION"
postClickAttributionWindowSize?integer

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

Value in

  • 1
  • 7
  • 30
  • 90
  • 365
viewThroughAttributionWindowSize?integer

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

Value in

  • 1
  • 7
  • 30
  • 90
  • 365
valueType?string

Value in

  • "DYNAMIC"
  • "FIXED"
  • "NO_VALUE"
value?

Used when valueType=FIXED.