---
title: "Enable banner tracking code"
type: reference
method: POST
path: /rest-api/tracking-code/banner/enable-tracking-code.do
tag: "Banners"
---

# Enable banner tracking code

`POST https://YOUR-NETWORK-DOMAIN/rest-api/tracking-code/banner/enable-tracking-code.do`

Enables the 3rd party tracking code feature for the specified banner, allowing its configured tracking codes to fire during ad serving. Switched on from off, the banner starts with an empty tracking code set; add codes afterwards. Already on, nothing changes and its codes are kept. Returns a JSON object with a 'success' boolean indicating whether the operation completed successfully.

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `id` | integer | yes | `5001` | The unique numeric identifier of the banner to enable tracking codes for |

## Responses

- `200` — Operation result with success status
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — The role lacks the BANNER_THIRD_PARTY_TRACKING permission, or no UPDATE share on the banner
- `404` — No such banner

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/tracking-code/banner/enable-tracking-code.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'id=5001'
```

Source: https://epom.com/ad-server/docs/api/banners/post-tracking-code-banner-enable-tracking-code