---
title: Rule.Value
framework: Apple Ads Platform API
role: symbol
role_heading: Object
platforms: [apple ads platform api 1.0+]
path: apple-ads-platform-api/rule/value-data.dictionary
---

# Rule.Value

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

## Declaration

```data
object Rule.Value
```

## Discussion

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"] }
