Update a custom conversion goal
Renames the goal and/or replaces its conversion actions. Returns the re-read goal.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Google custom conversion goal id
^\d+$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
2 <= propertiesResponse 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.updateCustomConversionGoal({ path: { goalId: 'goal_abc123', }, body: { accountId: 'account_abc123', },});console.log(data);{ "customerId": "string", "goal": { "id": "string", "resourceName": "string", "name": "string", "status": "string", "conversionActionIds": [ "string" ] }}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.
Delete a conversion destination
LinkedIn-only today. LinkedIn does not expose hard-delete on conversion rules; what their UI calls "delete" is the same `enabled: false` flip we apply here. The rule remains fetchable via GET with `status: 'inactive'`; the unified discovery endpoint hides it by default. `adAccountId` may be passed as a query parameter (recommended) or as a JSON body field for clients that can send DELETE bodies.