Set a conversion action primary or secondary
Sets primary_for_goal on a Google Ads conversion action. A primary action counts
toward its goal's bidding and the Conversions column; a secondary one is
observation-only (All conversions).
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Google conversion action id
^\d+$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
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.updateConversionAction({ path: { actionId: 'action_abc123', }, body: { accountId: 'account_abc123', primaryForGoal: false, },});console.log(data);{ "customerId": "string", "action": { "id": "string", "primaryForGoal": true }}Update account conversion goals
Sets `biddable` on one or more account-default goals, addressed by category and origin, in one mutate. Campaigns that use account-level goals (`goalConfigLevel: CUSTOMER`) follow the change. Returns the re-read goal list.
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.