Macros

The banner is embedded on the page using an HTML block called a binding. The binding can contain macros, which are special symbols that the RTB host replaces with values.

In the binding, a macro starts with the dollar symbol, followed by the macro name in curly brackets. An example of the AUCTION_ID macro is shown below.

http://www.admaster.com/landing${AUCTION_ID}

RTB host macros

The RTB host replaces the following macros with its own values.

Macro Value
AUCTION_ID Auction ID ( id from the RTB host request).
AUCTION_IMP_ID Ad block ID ( id of the Impression object from the RTB host request).
AUCTION_BID_ID ID of the auction proposal ( bidid from the DSP response).
AUCTION_PRICE Cost of a package of impressions. The package currency is specified in the DSP response (the cur parameter).
AUCTION_PAGE_URL

The URL of the page for displaying ads.

Macro Value
AUCTION_ID Auction ID ( id from the RTB host request).
AUCTION_IMP_ID Ad block ID ( id of the Impression object from the RTB host request).
AUCTION_BID_ID ID of the auction proposal ( bidid from the DSP response).
AUCTION_PRICE Cost of a package of impressions. The package currency is specified in the DSP response (the cur parameter).
AUCTION_PAGE_URL

The URL of the page for displaying ads.

Attention. The names of these macros are case-sensitive. The RTB host only recognizes uppercase letters.