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.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
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.updateAdConversionGoals({ body: { accountId: 'account_abc123', goals: [ { category: 'string', origin: 'string', biddable: false, }, ], },});console.log(data);{ "customerId": "string", "goals": [ { "category": "string", "origin": "string", "biddable": true, "resourceName": "string", "conversionActions": [ { "id": "string", "name": "string", "status": "string", "primaryForGoal": true } ] } ]}Get Event Match Quality
Reads Meta Event Match Quality (EMQ) and pixel↔CAPI event coverage for a pixel/dataset, live from Meta's Dataset Quality API. Web events only (a Meta limitation). Meta-only; other platforms return 405. Requires the Ads add-on.
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).