---
title: "Set whether a placement's tracking code fires without an ad"
type: reference
method: POST
path: /rest-api/tracking-code/placement/fire-without-ad.do
tag: "Placements"
---

# Set whether a placement's tracking code fires without an ad

`POST https://YOUR-NETWORK-DOMAIN/rest-api/tracking-code/placement/fire-without-ad.do`

Switches whether the placement's third-party tracking code is also emitted on a request the ad server did not fill with an ad. A default code (passback) does not count as a fill: with this off the snippet goes out only on a response carrying a creative. Read it back with GET /rest-api/tracking-code/placement/fire-without-ad.do.

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `id` | integer | yes | `4001` | The unique numeric identifier of the placement |
| `enabled` | boolean | yes | `true` | Whether the tracking code also fires on a request the ad server did not fill with an ad |

## Responses

- `200` — Operation result with success status
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — The role lacks the PLACEMENT_THIRD_PARTY_TRACKING permission, or no UPDATE share on the placement
- `404` — No such placement, or tracking codes are not enabled for it

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/tracking-code/placement/fire-without-ad.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'id=4001' \
  --data-urlencode 'enabled=true'
```

Source: https://epom.com/ad-server/docs/api/placements/post-tracking-code-placement-fire-without-ad