Browse the help center

Batch add banner tracking codes

Adds the same 3rd party tracking code to multiple banners in a single batch request.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/tracking-code/banner/add/batch.do

Adds the same 3rd party tracking code to multiple banners in a single batch request. Each banner in the domainIds array receives the same tracking code for the specified country. If a tracking code already exists for a given banner-country pair, it will be overwritten. 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

domainIds array<integer> required

Array of unique numeric banner identifiers to add the tracking code to

5001

country string required

ISO country code to target (e.g., 'US', 'GB'), or '*' to set a global tracking code that applies to all countries

US

code string required

The HTML tracking code snippet to be injected during ad serving for each banner and the specified country

<img src='https://tracker.example.com/pixel.gif' />

Responses

200

Map of banner IDs to operation results

400

Bad request — invalid or missing parameters

401

Authentication error

403

Forbidden — insufficient permissions

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.