List ad labels
Lists the labels used to organise campaigns and ads in an ad account.
- Meta: pass
adAccountId=act_<n>. Rows are Meta's/act_X/adlabelsreturned verbatim (id, name, created/updated time), paginated withlimit/after. - Google Ads: pass the numeric customer id as
adAccountId(optional when the connection has a single customer). Returns every non-removed label as aGoogleAdLabelin one page (paging.afteris always null). Reads are cached for 10 minutes; when the shared Google quota is exhausted the last successful result is served withstale: true.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Query Parameters
Zernio SocialAccount id. For Meta, the posting or ads variant used to resolve the token.
Meta ad account id (act_), or the Google Ads customer id (digits only).
^(act_)?\d+$Google only. Alias of adAccountId, kept for existing callers.
^\d+$Meta only. Rows per page.
1 <= value <= 10025Meta only. Cursor from paging.after of the previous page.
Response Body
application/json
application/json
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.listAdLabels({ query: { accountId: 'account_abc123', },});console.log(data);{ "adAccountId": "string", "data": [ { "id": "string", "resourceName": "string", "name": "string", "status": "ENABLED", "backgroundColor": "string", "description": "string" } ], "paging": { "after": "string" }, "cachedAt": "2019-08-24T14:15:22Z", "stale": true}List TikTok ad pixels
Lists pixels and their supported optimization events for a connected TikTok Ads account. The advertiser defaults to the first advertiser on the connection. Reconnect if Pixel Management permission has not been granted.
Create a Google Ads label
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.