---
title: "Create advertiser DMP targeting"
type: reference
method: POST
path: /rest-api/advertiser/{advertiserId}/targeting/dmp/create.do
tag: "Targeting Rules"
---

# Create advertiser DMP targeting

`POST https://YOUR-NETWORK-DOMAIN/rest-api/advertiser/{advertiserId}/targeting/dmp/create.do`

Creates a DMP audience segment targeting rule. Pick the DMP from /targeting/dmp/values and the segment from /targeting/dmp/{dmp}/segments. Enables the advertiser's targeting if it was off. Requires UPDATE permission on the advertiser, MANAGE_DEMAND_TARGETING, TARGETING_DMP and the DMP's own permission.

## Path params

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

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `rule` | string | yes | `INCLUDE` | Targeting rule type |
| `dmp` | string | yes | `FIRST_PARTY` | DMP — enum name or numeric ID |
| `dmpSegmentId` | integer | yes | `477` | ID of a segment of that DMP |

## Responses

- `200` — Success
- `400` — The segment does not exist or belongs to another DMP
- `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/dmp/create.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'rule=INCLUDE' \
  --data-urlencode 'dmp=FIRST_PARTY' \
  --data-urlencode 'dmpSegmentId=477'
```

Source: https://epom.com/ad-server/docs/api/targeting-rules/post-advertiser-targeting-dmp-create