Ad Accounts

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).

post/v1/ads/labels/{labelId}/assignments

Path parameters

labelIdstring required

Google label id

Request body

accountIdstring required

Zernio SocialAccount id (Google Ads)

adAccountIdstring

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

customerIdstring

Alias of adAccountId

campaignIdsstring[]

Google campaign ids

adSetIdsstring[]

Google ad group ids

adIdsstring[]

Google ad group ad ids, {adGroupId}~{adId}

keywordIdsstring[]

Google keyword criterion ids, {adGroupId}~{criterionId}

Response

Label attached

customerIdstring
labelIdstring
attachedinteger

Links created by this call

unchangedinteger

Targets that already carried the label

Changes

Changed in 1 of the 57 revisions of this API.1