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.

AdGroupCriterionOperation

A single operation (create, remove, update) on an ad group criterion.

JSON representation
{
  "updateMask": string,
  "exemptPolicyViolationKeys": [
    {
      object (PolicyViolationKey)
    }
  ],

  // Union field operation can be only one of the following:
  "create": {
    object (AdGroupCriterion)
  },
  "update": {
    object (AdGroupCriterion)
  },
  "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".

exemptPolicyViolationKeys[]

object (PolicyViolationKey)

The list of policy violation keys that should not cause a PolicyViolationError to be reported. Not all policy violations are exemptable, please refer to the isExemptible field in the returned PolicyViolationError.

Resources violating these polices will be saved, but will not be eligible to serve. They may begin serving at a later time due to a change in policies, re-review of the resource, or a change in advertiser certificates.

Union field operation. The mutate operation. operation can be only one of the following:
create

object (AdGroupCriterion)

Create operation: No resource name is expected for the new criterion.

update

object (AdGroupCriterion)

Update operation: The criterion is expected to have a valid resource name.

remove

string

Remove operation: A resource name for the removed criterion is expected, in this format:

customers/{customerId}/adGroupCriteria/{adGroupId}~{criterionId}