UserListRuleItemInfo

  • A rule item represents an atomic rule and includes fields for name and the specific type of rule item.

  • The name field is a string representing the rule variable name and must follow specific naming conventions.

  • Websites have built-in variables for URL and referrer URL that can be used as the name.

  • The rule_item field is a union that can be a number, string, or date rule item, each representing an atomic rule composed of a corresponding operation type.

An atomic rule item.

Fields

name

string

Rule variable name. It should match the corresponding key name fired by the pixel. A name must begin with US-ascii letters or underscore or UTF8 code that is greater than 127 and consist of US-ascii letters or digits or underscore or UTF8 code that is greater than 127. For websites, there are two built-in variable URL (name = 'url__') and referrer URL (name = 'ref_url__'). This field must be populated when creating a new rule item.

Union field

rule_item

rule_item. An atomic rule item. rule_item can be only one of the following:

number_rule_item

UserListNumberRuleItemInfo

An atomic rule item composed of a number operation.

string_rule_item

UserListStringRuleItemInfo

An atomic rule item composed of a string operation.

date_rule_item

UserListDateRuleItemInfo

An atomic rule item composed of a date operation.