Update a conversion destination
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.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
length <= 255Setting false is equivalent to calling DELETE — the
rule will appear as inactive afterwards.
"LAST_TOUCH_BY_CAMPAIGN" | "LAST_TOUCH_BY_CONVERSION"365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types.
1 | 7 | 30 | 90 | 365365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types.
1 | 7 | 30 | 90 | 365"DYNAMIC" | "FIXED" | "NO_VALUE"Used when valueType=FIXED.
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.ads.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"
}
}{
"error": "Unauthorized"
}Update ad PUT
Patch one or more fields on an ad. Status, budget, targeting, and creative changes are propagated to the platform. Per-platform support: - **Meta** (Facebook + Instagram): all fields supported. - **TikTok**: status, budget, targeting (via `/v2/adgroup/update/`), and creative (via `/v2/ad/update/` patch-style — `headline` is ignored, `body` becomes `ad_text`). - **Pinterest / X / LinkedIn / Google**: status + budget only. Sending `targeting` or `creative` returns 501 with code `unsupported_platform_operation`.
Cancel an ad DELETE
Cancels the ad on the platform and marks it as cancelled in the database. The ad is preserved for history.