---
title: "Get campaign targeting rules"
type: reference
method: GET
path: /rest-api/campaign/{campaignId}/targetings.do
tag: "Targeting Rules"
---

# Get campaign targeting rules

`GET https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/targetings.do`

Returns all targeting rules for the specified campaign as a JSON array. Results can be filtered by targeting type and/or rule. Requires UPDATE permission on the campaign and MANAGE_DEMAND_TARGETING user permission.

## Path params

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

## Query params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `targetType` | string | no | `COUNTRY` | Optional targeting type filter — when specified, only rules of this type are returned |
| `rule` | string | no | `INCLUDE` | Optional rule filter (INCLUDE or EXCLUDE) — when specified, only rules with this rule type are returned |

## Responses

- `200` — Success
- `400` — Bad request — invalid or missing parameters
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Campaign not found
- `500` — Internal server error

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/campaign/1234/targetings.do?targetType=COUNTRY&rule=INCLUDE' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/targeting-rules/get-campaign-targetings