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

Below is the code implementation for this ad. You're free to copy and use this as needed.
<?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>