Browse the help center

Edit banner tracking code

Updates an existing 3rd party country-level tracking code for the specified banner.

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

Updates an existing 3rd party country-level tracking code for the specified banner. The tracking code identified by 'id' gets the code sent, and moves to the country sent when that differs; the global code is edited with country '*' and id 0. Returns a JSON object with a 'success' boolean indicating whether the update completed successfully.

Form Params

id integer required

The unique numeric identifier of the existing tracking code record to update

1

domainId integer required

The unique numeric identifier of the banner that owns this tracking code

5001

country string required

ISO country code to target (e.g., 'US', 'GB'), or '*' for a global tracking code

US

code string required

The updated HTML tracking code snippet to be injected during ad serving

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

Responses

200

Operation result with success status

400

country is not a two-letter code, or the banner already has a code for it; or country * with an id other than 0

401

Authentication error

403

The role lacks the BANNER_THIRD_PARTY_TRACKING permission, or no UPDATE share on the banner

404

No such banner, or no such tracking code of it

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.