<!--
{
  "availability" : [
    "Apple Ads Platform API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Apple-Ads-Platform-API",
  "identifier" : "/documentation/Apple-Ads-Platform-API/Rule",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple Ads Platform API"
    ],
    "preciseIdentifier" : "data:apple-ads-platform-api:Rule"
  },
  "title" : "Rule"
}
-->

# Rule

A single filter rule for a dynamic location group.

```
object Rule
```

## Discussion

The `Rule` object defines a filter for a `DYNAMIC` `LocationGroup`, specifying how the system selects locations at query time. Rules can mix different `field` values within the same group, and the system re-evaluates location membership whenever rules change, setting `LocationGroup.systemStatus` to `PENDING` until evaluation completes.

### Example

```json
{
  "field": "adminArea",
  "operator": "IN",
  "value": ["California", "New York"]
}
```

## Topics

### Dictionaries

[`object Rule.Value`](/documentation/Apple-Ads-Platform-API/Rule/Value-data.dictionary)

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)