Contents

Rule.Value

The comparison value for a targeting rule, as either a single string or an array of strings.

Declaration

object Rule.Value

Discussion

The Rule.value field accepts either a single string or an array of strings, depending on the rule’s operator. Pass a string for EQUALS and NOT_EQUALS. Pass an array of strings for IN and NOT_IN.

The expected string format also depends on field: a plain name for adminArea and postalCode, a pipe-delimited countryOrRegion|adminArea|locality string for locality, and a location ID string for locationId. See Rule for the full list of supported field values.

Example

{
  "field": "locality",
  "operator": "IN",
  "value": ["US|New York|Brooklyn", "US|California|San Francisco"]
}