---
title: "Set how advertiser targeting rule types combine"
type: reference
method: POST
path: /rest-api/advertiser/{advertiserId}/targeting/operation-between-rule-types.do
tag: "Targeting Rules"
---

# Set how advertiser targeting rule types combine

`POST https://YOUR-NETWORK-DOMAIN/rest-api/advertiser/{advertiserId}/targeting/operation-between-rule-types.do`

Sets whether the advertiser's rule types must all match (AND) or any one of them is enough (OR). Rules of the same type always combine with OR. Requires UPDATE permission on the advertiser, MANAGE_DEMAND_TARGETING and MANAGE_OPERATION_BETWEEN_TARGETING_RULE_TYPES user permissions.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `advertiserId` | integer | yes | `1234` | Unique numeric ID of the advertiser |

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `operator` | string | yes | `AND` | AND — every rule type must match; OR — any one rule type is enough |

## Responses

- `200` — Success — the response carries the saved operationBetweenRuleTypes
- `400` — Missing or unknown operator
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Advertiser not found
- `500` — Internal server error

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/advertiser/1234/targeting/operation-between-rule-types.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'operator=AND'
```

Source: https://epom.com/ad-server/docs/api/targeting-rules/post-advertiser-targeting-operation-between-rule-types