---
title: "Batch clear banner global tracking codes"
type: reference
method: POST
path: /rest-api/tracking-code/banner/global-clear/batch.do
tag: "Banners"
---

# Batch clear banner global tracking codes

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

Clears the global (country='*') 3rd party tracking code from multiple banners in a single batch request. This only removes the global tracking code; country-specific tracking codes for each banner remain untouched. The response is a JSON map keyed by banner ID, where each value is an object with a 'success' boolean indicating the result for that banner.

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `domainIds` | array<integer> | yes | `5001` | Array of unique numeric banner identifiers to clear global tracking codes from |

## Responses

- `200` — Map of banner IDs to operation results
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Forbidden — insufficient permissions

## Example request

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

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