OverviewPlatformsAPI ReferenceResources
Accounts & Ops

Create a Google Ads label

POSThttps://zernio.com/api/v1/ads/labels

Creates a Google Ads label you can then attach to campaigns, ad groups, ads and keywords to organize and filter them.

Attach it to campaigns, ad groups, ads and keywords with POST /v1/ads/labels/{labelId}/assignments. Label names are unique per customer; a duplicate is a 400.

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)

namestring, max 80Required

Trimmed before sending.

Optional parameters4 fields
adAccountIdstring

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

customerIdDeprecatedstring

Alias of adAccountId

backgroundColorstring

#RRGGBB. Google picks a color when omitted.

descriptionstring, max 200

Responses

Success· the request worked

Errors· the request failed

POST/v1/ads/labels
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaccounts.createAdLabel({  body: {    accountId: 'account_abc123',    name: 'Example',  },});console.log(data);
{  "customerId": "string",  "id": "string",  "resourceName": "string"}
OpenAPI specification
Was this page helpful?