Detach a Google Ads label
Removes the label from the given targets. Idempotent; a target without the label is counted in unchanged.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Google label id
^\d+$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
At least one id across the four target lists. Up to 1000 ids per list.
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.adaccounts.detachAdLabel({ path: { labelId: 'label_abc123', }, body: { accountId: 'account_abc123', },});console.log(data);{ "customerId": "string", "labelId": "string", "detached": 0, "unchanged": 0}Attach a Google Ads label
Attaches the label to campaigns, ad groups, ads and keywords (Google CampaignLabel, AdGroupLabel, AdGroupAdLabel and AdGroupCriterionLabel) in one mutate. Idempotent: a target that already carries the label is counted in `unchanged` instead of failing the call. All ids are Google's own: ads and keywords use the composite id Google puts in their resource names, `{adGroupId}~{adId}` and `{adGroupId}~{criterionId}` (the keyword form is the tail of `resourceName` on `GET /v1/ads/keywords`).
List account callouts
Lists directly attached Google assets. Fresh reads are cached for 10 minutes; exhausted quota may return the last successful read with stale=true. Inherited assets are not included. Preserves Google RMF C.75 account-level callouts.