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 |
GDPR consent |
||
VAST tracking macros |
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.
Macro |
---|
[APPBUNDLE] |
The an param.
Macro |
---|
%%ASSET_KEY%% |
Expands to the live stream event code.
Macro |
---|
%%BREAK_DURATION%% |
[BREAKMAXDURATION] |
Current Ad Break duration, in seconds.
[BREAKMAXDURATION]
should only be used for Ad Manager redirects where %%BREAK_DURATION%%
is not allowed.
Macro |
---|
[CACHEBUSTING] |
A random number.
Macro |
---|
[CLIENTUA] |
The ID of the player and VAST client used.
Macro |
---|
%%CMS_ID%% |
Expands to the Ad Manager content source ID ("CMS ID") currently playing. This value does not appear in your MRSS feed, but is visible in the Ad Manager interface.
Macro |
---|
%%GDPR%% |
The gdpr param.
Macro |
---|
[GDPRCONSENT] |
The gdpr_consent param.
Macro |
---|
[IFA] |
A resettable advertising ID that is taken from the rdid param. The advertising ID is only passed to primary ad requests if allowed by privacy flags (such as tfcd and is_lat).
Macro |
---|
[IFATYPE] |
DAI idtype param. The IFA type is only passed to primary ad requests if allowed by privacy flags (such as tfcd and is_lat).
Macro |
---|
[LIMITEDTRACKING] |
The ltd param.
Macro |
---|
%%NPA%% |
Expands to the value of 1 to tag the request as non-personalized.
This macro is used with ad requests subject to GDPR, and only in an ad tag for Dynamic Ad Insertion. See other macros for GDPR.
Macro |
---|
%%SPLICE_INSERT_EVENT_ID%% |
%%SPLICE_INSERT_UPID%% |
%%TIME_SIGNAL_EVENT_ID%% |
%%TIME_SIGNAL_UPID%% |
%%TIME_SIGNAL_UPID_RAW%% |
%%AFMM_CBC%% |
Expands to SCTE-35 signals.
Macro |
---|
%%STREAM_ID%% |
Expands to the session stream ID for the content source currently playing.
Macro |
---|
%%TFCD%% |
Expands to the value of the tfcd
parameter.
Macro |
---|
%%US_PRIVACY%% |
Expands to the value of the us_privacy
parameter.
Macro |
---|
%%USER_AGENT%% |
[DEVICEUA] |
User agent of the device that is rendering the ad to the end user.
[DEVICEUA]
macro will provide the expected functionality.Macro |
---|
%%USER_IP%% |
[DEVICEIP] |
[IP_ADDRESS] |
Expands to the user IP address.
[IP_ADDRESS]
should only be used for Ad Manager redirects where %%USER_IP%%
is not allowed.
Macro |
---|
%%VIDEO_DURATION_SEC%% |
Expands to the duration of the video in seconds.
VAST tracking macros
Both the [CACHEBUSTING]
and [ERRORCODE]
macros adhere to the VAST 4.0 spec (see section "2.3.7 Macros").
Macro |
---|
[CACHEBUSTING] |
Expands to an 8-digit random number.
Macro |
---|
[ERRORCODE] |
Expands to the VAST error code.