VAST ad unit

android

#1

Is there any VAST ad unit id that I can use to see how the VAST video ad looks like when used on mopub android sdk.
I know it is possbile to create one on app.mopub.com but I am looking for a pre defined ad unit just to see how the vast video looks on device.


#2

Here is a test VAST tag from our file VastXmlManagerTest.java. You can pass this tag into a direct serve creative and pass the ad unit into the sample app to see how the VAST ad looks like.

<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:noNamespaceSchemaLocation="vast.xsd">
    <Ad id="223626102">
        <InLine>
            <AdSystem version="2.0">
                DART_DFA
            </AdSystem>
            <AdTitle>
                In-Stream Video
            </AdTitle>
            <Description>
                A test creative with a description.
            </Description>
            <Survey/>
            <Impression id="DART">
                <![CDATA[ http://ad.doubleclick.net/imp;v7;x;223626102;0-0;0;47414672;0/0;30477563/30495440/1;;~aopt=0/0/ff/0;~cs=j%3fhttp://s0.2mdn.net/dot.gif
                ]]>
            </Impression>
            <Impression id="ThirdParty">
                <![CDATA[ http://ad.doubleclick.net/ad/N270.Process_Other/B3473145;sz=1x1;ord=2922389?
                ]]>
            </Impression>
            <Error>
                <![CDATA[
                http://myerrorurl
                ]]>
            </Error>
            <Error>
                <![CDATA[
                http://myerrorurl2
                ]]>
            </Error>
            <Creatives>
                <Creative sequence="1" AdID="">
                    <Linear>
                        <Duration>
                            00:00:58
                        </Duration>
                        <TrackingEvents>
                            <Tracking event="start">
                                <![CDATA[ http://ad.doubleclick.net/activity;src=2215309;met=1;v=1;pid=47414672;aid=223626102;ko=0;cid=30477563;rid=30495440;rv=1;timestamp=2922389;eid1=11;ecn1=1;etm1=0;
                                ]]>
                            </Tracking>
                            <Tracking event="midpoint">
                                <![CDATA[ http://ad.doubleclick.net/activity;src=2215309;met=1;v=1;pid=47414672;aid=223626102;ko=0;cid=30477563;rid=30495440;rv=1;timestamp=2922389;eid1=18;ecn1=1;etm1=0;
                                ]]>
                            </Tracking>
                            <Tracking event="midpoint">
                                <![CDATA[ http://ad.doubleclick.net/ad/N270.Process_Other/B3473145.3;sz=1x1;ord=2922389?
                                ]]>
                            </Tracking>
                            <Tracking event="firstQuartile">
                                <![CDATA[ http://ad.doubleclick.net/activity;src=2215309;met=1;v=1;pid=47414672;aid=223626102;ko=0;cid=30477563;rid=30495440;rv=1;timestamp=2922389;eid1=26;ecn1=1;etm1=0;
                                ]]>
                            </Tracking>
                            <Tracking event="firstQuartile">
                                <![CDATA[ http://ad.doubleclick.net/ad/N270.Process_Other/B3473145.2;sz=1x1;ord=2922389?
                                ]]>
                            </Tracking>
                            <Tracking event="thirdQuartile">
                                <![CDATA[ http://ad.doubleclick.net/activity;src=2215309;met=1;v=1;pid=47414672;aid=223626102;ko=0;cid=30477563;rid=30495440;rv=1;timestamp=2922389;eid1=27;ecn1=1;etm1=0;
                                ]]>
                            </Tracking>
                            <Tracking event="thirdQuartile">
                                <![CDATA[ http://ad.doubleclick.net/ad/N270.Process_Other/B3473145.4;sz=1x1;ord=2922389?
                                ]]>
                            </Tracking>
                            <Tracking event="complete">
                                <![CDATA[ http://ad.doubleclick.net/activity;src=2215309;met=1;v=1;pid=47414672;aid=223626102;ko=0;cid=30477563;rid=30495440;rv=1;timestamp=2922389;eid1=13;ecn1=1;etm1=0;
                                ]]>
                            </Tracking>
                            <Tracking event="complete">
                                <![CDATA[ http://ad.doubleclick.net/ad/N270.Process_Other/B3473145.5;sz=1x1;ord=2922389?
                                ]]>
                            </Tracking>
                            <Tracking event="mute">
                                <![CDATA[ http://ad.doubleclick.net/activity;src=2215309;met=1;v=1;pid=47414672;aid=223626102;ko=0;cid=30477563;rid=30495440;rv=1;timestamp=2922389;eid1=16;ecn1=1;etm1=0;
                                ]]>
                            </Tracking>
                            <Tracking event="pause">
                                <![CDATA[ http://ad.doubleclick.net/activity;src=2215309;met=1;v=1;pid=47414672;aid=223626102;ko=0;cid=30477563;rid=30495440;rv=1;timestamp=2922389;eid1=15;ecn1=1;etm1=0;
                                ]]>
                            </Tracking>
                            <Tracking event="fullscreen">
                                <![CDATA[ http://ad.doubleclick.net/activity;src=2215309;met=1;v=1;pid=47414672;aid=223626102;ko=0;cid=30477563;rid=30495440;rv=1;timestamp=2922389;eid1=19;ecn1=1;etm1=0;
                                ]]>
                            </Tracking>
                            <Tracking event="fullscreen">
                                <![CDATA[ http://ad.doubleclick.net/ad/N270.Process_Other/B3473145.6;sz=1x1;ord=2922389?
                                ]]>
                            </Tracking>
                        </TrackingEvents>
                        <AdParameters/>
                        <VideoClicks>
                            <ClickThrough>
                                <![CDATA[ http://www.google.com/support/richmedia ]]>
                            </ClickThrough>
                            <ClickTracking id="DART">
                                <![CDATA[ http://ad.doubleclick.net/click%3Bh%3Dv8/3e1b/3/0/%2a/z%3B223626102%3B0-0%3B0%3B47414672%3B255-0/0%3B30477563/30495440/1%3B%3B%7Eaopt%3D0/0/ff/0%3B%7Esscs%3D%3fhttp://s0.2mdn.net/dot.gif
                                ]]>
                            </ClickTracking>
                            <ClickTracking id="ThirdParty">
                                <![CDATA[ http://ad.doubleclick.net/clk;212442087;33815766;i?http://www.google.com/support/richmedia
                                ]]>
                            </ClickTracking>
                        </VideoClicks>
                        <MediaFiles>
                            <MediaFile id="1" delivery="progressive" type="video/mp4" bitrate="457" width="300"
                            height="225">
                                <![CDATA[ http://f.cl.ly/items/39222F2i3z0z350Q1H11/big_buck_bunny_short.mp4 ]]>
                            </MediaFile>
                        </MediaFiles>
                    </Linear>
                </Creative>
                <Creative sequence="1" AdID="">
                    <CompanionAds>
                    </CompanionAds>
                </Creative>
            </Creatives>
            <Extensions>
                <Extension type="DART">
                    <AdServingData>
                        <DeliveryData>
                            <GeoData>
                                <![CDATA[ ct=US&st=CA&ac=415&zp=94103&bw=4&dma=197&city=13358 ]]>
                            </GeoData>
                        </DeliveryData>
                    </AdServingData>
                </Extension>
            </Extensions>
        </InLine>
    </Ad>
</VAST>

Let us know if you have any questions or need any clarifications.

Thanks!