Samples for post-roll mid-roll and non-linear overlay ads

4,019 views
Skip to first unread message

Arnaud Leyder

unread,
Jan 20, 2015, 9:02:44 AM1/20/15
to ima...@googlegroups.com
Hi,

I am working on integrating IMA SDK HTML5 for my video player https://www.radiantmediaplayer.com.
Thanks to a clear documentation I have been successful so far with the SDK/options and the pre-roll sample. I would like to know if you have samples for adTagUrl corresponding to mid/post-roll ads and non linear overlay ads that I could test or if you could point me towards resources to obtain some? I do have an AdSense account but it is not for video ads.

Arnaud

Shawn Busolits (IMA SDK Team)

unread,
Jan 20, 2015, 10:15:08 AM1/20/15
to ima...@googlegroups.com

Arnaud Leyder

unread,
Jan 20, 2015, 10:21:33 AM1/20/15
to ima...@googlegroups.com
Perfect, thanks for this quick response!
Arnaud
--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+u...@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at http://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

-- 
Arnaud Leyder
JavaScript and Streaming Media Engineer
mobile: +33 (0) 6 59 87 06 55 
email: arnaud...@gmail.com
skype: arnaud.leyder

Rafael Sobral

unread,
Feb 10, 2015, 11:33:55 AM2/10/15
to ima...@googlegroups.com
This example do not show anymore. Could I get them?

Shawn Busolits (IMA SDK Team)

unread,
Feb 10, 2015, 2:39:50 PM2/10/15
to ima...@googlegroups.com

Rafael Sobral

unread,
Feb 11, 2015, 6:08:59 AM2/11/15
to ima...@googlegroups.com
Thank you very much Shawn.

I am just little confuse because it do not seems VAST neither VMAP.

Is it another technology? Is it IMA only? Where I can get a reference for it.

I am trying to do it, but I am using VMAP like bellow. Which way is better?


