Interested in sharing your feedback about the Google Ads API?
Sign up to be invited to participate in user research!
CampaignCriterionOperation
A single operation (create, update, remove) on a campaign criterion.
Fields |
update_mask
|
FieldMask
FieldMask that determines which resource fields are modified in an update.
|
Union field operation
operation . The mutate operation. operation can be only one of the following: |
create
|
CampaignCriterion
Create operation: No resource name is expected for the new criterion.
|
update
|
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/{customer_id}/campaignCriteria/{campaign_id}~{criterion_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 2025-02-25 UTC.
[null,null,["Last updated 2025-02-25 UTC."],[[["This page describes a single operation to create, update, or remove a campaign criterion."],["Operations are defined using the `operation` field and can be one of `create`, `update`, or `remove`."],["Each operation type has specific requirements, such as providing a resource name for updates and removals."],["Smart campaigns have limitations on updating geolocation targets through the `update` method."],["`update_mask` is used to specify fields to be modified during updates using FieldMask."]]],["The content details a single operation on a campaign criterion, which can be a create, update, or remove action. For updates, a `FieldMask` specifies which resource fields are modified. Creating requires no resource name, updating requires a valid resource name, and removing requires a resource name in the format `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`. Updating a smart campaign's geolocation target is not allowed. Only one of the mentioned operation types can be present in a single operation.\n"]]