Markup Substitution Macros¶
BidCore supports the use of macros in Display HTML creative markup, native creatives, and VAST markup. When you use any of the following macros in the supported formats, BidCore will substitute the actual value for the macro if it is available before the content is rendered.
Important
For VAST Markup, macros are expanded before the wrapped VAST XML is rendered.
Therefore only URL safe macros should be used to prevent VAST player rendering issues.
The URL Safe versions of a macro in the following table have _ESC
as part of their
name, e.g USER_AGENT_ESC
.
Substitution Macros¶
Macros |
Description |
---|---|
|
Returns the creative’s advertiser ID. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. For example,
|
|
Returns the application bundle from the bid request,
|
|
Returns the application ID from the bid request,
|
|
Returns the application name from the bid request,
|
|
Returns the app store URL from the bid request,
|
|
This is used to prevent a creative from caching, a random integer up to
|
|
Returns the creative’s campaign ID. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. For example,
|
|
Returns the name of the campaign, for example, |
|
Tracks clicks and redirects to the landing page. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Tracks clicks and redirects to the landing page escape. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Tracks clicks without redirecting to the landing page. |
|
Tracks clicks without redirecting to the landing page escape. |
|
Returns the bid response ID. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the creative ID. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the name of the creative, for example, |
|
Returns the city ID, for example, |
|
Returns the city name, for example, |
|
Returns the country ID, for example, |
|
Returns the country name, for example, |
|
Returnd the region ID, for example, |
|
Returns the region name, for example, |
|
Returns the postal code, for example, |
|
Returns the make of the device on which the ad was served (e.g. Apple, Samsung). Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details., For example,
|
|
Returns the model of the device on which the ad was served, e.g. iPhone 6s, Galaxy S6. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. For example,
|
|
Returns the GDPR consent value 1/0. 0 GDPR does not apply; 1 GDPR applies |
|
Returns the TC string, as obtained from the OpenRTB request |
|
Returns the user gender value from the bid request, |
|
Returns the height of the creative in pixels. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the
|
|
Returns the Supplier ID from whom you bought the inventory. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the inventory type, either |
|
For user-to-server(U2S) requests, returns the request header. For
server-to-server(S2S) requests, returns the bidding device IP address. Use
|
|
URL safe IP address. For U2S requests, returns the request header. For S2S requests, returns the bidding device IP address. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
For U2S requests, returns the request header. For S2S requests, returns the bidding device IPv6 address. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the geographic latitude from the bid request. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the line item ID associated with the creative. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the name of the line item, for example, |
|
Returns the geographic longitude from the bid request. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. For example,
|
|
Required in display creative content or video creative |
|
Returns the site page from the bid request, |
|
Returns the site domain from the |
|
Returns the Operating System of the device on which the ad was served, e.g. iOS. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the video player height in pixels from the bid request. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the video player width in pixels from the bid request. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the publisher ID using the ssp-name_pub-id format, e.g.
|
|
Returns the referral site from the bid request, |
|
Returns the site domain from the bid request, |
|
Returns the site ID from the bid requests, |
|
Returns the site name from the bid request, |
|
Returns the tag ID from the bid request, |
|
Returns the user agent string, for U2S requests returns the request header and
for S2S requests returns the bid request device user agent. For VAST markup use
|
|
Returns the user agent string in a URL safe manner, for U2S requests returns the request header and for S2S requests returns the bid request device user agent. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the User ID from the bid request. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. For example,
|
|
Returns the creative’s width in pixels. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
|
Returns the original VAST URL. Can be used for VAST markup. See the Video Creatives section for details. |
|
Returns the user year of birth from the bid request. Can be used in Display and Native HTML and VAST markup. See the Creative Management for more details. |
Example Usage¶
# pixel usage
https://adserver.com/winnotice?impid=102&ssp=${INVENTORY_SOURCE}&crid=${CREATIVE_ID}
# Creative Markup
<iframe src=\"http://dsp.com/imp?li=${LINE_ITEM_ID}&os=${PLATFORM_OS}\"><\/iframe>
# VAST URL
http://adserver.com/vast?impid=102&$conversion=${ONLINE_CONVERSION_CONTEXT}
# Vast Markup
<Impression><![CDATA[http://dsphost.net/sync?ssp=${INVENTORY_SOURCE}&display_unit=${DEVICE_MAKE}&model=${DEVICE_MODEL}]]></Impression>