What is a VAST Tag / Router

Created by Andrew Baritz, Modified on Wed, 25 Jun at 12:52 PM by Andrew Baritz

What Is a VAST Tag and VAST Router?

If you're working in OTT streaming or AVOD (Advertising Video on Demand), you've likely heard terms like VAST tag and VAST router thrown around. But what exactly are they, and why are they so important to video advertising?

Let’s break it down.


✅ What Is a VAST Tag?

VAST stands for Video Ad Serving Template. A VAST tag is a URL that a video player calls to fetch video ads. This tag points to a VAST XML file that tells the player:

  • What ad to play

  • Where to find the media file

  • How long the ad is

  • Where to track impressions and clicks

? Think of It Like This:

A VAST tag is like giving your video player a map. The map tells it where to find the ad, how to display it, and where to report back once the ad is shown.


? What Does a VAST Tag Look Like?

Here’s an example of a basic VAST tag URL:

arduino
CopyEdit
https://adserver.com/vast?placement_id=12345

When the player calls that URL, it gets back an XML response that looks something like this:

xml
CopyEdit
<VAST version="4.0"> <Ad> <InLine> <Creatives> <Creative> <Linear> <MediaFiles> <MediaFile delivery="progressive" type="video/mp4"> https://cdn.adserver.com/media/ad1.mp4 </MediaFile> </MediaFiles> </Linear> </Creative> </Creatives> </InLine> </Ad> </VAST>

? What’s Inside a VAST File?

ElementWhat It Does
<Ad>Defines the ad or wrapper
<MediaFile>Points to the video ad file
<Tracking>Tracks impressions, clicks, completes
<ClickThrough>URL to visit when someone clicks the ad
<Duration>How long the ad should play

? What Is a VAST Router?

VAST Router (sometimes called a VAST Wrapper Router) is a server that sits between the video player and multiple demand sources (advertisers, SSPs, DSPs).

Instead of pointing your player directly to one VAST tag, you point it to the VAST router, which does the following:

? How It Works

  1. The player requests an ad from the router.

  2. The router queries multiple VAST tags from different ad sources.

  3. It picks the best ad (based on price, quality, fill, etc.).

  4. It either:

    • Responds with that ad’s VAST directly, or

    • Wraps the winning ad in another VAST file (a wrapper).


?️ Diagram: Player > Router > Demand Sources

sql
CopyEdit
Video Player | v [VAST Router] | +--> SSP 1 (VAST) | +--> SSP 2 (VAST) | +--> DSP (VAST) | v Returns best VAST ad

? Why Use a VAST Router?

BenefitWhy It Matters
Unified TrafficRoute all demand through one point of contact.
OptimizationChoose best ad based on CPM, latency, or creative quality.
Fallback HandlingIf one demand source fails, try another instantly.
TrackingCentralized tracking of performance, requests, and fills.
A/B TestingEasily split traffic to test different demand paths.

? Potential Issues with VAST Tags & Routers

IssueFix or Prevention Strategy
Too many wrappersLimit wrappers to 2 or fewer to avoid timeouts.
Long load timesOptimize router response speed.
No-fill from sourcesInclude fallback tags or default creative.
Broken media filesAlways QA test final VAST responses.

?‍? Real-World Example

If you're a publisher like Revry, you might route all of your AVOD traffic through a VAST router to control who gets access to your inventory and to select the highest-paying ads programmatically.

text
CopyEdit
Player → Revry VAST Router → Index Exchange, Magnite, OpenX, etc.

? Glossary

  • SSP: Supply-Side Platform – sells ad inventory

  • DSP: Demand-Side Platform – buys ad inventory

  • Wrapper: A VAST file that points to another VAST tag

  • Inline Ad: A VAST response that includes the final media file


? Summary

TermWhat It Means
VAST TagURL that returns a VAST ad file
VAST RouterMiddleware that selects the best ad and serves the VAST response

?️ Visual Recap

? VAST Tag Path:

nginx
CopyEdit
Player ➜ VAST Tag ➜ Ad Creative

? VAST Router Path:

nginx
CopyEdit
Player ➜ VAST Router ➜ Multiple Demand ➜ Best Ad ➜ Ad Creative

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article