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

# Batch clear placement global tracking codes

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

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

## Form params

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

## Responses

- `200` — Map of placement 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/placement/global-clear/batch.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'domainIds=4001'
```

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