CampaignCriterionOperation

  • Describes a single operation on a campaign criterion: create, update, or remove.

  • The update_mask field determines which resource fields are modified during an update operation.

  • The operation field specifies the type of mutate operation to perform: create, update, or remove.

  • Create operations do not require a resource name for the new criterion.

  • Update operations require a valid resource name for the criterion being modified, with limitations for smart campaigns.

  • Remove operations require a resource name in a specific format for the criterion being removed.

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}