Skip to content
Evgeny Samoylov edited this page Dec 20, 2018 · 22 revisions

You could use the following macros in the bidder's config.

Macro Meaning Config fields the macro is resolved in Example
{BID_ID} Bid response id. String. This is used for track conversions and link them with the other events: impressions and clicks. html_content 18f1c0e3-2e34-baf9-2160-41779ce33731
{RANDOM} Bid request id. String. impression_tracking_url, html_content c6987c2b-edb4-4b7b-b8cf-157af1d485e3
{CLICK_URL} Click handler html_content
{CLICK_URL_ESC} Escaped click handler html_content
{PUB_ID} Replaced with the '{SSP}_{PUBLISHER_ID}' string html_content, click_url, vast_url, creative.url Pubmatic_123
{APP_ID} Application id html_content
{SITE_ID} Site id html_content, creative.url
{SSP} SSP in case of ad exchange (traffic resellers from different SSPs like Bidswitch or SmartRTB) html_content, creative.url
{IP_HASH} SHA3-256 hash of the IP html_content 'ec5e67317f3a18878eafabc931809ec96cab68f628400f4ba798a36db0e672c6' value for the '66.66.66.66' ip
{UA_HASH} SHA3-256 hash of the User Agent html_content, creative.url '8f8ec4245ba5eed4a5a76523eff0e1ce5be2fbb67ed7439efc5dc83ed47f9f77' value for the 'Dalvik/2.1.0 (Linux; U; Android 5.0.2; SM-G360BT Build/LRX22G)' user agent
{APP_NAME} Application name vast_url, click_url, html_content
{APP_BUNDLE} Application bundle vast_url, click_url, html_content
{APP_STOREURL} Application store url vast_url, click_url, html_content
{APP_VERSION} Application version vast_url, click_url
{VIDEO_W} Requested video width vast_url, click_url
{VIDEO_H} Requested video height vast_url, click_url
{DNT} Device "Do Not Track" flag vast_url, click_url
{DOMAIN} Site's domain html_content, creative.url
{DEVICE_MODEL} Device's model from the device.model field html_content, creative.url
{DEVICE_CARRIER} Mobile carrier from the device.carrier field html_content, creative.url
{NETWORK} Network name creative.url, html_content
{BIDFLOOR} Bid floor price in CPM creative.url, html_content

Clone this wiki locally