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.
CampaignCriterionOperation
A single operation (create, update, remove) on a campaign criterion.
JSON representation |
{
"updateMask": string,
// Union field operation can be only one of the following:
"create": {
object (CampaignCriterion )
},
"update": {
object (CampaignCriterion )
},
"remove": string
// End of list of possible types for union field operation .
} |
Fields |
updateMask |
string (FieldMask format)
FieldMask that determines which resource fields are modified in an update. This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo" .
|
Union field operation . The mutate operation. operation can be only one of the following: |
create |
object (CampaignCriterion )
Create operation: No resource name is expected for the new criterion.
|
update |
object (CampaignCriterion )
Update operation: The criterion is expected to have a valid resource name. Note that for smart campaigns, you cannot use the update method to edit the geolocation target.
|
remove |
string
Remove operation: A resource name for the removed criterion is expected, in this format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}
|
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 2025-03-06 UTC.
[null,null,["Last updated 2025-03-06 UTC."],[[["This documentation outlines the JSON structure for performing operations (create, update, remove) on Google Ads campaign criteria."],["The `operation` field indicates the type of operation and accepts `create`, `update`, or `remove` along with the relevant data."],["`updateMask` is used during updates to specify the fields that are modified, while `create` requires a full CampaignCriterion object and `remove` expects a resource name."]]],["The core content details operations on campaign criteria, represented in JSON. It includes `create`, `update`, and `remove` actions. `create` requires a CampaignCriterion object. `update` also needs a CampaignCriterion, plus a `updateMask` string to specify modified fields; geolocation edits are disallowed for smart campaigns. `remove` needs the resource name of the criterion to be deleted, in a specified format. Each operation is mutually exclusive.\n"]]