Guide 02 · VAST 4.4
A video ad reaches a player as an XML document. The player requests the tag, follows it through any wrappers to an InLine response, chooses a media file it can play, and calls a tracking address at each named moment of playback. This guide walks that client-side path under VAST 4.4.
In short
- Document
- One XML response under a VAST root
- Current version
- VAST 4.4, released 22 July 2026
- Wrappers
- Five at most, then an InLine response
VAST moves an ad across the last hop of video advertising: from ad server to media player. The document carries the metadata, the media files and the tracking addresses; the player does the rest on the client, following redirects, picking a playable file and reporting each playback event. Version 4.4, released in July 2026, extends the document to the IAB Tech Lab's CTV Ad Portfolio formats.
What VAST is
VAST, the Video Ad Serving Template, is an XML schema from the IAB Tech Lab that structures what an ad server tells a media player. It has been in use since 2008, across desktop players, phones, apps and connected TVs. The current release is 4.4.
VAST is a response protocol. The player asks; the server answers with one document describing everything needed to play and measure the ad. Any player that reads VAST can play any tag a VAST server produces: one integration instead of one per platform. How the player asks is separate. Programmatic requests travel over OpenRTB (the guide to OpenRTB 2.6 covers that exchange), and VAST 4.1 added request macros a client can set in a direct ad request.
The client-side sequence
The specification describes client-side serving as five steps:
| Step | What happens |
|---|---|
| Cue point | The player reaches a break and requests an ad over HTTP from the primary ad server: the publisher's ad server or an SSP. |
| Wrapper | The server answers with an InLine response, or with a Wrapper whose target the player requests in turn until an InLine arrives. |
| Execution | The player loads verification resources first, then the media and interactive files, then plays. |
| Tracking | The player calls the tracking addresses at each named moment, for the InLine and every Wrapper that led to it. |
When the player cannot do this work, the tag is stitched into the stream on a server instead. That path has its own rules, and the guide to VAST on the server covers it.
The elements of the VAST document
A VAST response is one XML document under a VAST root with a version attribute. The root holds Ad elements, or an Error alone when there is nothing to return.
| Element | What it carries |
|---|---|
VAST | The root, with a version attribute naming the version of the document. |
Ad | One ad, with an id and, in a pod, a sequence number. Holds exactly one InLine or Wrapper, never both. |
InLine | The complete ad in one response: every file and address needed to play it. |
Wrapper | A redirect to a second server, with its own impression and error addresses. |
AdSystem, AdTitle, AdServingId | Who serves the ad, its name, and the id that lets several systems match their data about one impression. |
Impression | Addresses the player calls when the ad shows, all fired at once. |
Creatives, Creative | The creative: a UniversalAdId and one of Linear, NonLinearAds or CompanionAds. |
UniversalAdId | The identifier that keeps a creative recognisable across systems. Required for linear ads. |
Linear, Duration | The in-stream creative, when its skip control appears (skipoffset), and its runtime. |
MediaFiles, Mezzanine | The files to play, usually three quality levels or one adaptive stream, plus the raw source that stitching requires. |
InteractiveCreativeFile | A file that needs an API to run, separate from the video file since VAST 4.0. |
VideoClicks | ClickThrough, ClickTracking and CustomClick addresses for a linear ad. |
TrackingEvents | Tracking elements pairing an event name with an address. |
CompanionAds, AdVerifications | Display creative travelling with the ad, and verification code, one element per vendor. |
Addresses in the document are wrapped in CDATA sections, which keeps ampersands and macros intact; the specification requires that wrapper, and the samples below leave it out and show the bare addresses. A trimmed InLine response:
<VAST version="4.4">
<Ad id="301" sequence="1">
<InLine>
<Impression id="ssp">https://track.example.com/imp</Impression>
<Creatives>
<Creative>
<UniversalAdId idRegistry="ad-id.org">CNPA0484000H</UniversalAdId>
<Linear skipoffset="00:00:05">
<Duration>00:00:15</Duration>
<MediaFiles>
<MediaFile delivery="progressive" type="video/mp4" width="1920" height="1080">https://media.example.com/15s.mp4</MediaFile>
</MediaFiles>
<TrackingEvents>
<Tracking event="start">https://track.example.com/start</Tracking>
<Tracking event="complete">https://track.example.com/complete</Tracking>
</TrackingEvents>
</Linear>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>The quality levels for those files are defined in the IAB Tech Lab's Digital Video Ad Format Guidelines; the schema validates structure and addresses, not encoding.
Tracking events
Tracking is a set of addresses the player calls at the moments their names describe. The impression is outside the creative, and all impression addresses fire together. The rest are under TrackingEvents, one element per event and party.
| Event | The player calls it when |
|---|---|
impression | The ad displayed. One element per party, all fired at once. |
loaded | The media and assets are ready to play. |
start | Playback of the creative begins. |
creativeView | One creative within the ad was viewed. The only event a companion supports. |
firstQuartile, midpoint, thirdQuartile | A quarter, half or three quarters of the creative has played at normal speed. |
complete | The creative played to the end at normal speed. |
progress | An offset on the element names the moment, as a time or a percentage. |
mute, unmute, pause, resume, rewind, skip | The viewer used the matching control. |
playerExpand, playerCollapse | The player grew or shrank, replacing the fullscreen and exitFullscreen events. |
closeLinear | The viewer dismissed the linear ad or its end card. |
clickTracking | The viewer clicked through. A ClickTracking element under VideoClicks. |
The quartile events and progress are what a report reads as completion. A progress offset also settles the counting of a skipped ad: when an agreement counts a view at a given point, the offset records it though the creative never finished.
Error codes
When an ad cannot play, the player tells the server. Any level of the document can carry an Error element, and the [ERRORCODE] macro in the address is replaced with a number from the specification's table. Errors are reported for the InLine and every Wrapper in the chain. The ranges: 100s for a broken document, 200s for mismatches, 300s for wrappers, 400s for the media, 900s for the rest.
| Code | Meaning |
|---|---|
| 100 | XML parsing error |
| 200 | Ad type the player was not expecting or cannot play |
| 206 | Ad break shortened, ad not served |
| 300 | General Wrapper error |
| 301 | Wrapper address timed out or unavailable |
| 302 | Wrapper limit reached, no InLine response |
| 303 | No VAST response after one or more Wrappers |
| 304 | InLine failed to produce an ad within the time limit |
| 400 | General Linear error, ad cannot be displayed |
| 401 | Media file not found at its address |
| 403 | No MediaFile the player supports |
| 406 | Mezzanine required but not provided, ad not served |
| 409 | Interactive file in the InteractiveCreativeFile node was not executed |
| 410 | Verification unit in the Verification node was not executed |
| 900 | Undefined error |
101 and 102 cover schema and version failures, 402 a timed-out media file, 407 a mezzanine still downloading, the 500s and 600s nonlinear and companion creative, and 901 and 902 VPAID and interactive files. A server with nothing to return sends a VAST root holding only an Error, and when an empty InLine follows a chain the player substitutes 303 there.
Wrappers and ad pods
When the first server cannot or will not fill the request itself, it answers with a Wrapper: a redirect that carries its own impression and error addresses and, for creative, nothing but tracking. The player requests the target and repeats that until a server returns an InLine response.
<Wrapper>
<AdSystem>Sample network</AdSystem>
<VASTAdTagURI>https://ads.example.net/vast?crid=45</VASTAdTagURI>
<Impression id="wrap">https://track.example.net/wrap-imp</Impression>
</Wrapper>The specification's advice is to keep the chain to five wrappers, and a player is only required to accept five; it may reject the rest, substituting 302 and moving on. Timeouts are the player's decision: the specification sets no seconds, and provides 301 for a wrapper address that answered too slowly or not at all, and 304 for an InLine that produced no ad in the time allowed. A wrapper can also constrain the chain behind it: allowMultipleAds set to false admits one stand-alone ad, followAdditionalWrappers set to false forbids further redirects. Creative offered twice is resolved in favour of the copy closest to the InLine.
An Ad can carry a sequence attribute, and sequenced ads form a pod, played in numerical order at one break. Unsequenced ads are stand-alone offers, the specification's ad buffet, doubling as substitutes when a pod ad fails. The player may truncate the end of a pod when the break is shorter than the pod, and a Wrapper's tracking fires for each pod ad it delivered.
VAST 4.4 and the CTV Ad Portfolio
VAST 4.0 arrived in January 2016, separating the video file from interactive code and adding the mezzanine file, the UniversalAdId, AdVerifications and publisher-side viewability tracking. 4.1 deprecated VPAID, merged the audio ad template into VAST, and added AdServingId and the first request macros. 4.2, in June 2019, added SIMID and error 206 for shortened breaks. 4.3, in December 2022, moved macros out of the specification and let interactive files travel as inline data addresses. 4.4 was released on 22 July 2026.
The 2026 release carries the IAB Tech Lab's CTV Ad Portfolio, the guidance that standardises the ad formats of connected TV, finalised the same day after a public comment period that closed on 5 June. Five of the six formats are delivered through VAST as NonLinearAds: Pause ads, shown when the viewer pauses playback with the remote; Screensaver ads; Overlay ads; Squeezeback ads; and In-Scene ads. The sixth, Menu ads, is transacted through the OpenRTB Native object rather than VAST. The changes in the document:
- MediaFiles under NonLinear, so nonlinear creative uses the same file delivery as linear, including images and video.
- InteractiveCreativeFile under NonLinear, so SIMID files are declared the same way for both.
- Duration under NonLinear, required for time-based creative and time-based events such as the quartiles.
- Icons under NonLinearAds, matching the icon handling linear ads have had since VAST 3.0.
- Signalling in Extensions: the AdCOM fields plcmt, pos, playbackmethod and attr travel in typed Extension elements, for players and measurement that never see the bid request.
- A QR code creative extension carrying the scan address, an optional image, and position and size.
The bid request remains the authoritative description of the opportunity; the extensions preserve that context downstream.
VPAID, SIMID and Open Measurement
VPAID, the Video Player-Ad Interface Definition, let an ad run its own code inside the player, and verification vendors adopted it as a measurement hook in the critical path of playback. VAST 4.1 deprecated VPAID, and the specification now describes it as being retired. SIMID replaces it for interactivity, delivered as an InteractiveCreativeFile; OMID, the Open Measurement Interface Definition, replaces it for verification.
Verification code travels in its own element: AdVerifications holds one Verification per vendor, with a vendor attribute of domain and use case, and a JavaScriptResource or ExecutableResource to run. The player runs the code before playback begins, and several vendors can measure one session. A player that refuses a vendor or cannot run its code fires that vendor's verificationNotExecuted address with a reason code: 1 when the publisher does not allow the vendor, 2 when the framework is unsupported, 3 when the resource failed to load. Error 410 reports the same to the ad server.
The ViewableImpression element, added with VAST 4.0, is separate and publisher-side: Viewable, NotViewable and ViewUndetermined addresses for a publisher that measures its own inventory, not a channel for third-party results.
Companion ads
A video or audio ad can carry display creative with it. The CompanionAds element holds Companion elements, each with a StaticResource, IFrameResource or HTMLResource and its own width and height. The container's required attribute names the deal: all, when every companion must show or the ad is dropped; any, when one is enough; none, when companions are optional. A companion supports only creativeView for tracking and CompanionClickTracking for clicks.
The renderingMode attribute, added in 4.1, names when the companion shows: concurrent, beside the playing video, or end-card, after the video stops, where the player fires closeLinear when the viewer dismisses it. As with creative offered twice across a wrapper chain, the copy closest to the InLine response wins.
What it means here
Vall Media serves video from VAST: in-stream pre-roll and mid-roll, out-stream units, on web players, in apps and on CTV. Wrappers, ad pods and the tracking set are part of that path, and the dashboard reports what VAST measures: impressions, quartiles, completion and viewability. The VAST format page describes the tag in product terms, the video format page the placements, the CTV monetization page connected-TV inventory, and the developer notes hold worked samples of these documents.
Checklist
- Wrap every address in CDATA, and percent-encode macro values.
- Fire every Impression address at the same moment, and each tracking event while it is true.
- Cap wrapper chains at five, and report 301, 302, 303 and 304 so every server learns what happened.
- Choose media files by their attributes, never by their position; expect a mezzanine when a tag is destined for stitching.
- Run verification before playback, and report a refused vendor with verificationNotExecuted and its reason code.
- Send the most specific error code the situation allows; 900 is the last resort.
Checked against
- IAB Tech Lab, Video Ad Serving Template (VAST) specification, version 4.4, the document and schema in the public VAST4.x repository, released on 22 July 2026.
- IAB Tech Lab, VAST 4.3 (December 2022), and the version history published on the IAB Tech Lab VAST standards page.
- IAB Tech Lab, CTV Ad Portfolio guidance and signaling, final as of 22 July 2026, after a public comment period that closed on 5 June 2026.