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.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
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" }}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.