See more information about macros, including how they work with Ad Manager, and a complete list of rendering, tracking, and other video macros.
Jump to a specific macro in the list
Ad request macros
The ad request macros shown here can only be used in an ad tag for Dynamic Ad Insertion (DAI) for a video on demand content source or live stream. They do not work in the context of VAST creatives.
Square bracket macros are generally required to pass Ad Manager macro validation for redirects.
VAST tracking macros
Both the [CACHEBUSTING]
and [ERRORCODE]
macros adhere to the VAST 4.0 spec (see section "2.3.7 Macros").
Macros in URL encoded strings
If you need to use a macro in a section of the ad tag that should be URL encoded, the macro itself should not be URL encoded to ensure that macro replacement works properly.
Correct
http://some-adtag.com?encoded_param=[GOOGLE_INSTREAM_VIDEO_NONCE]%3D5
Incorrect
http://some-adtag.com?encoded_param=%5BGOOGLE_INSTREAM_VIDEO_NONCE%5D%3D5