Ad Me In

Google IMA Multi Ad Example

VAST

Google IMA Multi Ad 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 example illustrates how to implement multi-ad functionality using Google Ad Manager. It showcases the structure and elements required to serve multiple ads within a single video playback session, enhancing monetization opportunities while adhering to VAST standards.

Key Features

Google Ad Manager integration
Multi-ad functionality
Sequential ad playback
Compliant with VAST standards

Code Sample for this VAST Ad

<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">
    <vmap:AdBreak timeOffset="00:00:05.000" breakType="linear" breakId="midroll-1">
        <vmap:AdSource id="midroll-1-ad-1" allowMultipleAds="false" followRedirects="true">
            <vmap:AdTagURI templateType="vast3">
                <![CDATA[ https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&unviewed_position_start=1&output=xml_vast3&impl=s&env=vp&gdfp_req=1&ad_rule=0&cue=5000&vad_type=linear&vpos=midroll&pod=1&mridx=1&rmridx=1&ppos=2&min_ad_duration=0&max_ad_duration=30000&vrid=6376&video_doc_id=short_onecue&cmsid=496&kfa=0&tfcd=0&correlator= ]]>
            </vmap:AdTagURI>
        </vmap:AdSource>
    </vmap:AdBreak>
    <vmap:AdBreak timeOffset="00:00:05.000" breakType="linear" breakId="midroll-1">
        <vmap:AdSource id="midroll-1-ad-2" allowMultipleAds="false" followRedirects="true">
            <vmap:AdTagURI templateType="vast3">
                <![CDATA[ https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&unviewed_position_start=1&output=xml_vast3&impl=s&env=vp&gdfp_req=1&ad_rule=0&cue=5000&vad_type=linear&vpos=midroll&pod=2&mridx=1&rmridx=1&ppos=2&min_ad_duration=0&max_ad_duration=30000&vrid=6376&video_doc_id=short_onecue&cmsid=496&kfa=0&tfcd=0&correlator= ]]>
            </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