<?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-pre-bumper" allowMultipleAds="false" followRedirects="true">
<vmap:AdTagURI templateType="vast3"><![CDATA[http://demo.hdrelay.com/vast-intro.xml]]></vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:00:01.000" breakType="nonlinear" breakId="midroll-1">
<vmap:AdSource id="midroll-1-pre-bumper" allowMultipleAds="false" followRedirects="true">
<vmap:AdTagURI templateType="vast3"><![CDATA[http://demo.hdrelay.com/vast-over.xml]]></vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="end" breakType="linear" breakId="postroll">
<vmap:AdSource id="postroll-pre-bumper" allowMultipleAds="false" followRedirects="true">
<vmap:AdTagURI templateType="vast3"><![CDATA[http://demo.hdrelay.com/vast-intro.xml]]></vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
</vmap:VMAP>

Thanks again.

Aloha,

Rafael Sobral

Shawn Busolits (IMA SDK Team)

unread,
Feb 11, 2015, 10:26:55 AM2/11/15
to ima...@googlegroups.com
Hey Rafael,

Those responses are DFP ad rules responses, which are specific to DFP. You can get a VMAP response instead by changing the "output" parameter to "xml_vmap1" in any of those URLs. I wouldn't say either is better than the other, just that ad rules is DFP proprietary and VMAP is an IAB industry standard. 

Thanks,
Shawn Busolits
IMA SDK Team

Arnaud Leyder

unread,
Feb 20, 2015, 5:03:39 AM2/20/15
to ima...@googlegroups.com
Hi,

I am trying to use the below given test URLs, the overlay image I can get to work however the 3 others URLs for linear ads do not seem to work.

I have printed the output of my debug console below. Can you tell me if those are working URLs? Is it CORS related?
For example this one (postroll only) does not seem to work: http://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=%2F3510761%2FadRulesSampleTags&ciu_szs=160x600%2C300x250%2C728x90&cust_params=adrule%3Dpostrollonly&impl=s&gdfp_req=1&env=vp&ad_rule=1&vid=47570401&cmsid=481&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&correlator=[timestamp]

Thanks


TypeError: adsManager is undefined
--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+u...@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at http://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

Leandro Zanol

unread,
Feb 20, 2015, 8:41:32 AM2/20/15
to ima...@googlegroups.com
Hello Shawn,

I'm having the same problem and I've tested these same VASTs in both Flash and HTML5 IMA SDK's integrations with my player, and I've got the following:

Post-roll only
Flash: yes
HTML5: no - Fails silently

Pre-roll, Mid-roll, and Post-roll
Flash: no
HTML5: no
Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 302

Pre-roll pod, Mid-roll pod, and Post-roll pod
Flash: yes
HTML5: noFails silently

Thanks, best regards.

Leandro Zanol

Shawn Busolits (IMA SDK Team)

unread,
Feb 20, 2015, 10:56:53 AM2/20/15
to ima...@googlegroups.com
Hi all,

Please see my response from Feb 10. The initial URLs I sent have expired, but the updated ones should still be working and should not expire.

Thanks,
Shawn Busolits
IMA SDK Team

Leandro Zanol

unread,
Feb 20, 2015, 11:20:47 AM2/20/15
to ima...@googlegroups.com
Hi Shawn,

Thanks for your reply.

I believe something's wrong with HTML5 version of IMA because, for instance, AdRules works fine with Flash version but fails in HTML5. I've caught the debug logs from IMA (they simply stop there with no error messages):

[ima.loader.AdsLoaderWrapper] Requesting ads using new ads loader.
[ima.loader.AdsLoaderWrapper] requestAds, processing external request.
[ima.loader.SequentialAdsLoader] Enqueued new request.
[ima.loader.SequentialAdsLoader] Starting request from queue.
[ima.loader.AdsLoaderImpl] creating instance of GptRequestActivity.
[ima.loader.AdSourceFetcher] fetch, starting GPT request activity.
[ima.common.GptCompanionAdService] GPT companion ads service not available.
[ima.request.GptRequestActivity] Started roadblock task.
[ima.request.GptRequestActivity] GPT requests not sent yet.
[ima.request.GptRequestActivity] GPT requests not sent yet.
[ima.request.GptRequestActivity] GPT requests not sent yet.
[ima.request.GptRequestActivity] GPT requests not sent yet.
[ima.request.GptRequestActivity] GPT requests not sent yet.
[ima.request.GptRequestActivity] GPT requests not sent yet.
[ima.request.GptRequestActivity] GPT requests not sent yet.
[ima.request.GptRequestActivity] GPT requests not sent yet.
[ima.request.GptRequestActivity] Pre-request tasks timeout.
[ima.loader.AdSourceFetcher] Creating PlaylistSource.
[ima.loader.AdsLoaderWrapper] dispatchPlaylist_
[ima.adslist.AdBreak] Requesting next ad for time: 0
[ima.adslist.AdBreak] Requesting ad tag:http://pubads.g.doubleclick.net/gampad/ads?slotname=/3510761/adRulesSampleT…vb1_vl1_vr1&osd=2&frm=0&video_doc_id=12345&cmsid=3601&sdkv=h.3.87.0&sdki=5
[ima.loader.AdsLoaderWrapper] requestAds, processing internal request.
[ima.loader.SequentialAdsLoader] Enqueued new request.
[ima.loader.SequentialAdsLoader] Starting request from queue.
[ima.loader.AdsLoaderImpl] creating instance of GptRequestActivity.
[ima.loader.AdSourceFetcher] fetch, starting GPT request activity.
[ima.request.GptRequestActivity] Started roadblock task.
[ima.request.GptRequestActivity] Content {vid: "", cmsid: "3601"} empty.
[ima.loader.AdSourceFetcher] Creating WaterfallAdSource.
[ima.loader.VastAdSource] hasMoreAds, this.ads.length: 1 , this.currentAdIndex: -1 , this.numAdsSent: 0
[ima.loader.VastAdSource] getNextAd, this.currentAdSource: null
[ima.loader.VastAdSource] hasMoreAds, this.ads.length: 1 , this.currentAdIndex: -1 , this.numAdsSent: 0
[ima.loader.VastAdSource] processNextAd_, currentAdIndex: 0, ads.length: 1
[ima.loader.VastAdSource] Setting fallback index to session context: 0
[ima.loader.VastAdSource] processInlineAd, successCallback with 1 ads
[ima.loader.VastAdSource] hasMoreAds, this.ads.length: 1 , this.currentAdIndex: 0 , this.numAdsSent: 1
[ima.loader.AdsLoaderImpl] exhaustAdSource_, calling success for 1 ads
[ima.loader.AdsLoaderWrapper] dispatchAdsLoadedSdkEvent_, ads.length: 1
[ima.adslist.AdBreak] Ad #0 loaded for ad break time: 0
[ima.adslist.AdBreak] Requesting next ad for time: 0
[ima.adslist.AdBreak] Playing next item and waiting for time:0.
[samba.player.html5.js:265 X {b: Object, Nc: function, Pc: function, wb: function, Yc: function…}
[ima.common.GptCompanionAdService] GPT companion ads service not available.

Regards!

On Tuesday, January 20, 2015 at 12:02:44 PM UTC-2, Arnaud Leyder wrote:

Shawn Busolits (IMA SDK Team)

unread,
Feb 20, 2015, 11:30:59 AM2/20/15
to ima...@googlegroups.com
Hi Leandro,

Which page are you using to test? If I test on our Video Suite Inspector I see the tags working fine.

Thanks,
Shawn Busolits
IMA SDK Team
Message has been deleted

Leandro Zanol

unread,
Feb 20, 2015, 11:41:24 AM2/20/15
to ima...@googlegroups.com
Hi Shawn,

Good point!

So that's surely my integration specific mistake, although I've got no idea why AdRules' medias aren't reproducing while others do.

I'll keep trying to track it down and get back to you if needed.

Thanks again, regards!

On Tuesday, January 20, 2015 at 12:02:44 PM UTC-2, Arnaud Leyder wrote:

Ursula Trindler

unread,
Jun 3, 2015, 11:22:32 AM6/3/15
to ima...@googlegroups.com
Hi Shawn

I am trying to integrate Postrolls to our Videos. We are already using PreRolls.
How can I use the sample Tags you provided? Which part of my VAST Tag do I have to integrate. (I'm sorry I am new to this). And is it possible to use a different VAST TAG for the Pre then for the Post Roll?

Thanks.

Shawn Busolits (IMA SDK Team)

unread,
Jun 3, 2015, 12:09:35 PM6/3/15
to ima...@googlegroups.com, trindle...@gmail.com
Hi Ursula,

The test tags we have are just for testing - they will not help you serve your ads as a post-roll. If you just want to test post-rolls, you can grab the post-roll tag here and plug it in instead of your tag. If you would like your tag to serve as a post-roll, you'll need to contact the support person for your ad server and ask them how to configure that.

Thanks,
Shawn Busolits
IMA SDK Team 

Ursula Trindler

unread,
Jun 4, 2015, 8:20:00 AM6/4/15
to ima...@googlegroups.com, trindle...@gmail.com
Thank you

Vineet kamath

unread,
Mar 3, 2016, 2:34:09 AM3/3/16
to Interactive Media Ads SDK
Hi Shawn, 

Could you please send me some examples to insert mid rolls in videoview. I and find samples to insert mid rolls in my project.

Vu Chau (IMA SDK Team)

unread,
Mar 9, 2016, 2:24:47 PM3/9/16
to Interactive Media Ads SDK
Hi Vineet,

For VMAP samples that include midrolls, see this sample list.  For how to implement midrolls, check out DFP ad rules.

Vu Chau
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages