CampaignCriterionOperation

  • Describes a single operation (create, update, remove) on a campaign criterion.

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

  • The operation field can be one of three types: create, update, or remove.

  • For a create operation, no resource name is expected.

  • For update and remove operations, a resource name for the criterion is expected, and the update operation cannot be used to edit the geolocation target for smart campaigns.

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}