marketing APIv1.10.0

CampaignCriterion

This type defines the fields for specifying the criterion (selection rule) settings of an ad campaign.

Types that use CampaignCriterion

Calls that use CampaignCriterion

Fields

Field
Type
Description
autoSelectFutureInventory
Reserved for future use.
criterionType
This enum defines the criterion (selection rule) types. Currently, the only criterion type supported is INVENTORY_PARTITION, and you must specify this value if you manage your items with the Inventory API and you want to include items based on their inventory reference IDs.

Leave this field blank if you want to create campaign ads based on listing IDs.
selectionRules
array of SelectionRule
Set of rules that selects the listings to include in the campaign.

The following rules apply to the selection rules:

  • Each set of selection rules are ORed with each other.
  • Individual rules within a selection rule set are ANDed with each other. If a rule has a list of values (such a list of category IDs), the item need match only one of the values of the rule in order to be included in the campaign.
  • Note: If an item matches multiple sets of rules or multiple rules within a selection rule set, the item is considered only once.

Maximum number of rules: 10