Ad Me In

Multi Ad Example - Ad pod example

VAST

Multi Ad Example - Ad pod example

View this Ad Tag in action

Analyse this VAST ad tag in the AdMeIn VAST Validator.

Preview and Analyze in VAST Validator

About This Ad Tag Example

This VAST ad pod example demonstrates how to structure a VAST tag that contains multiple ads to be played sequentially within a single video playback session. It is ideal for scenarios where advertisers want to deliver several ads back-to-back, enhancing monetization opportunities while maintaining compliance with VAST standards.

Key Features

VAST ad pod structure
Multiple ads in one session
Sequential ad playback
Compliant with VAST standards

Code Sample for this VAST Ad

<?xml version="1.0" encoding="UTF-8"?>
<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">
  <vmap:AdBreak timeOffset="start" breakType="linear" breakId="preroll">
    <vmap:AdSource id="preroll-ad-1" allowMultipleAds="false" followRedirects="true">
      <vmap:AdTagURI templateType="vast4"><![CDATA[http://localhost:3758/api/vast-generator?type=vast&mediaUrl=https%3A%2F%2Fadmein.io%2Fapi%2Fstream%3Fid%3Da34401be-0-480p&adTitle=Sample%20Ad]]></vmap:AdTagURI>
    </vmap:AdSource>
  </vmap:AdBreak>
  <vmap:AdBreak timeOffset="00:00:25.000" breakType="linear" breakId="midroll">
    <vmap:AdSource id="midroll-ad-2" allowMultipleAds="false" followRedirects="true">
      <vmap:AdTagURI templateType="vast4"><![CDATA[http://localhost:3758/api/vast-generator?type=vast&mediaUrl=https%3A%2F%2Fadmein.io%2Fapi%2Fstream%3Fid%3Da34401be-0-480p&adTitle=Sample%20Ad]]></vmap:AdTagURI>
    </vmap:AdSource>
  </vmap:AdBreak>
  <vmap:AdBreak timeOffset="end" breakType="linear" breakId="postroll">
    <vmap:AdSource id="postroll-ad-3" allowMultipleAds="false" followRedirects="true">
      <vmap:AdTagURI templateType="vast4"><![CDATA[http://localhost:3758/api/vast-generator?type=vast&mediaUrl=https%3A%2F%2Fadmein.io%2Fapi%2Fstream%3Fid%3Da34401be-0-480p&adTitle=Sample%20Ad]]></vmap:AdTagURI>
    </vmap:AdSource>
  </vmap:AdBreak>
</vmap:VMAP>
Above is the code implementation for this ad. You're free to copy and use this as needed.

What is VAST Ads

VAST (Video Ad Serving Template) is a widely adopted XML-based standard used to deliver video ads across players, devices, and platforms. It defines how a video ad should load, track impressions, fire events, and interact with the player. VAST tags allow advertisers to run linear, non-linear, and companion video ads in environments like desktop, mobile apps, CTV, OTT, and streaming platforms. Using VAST ensures consistency, reliable tracking, and compatibility across the digital video advertising ecosystem.

Explore comprehensive VAST (Video Ad Serving Template) examples that demonstrate IAB-compliant video advertising implementations. Our samples cover VAST 2.0, 3.0, and 4.0 specifications, including pre-roll, mid-roll, and post-roll placements. Each example includes proper tracking implementation, error handling, and quartile event reporting essential for campaign measurement and optimization.

Explore more VAST ad examples