Zernio
Zernio
API Reference

Conversions API

List account conversion goalsGETList conversion actionsGETList associated campaignsGETList conversion destinationsGETList custom conversion goalsGETCreate website conversion actionPOSTCreate a conversion destinationPOSTCreate a custom conversion goalPOSTGet a conversion destinationGETGet attribution metricsGETGet Event Match QualityGETUpdate account conversion goalsPATCHSet a conversion action primary or secondaryPATCHUpdate a conversion destinationPATCHUpdate a custom conversion goalPATCHDelete a conversion destinationDELETEAssociate campaignsPOSTAdjust uploaded conversionsPOSTRemove associated campaignsDELETERemove a custom conversion goalDELETESend conversion eventsPOST
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Conversions API

Update a custom conversion goal

Renames the goal and/or replaces its conversion actions. Returns the re-read goal.


PlatformsGoogle
PATCH
/v1/ads/conversions/custom-goals/{goalId}

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

goalId*string

Google custom conversion goal id

Match^\d+$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Properties2 <= properties

Response 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"    ]  }}
Was this page helpful?

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.

accountId*string

Zernio SocialAccount id (Google Ads)

adAccountId?string

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

Match^\d+$
customerId?string
Deprecated

Alias of adAccountId

Match^\d+$
name?string
Length1 <= length <= 255
conversionActionIds?array<>

Replaces the whole set.

Items1 <= items <= 100