Skip to content
FizzKit

VAST Wrappers Explained

How VAST wrappers work: the three wrapper attributes, how tracking merges, the five-wrapper limit and the errors a chain can produce.

A VAST wrapper is a response that holds no ad. It points to another VAST response through <VASTAdTagURI> and adds its own tracking. The player follows the chain until it reaches an <InLine> response with the real media.

A minimal wrapper

<VAST version="4.2" xmlns="http://www.iab.com/VAST">
  <Ad id="1">
    <Wrapper>
      <AdSystem>Example</AdSystem>
      <Impression><![CDATA[https://example.com/imp]]></Impression>
      <VASTAdTagURI><![CDATA[https://example.com/next.xml]]></VASTAdTagURI>
    </Wrapper>
  </Ad>
</VAST>

<Impression> and <VASTAdTagURI> are required.

The three wrapper attributes

  • followAdditionalWrappers (default true): if false, any further wrapper should be ignored, so only an InLine response is accepted.
  • allowMultipleAds (default false): if true, pods and stand-alone ads are both allowed. If false, only the first stand-alone ad, with no sequence value, is allowed.
  • fallbackOnNoAd: if true, the player should pick from any stand-alone ads available when the request returns nothing. If false and the wrapper is part of a pod, it moves to the next ad in the pod.

How tracking merges

Tracking is sent for the InLine response and for every wrapper the player received. Wrappers carry tracking only, with no media files. When elements conflict, the one closest to the InLine response wins.

ClickThrough follows the same rule. An InLine ClickThrough wins. If it has none, the one in the closest wrapper is used. VAST 4.2 explicitly allowed ClickThrough in wrappers.

How many wrappers are allowed

VAST 4 says the number of wrappers should not exceed five before an InLine ad is served, and players are only required to accept five. Past that it is the publisher’s choice, and the player may reject later responses.

Wrapper errors

  • 300: general wrapper error
  • 301: a VAST URI in the chain was unavailable or timed out
  • 302: wrapper limit reached, as defined by the player
  • 303: no VAST response after one or more wrappers
  • 304: the InLine ad failed to display within the time limit

Error codes should be sent to every wrapper in the chain that provides an error URL. See the full error list.

Try it

Open the two-hop sample wrapper chain in the VAST Inspector to see each hop and the merged tracking.

Try it

Sources

Last checked 2026-11-07.