Many VAST servers use tag variables to optimize fill and provide more information on how ads are being viewed. All-in-One Video Gallery supports a number of variables that can be added to your VAST URL. Once an ad call is made by All-in-One Video Gallery plugin, the variables will be replaced accordingly.
Supported Ad Tag Variables in VAST
The following is a list of ad tag variables supported by the All-in-One Video Gallery plugin:
|[domain]||The domain name the player is embedded on.|
|[player_width]||The width of the video player on the page in pixels.|
|[player_height]||The height of the video player on the page in pixels.|
|[random_number]||A random number. Typically used as a cache-buster, to ensure there is no local caching of the VAST response.|
|[timestamp]||The current time of the user’s computer, as a UNIX timestamp.|
|[page_url]||The URL of the current page (the one the video is embedded in).|
|[referrer]||The URL of the page that brought the viewer to the current player.|
|[ip_address]||The client IP address.|
|[post_id]||ID of the currently playing video. If cannot find the video ID, then fall back to the post ID the player is embedded on.|
|[post_title]||Title of the currently playing video. If cannot find the video title, then fall back to the post title the player is embedded on.|
|[post_excerpt]||Short description of the currently playing video. If cannot find the video description, then fall back to the post description the player is embedded on.|
|[video_file]||The file URL of the currently playing video.|
|[video_duration]||The duration in seconds of the currently playing video.|
|[autoplay]||0 if Autoplay is off, 1 if Autoplay is on.|
Keep in mind that All-in-One Video Gallery plugin’s naming convention for ad tag variables may not always match up to the naming convention used by your ad server. Not to worry! Just remember to find the variable whose value matches up with the value being requested by your ad server, and the data should be sufficient.
For example, if your ad server wants the URL of the webpage the player is embedded on, but they want you to use the parameter “content_url” you can still use All-in-One Video Gallery plugin’s
[page_url] tag variable to send back the page URL value.
Ad Tag Variable Example
If we deconstruct the URL above, you can see that the ad partner is asking us to send back the following values, and we’re doing so using the All-in-One Video Gallery ad tag variables:
- name: the ad partner is asking for the name of the video for which we’re requesting an ad, so we’re sending this back using the
[video_title]tag variable, which sends back the video title if possible or the page title the player is on.
- page_url: the ad partner wants the URL of the webpage the video player is embedded on, so we’re sending this back using the
[page_url]tag variable, which dynamically grabs the page URL using the web player.
- duration: the ad partner wants the duration of the video, so we’re sending this back using the
[video_duration]tag variable which will send back the total duration of the video.
- cachebuster: often you’ll see an ad server ask for a “cachebuster” or some other random string value to include in your ad tags; here we’ve filled that value using the
What if I don’t see a tag variable (macro) on this list that’s required by my ad server?
We’re always on the lookout to support more types of ad tag variables (macros). While we may not be able to add every specialized tag variable that exists, we’re happy to receive your request for consideration.
If you see a tag variable missing from this list that’s required by your ad server, please reach out to our support with the following information: the name of your ad partner and the details about the tag variable you need.