OverviewProductsPlatformsAPI ReferenceResources
Conversions API

Update account conversion goals

PATCHhttps://zernio.com/api/v1/ads/conversions/goals

Turns bidding on or off for a Google Ads account's default conversion goals, which campaigns using account goals follow.

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.

PlatformsGoogle

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json

What every request needs

accountIdstringRequired

Zernio SocialAccount id (Google Ads)

goalsarray of GoogleBiddableGoalInputRequired
categorystringRequired

Google ConversionActionCategory, e.g. PURCHASE, SIGNUP, SUBMIT_LEAD_FORM

originstringRequired

Google ConversionOrigin, e.g. WEBSITE, APP, CALL_FROM_ADS, STORE, GOOGLE_HOSTED

biddablebooleanRequired
Optional parameters2 fields
adAccountIdstring

Google customer id. Required when the connection has multiple customers.

customerIdDeprecatedstring

Alias of adAccountId

Responses

Success· the request worked

Errors· the request failed

PATCH/v1/ads/conversions/goals
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        }      ]    }  ]}
OpenAPI specification
Was this page helpful?