OverviewProductsPlatformsAPI ReferenceResources
Accounts & Ops

Update a Google Ads label

PATCHhttps://zernio.com/api/v1/ads/labels/{labelId}

Changes a Google Ads label's name, color or description.

Only the fields sent are written.

PlatformsGoogle

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

labelIdstringRequired

Google label id

Body

application/json

What every request needs

accountIdstringRequired

Zernio SocialAccount id (Google Ads)

Optional parameters5 fields
adAccountIdstring

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

customerIdDeprecatedstring

Alias of adAccountId

namestring, max 80
backgroundColorstring
descriptionstring, max 200

Send "" to clear it.

Responses

Success· the request worked

Errors· the request failed

PATCH/v1/ads/labels/{labelId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaccounts.updateAdLabel({  path: {    labelId: 'label_abc123',  },  body: {    accountId: 'account_abc123',  },});console.log(data);
{  "customerId": "string",  "label": {    "id": "string",    "resourceName": "string",    "name": "string",    "status": "ENABLED",    "backgroundColor": "string",    "description": "string"  }}
OpenAPI specification
Was this page helpful?