<VAST version="2.0" >
<Ad id="22175">
<InLine>
<AdSystem version="v0.2.225"><![CDATA[Acudeo Compatible]]></AdSystem>
<AdTitle> <![CDATA[Vast test]]></AdTitle>
<Impression>
<![CDATA[ about:blank ]]>
</Impression>
<Creatives>
<Creative sequence="1">
<NonLinearAds>
<NonLinear height="100" width="150" maintainAspectRatio="true" scalable="true" >
<StaticResource creativeType="video/mp4">
<![CDATA[https://stormapp.herokuapp.com/resource/video/360/venezia_square_360.mp4]]>
</StaticResource>
<NonLinearClickThrough><![CDATA[http://www.jwplayer.com]]></NonLinearClickThrough>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
Inserisci qui il codice...Is there any way to process multiple nonLinear ads within the same VAST xml file (under the <NonLinearsAds> tag name) and show them both in two different parts of the video player overlaying?
Second, i was wondering why when the Google IMA SDK reproduces a nonLInear Ad, when an ad finishes, it DOES NOT hide by default the iframe where it is displayed (or better, the iframe which src is an HTML view-source:https://imasdk.googleapis.com/js/core/bridge3.173.4_en.html that generates the iframe where the ad is displayed). You can check what through your Video Suite Inspector giving the following input:
Suggested duration to display non-linear ad, typically for animation to complete. Expressed in standard time format hh:mm:ss" and I tried it with this code, but it doesn't work at all: |
|
|
|
Furthermore, I've not understood yet whether that's only a problem of letting the SDK know the duration of the video somehow (How?) or it's not possible at all. |
<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">
<vmap:AdBreak timeOffset="start" breakType="linear" breakId="preroll-1">
<vmap:AdSource id="preroll-ad-1" allowMultipleAds="false" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
<![CDATA[
**LINK TO YOUR AD TAG HERE**
]]>
</vmap:AdSource>
</vmap:AdBreak>
</vmap:VMAP>
<iframe src="http://imasdk.googleapis.com/js/core/bridge3.174.0_en.html#goog_332014209" allowfullscreen="" style="border: 0px none; opacity: 1; margin: 0px; padding: 0px; position: relative; pointer-events: none;" width="xxx" height="yyy"></iframe>
<div class="ima-container autoalign" style="transition: opacity 0.4s ease 0s;">...</div>"
<div class="ima-container autoalign" style="transition: opacity 0.4s ease 0s; opacity: 0.3;">...</div><VAST version="3.0" >
<Ad id="22175">
<InLine>
<AdSystem version="v0.2.225"><![CDATA[Acudeo Compatible]]></AdSystem>
<AdTitle> <![CDATA[Vast test]]></AdTitle>
<Impression>
<![CDATA[ about:blank ]]>
</Impression>
<Creatives>
<Creative sequence="1">
<NonLinearAds>
<NonLinear height="180" width="320" maintainAspectRatio="true" scalable="true" minSuggestedDuration="00:01:20">
<StaticResource creativeType="video/mp4">
<![CDATA[https://stormapp.herokuapp.com/resource/video/360/venezia_square_360.mp4]]>
<!-- <![CDATA[http://www.napolidavivere.it/wp-content/uploads/2017/01/Incontri-di-Archeologia-gratuiti-al-MANN-il-Museo-Archeologico-Nazionale-di-Napoli-640x360-640x360.jpg]]> -->
</StaticResource>
<NonLinearClickThrough><![CDATA[http://www.jwplayer.com]]></NonLinearClickThrough>
</NonLinear>
</NonLinearAds>
</Creative>
<Creative sequence = "2">
<CompanionAds>
<Companion width="302" height="252" adSlotId="mediumRectangle">
<StaticResource creativeType="image/png">
<![CDATA[https://pbs.twimg.com/media/C-RgNIEWAAE5UWL.png]]>
<!-- <![CDATA[http://www.napolidavivere.it/wp-content/uploads/2017/01/Incontri-di-Archeologia-gratuiti-al-MANN-il-Museo-Archeologico-Nazionale-di-Napoli-640x360-640x360.jpg]]> -->
</StaticResource>
</Companion>
</CompanionAds>var ad = adEvent.getAd();
var selectionCriteria = new google.ima.CompanionAdSelectionSettings();
selectionCriteria.resourceType = google.ima.CompanionAdSelectionSettings.ResourceType.STATIC;
selectionCriteria.creativeType = google.ima.CompanionAdSelectionSettings.CreativeType.ALL;
selectionCriteria.sizeCriteria = google.ima.CompanionAdSelectionSettings.SizeCriteria.IGNORE;
var companionAds = ad.getCompanionAds(320, 180, selectionCriteria);
var q;
for (q=0; q <companionAds.length; q++){
var companionAd = companionAds[q];
alert(companionAd.getContentType());
alert(companionAd.getAdSlotId());
}
companionAd.getAdSlotId() instead is not recognized as a function as you can see in the following image <VAST version="3.0">
<Ad id="22175">
<InLine>
<AdSystem version="v0.2.225"><![CDATA[Acudeo Compatible]]></AdSystem>
<AdTitle> <![CDATA[Vast test]]></AdTitle>
<Impression>
<![CDATA[ about:blank ]]>
</Impression>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear height="180" width="320" maintainAspectRatio="true"
scalable="true" minSuggestedDuration="00:01:20">
<StaticResource creativeType="video/mp4">
<![CDATA[https://stormapp.herokuapp.com/resource/video/360/venezia_square_360.mp4]]>
<!-- <![CDATA[http://www.napolidavivere.it/wp-content/uploads/2017/01/Incontri-di-Archeologia-gratuiti-al-MANN-il-Museo-Archeologico-Nazionale-di-Napoli-640x360-640x360.jpg]]> -->
</StaticResource>
<NonLinearClickThrough><![CDATA[http://www.jwplayer.com]]></NonLinearClickThrough>
</NonLinear>
</NonLinearAds>
</Creative>
<Creative>
<CompanionAds required="all">
<Companion width="400" height="200" adSlotId ="companion-ad1">
<StaticResource creativeType="video/mp4">
<![CDATA[https://i.giphy.com/media/641arBi22PAty/giphy.mp4]]>
</StaticResource>
</Companion>
<Companion width="320" height="180" adSlotId ="companion-ad2">
<StaticResource creativeType="video/mp4">
<![CDATA[https://stormapp.herokuapp.com/resource/video/360/venezia_square_360.mp4]]>
</StaticResource>
</Companion>
<Companion width="100" height="100" adSlotId ="companion-ad3">
<StaticResource creativeType="audio/mp3">
<![CDATA[https://www.sample-videos.com/audio/mp3/crowd-cheering.mp3]]>
</StaticResource>StaticResource: Describes non-html creative where an attribute for creativeType is used to identify the creative resource platform. The video player uses the creativeType information to
determine how to display the resource:
- Image/gif, image/jpeg, image/png: displayed using the HTML tag <img> and the resource URI as the src attribute.
- Application/x-javascript: displayed using the HTML tag <script> and the resource URI as the src attribute.