Caution: You are viewing documentation for the API's REST interface. Most of our official client libraries use gRPC. See the
REST Introduction for details.
CampaignLabelOperation
A single operation (create, remove) on a campaign-label relationship.
JSON representation |
{
// Union field operation can be only one of the following:
"create": {
object (CampaignLabel )
},
"remove": string
// End of list of possible types for union field operation .
} |
Fields |
Union field operation . The mutate operation. operation can be only one of the following: |
create |
object (CampaignLabel )
Create operation: No resource name is expected for the new campaign-label relationship.
|
remove |
string
Remove operation: A resource name for the campaign-label relationship being removed, in this format: customers/{customerId}/campaignLabels/{campaignId}~{label_id}
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-29 UTC.
[null,null,["Last updated 2024-05-29 UTC."],[[["This documentation details the JSON format for managing campaign-label relationships in Google Ads."],["It describes a single operation which can either create a new relationship or remove an existing one."],["For creation, provide the `CampaignLabel` object; for removal, provide the resource name of the campaign-label relationship."]]],["The content describes a single operation on a campaign-label relationship, which can be either creating or removing. Creating a relationship requires a `CampaignLabel` object, and does not need a resource name. Removing a relationship requires a string that contains the resource name, formatted as `customers/{customerId}/campaignLabels/{campaignId}~{label_id}`, which identifies the campaign-label relationship to delete. Only one operation can be done at a time.\n"]]