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.
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.}
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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["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"]]