Browse the help center

Add banner tracking code

Adds or replaces a 3rd party tracking code for the specified banner and country combination.

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

Adds or replaces a 3rd party tracking code for the specified banner and country combination. If a tracking code already exists for the same banner and country, it will be overwritten with the new value. Use country code '*' to set a global tracking code that fires for all countries. Returns a JSON object with a 'success' boolean indicating whether the operation completed successfully.

Form Params

domainId integer required

The unique numeric identifier of the banner 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 the specified country

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

Responses

200

Operation result with success status

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.