OverviewProductsPlatformsAPI ReferenceResources
Conversions API

Remove a custom conversion goal

DELETEhttps://zernio.com/api/v1/ads/conversions/custom-goals/{goalId}

Deletes a Google Ads custom conversion goal; switch any campaigns using it to another goal first.

Google refuses (400) while any campaign still uses it: switch those campaigns to another goal first.

PlatformsGoogle

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

goalIdstringRequired

Google custom conversion goal id

Query parameters

accountIdstringRequired

Zernio SocialAccount id (Google Ads)

adAccountIdstring

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

customerIdDeprecatedstring

Alias of adAccountId

Responses

Success· the request worked

Errors· the request failed

DELETE/v1/ads/conversions/custom-goals/{goalId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.conversions.removeCustomConversionGoal({  path: {    goalId: 'goal_abc123',  },  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "customerId": "string",  "goalId": "string",  "removed": true}
OpenAPI specification
Was this page helpful?