Browse the help center

Set a template banner's property values

Changes some property values of a TEMPLATE banner and keeps the rest.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/template-properties.do

Changes some property values of a TEMPLATE banner and keeps the rest. The JSON body maps each property to its new value, e.g. {"$$PARENT_SELECTOR$$": "#player", "$$INSERTION_TYPE$$": "after"}; a property is named by its key, with or without the $$ around it, or by its title. A SELECT takes one of its options' values, a BOOLEAN true or false, an INTEGER a whole number within its min and max, a STRING what the banner edit accepts (its length, a valid URL where it is a URL); an empty string clears an optional value. The values are checked as the banner edit checks them, and nothing is saved when one is refused. FILE and HTML5_ZIP properties are not set here: send fileUrl[<key>] or html5ZipUrl[<key>] to /rest-api/banner/{bannerId}/update.do. A change to a property under moderation can send the banner back for approval, as in the console. Answers the properties as the GET does. Requires UPDATE permission on the banner's advertiser and, while the template is inactive, the UPDATE_PROPERTIES_OF_INACTIVE_TEMPLATE permission.

Path Params

bannerId integer required

ID of the TEMPLATE banner

3001

Body

A JSON body. An example, built from the field definitions:

{}

Responses

200

Saved; the template and its properties with the banner's new values

400

Not a TEMPLATE banner, no values, an unknown property (the message lists the valid keys), a file property, or a value the property refuses (errors by key)

401

Authentication error

403

Not enough permissions

404

Banner not found or deleted

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.