Attach a Google Ads label
Attaches a Google Ads label to campaigns, ad groups, ads and keywords in one call, skipping any that already have it.
The label goes 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.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Path parameters
Google label id
Body
application/jsonWhat every request needs
Zernio SocialAccount id (Google Ads)
Optional parameters6 fields
Google customer id. Required when the connection has multiple customers.
Alias of adAccountId
Google campaign ids
Google ad group ids
Google ad group ad ids, {adGroupId}~{adId}
Google keyword criterion ids, {adGroupId}~{criterionId}
Responses
Success· the request worked
Errors· the request failed
How it behaves
Ids
All ids are Google's own. Ads and keywords use the composite id Google puts in their resource names:
- Ads:
{adGroupId}~{adId} - Keywords:
{adGroupId}~{criterionId}(the tail ofresourceNameonGET /v1/ads/keywords)
Remove a Google Ads label
Deletes a Google Ads label and removes it from everything it was attached to. Google drops it from every campaign, ad group, ad and keyword it was attached to.
Detach a Google Ads label
Removes a Google Ads label from the campaigns, ad groups, ads or keywords you name, skipping any that do not have it. Idempotent; a target without the label is counted in `unchanged`. Fields go in the query string. A JSON body with the same fields is also accepted and, when sent, the query string is ignored.