HTML5 SDK full-slot ad versus linear ad (pre-roll ...)

168 views
Skip to first unread message

Arnaud Leyder

unread,
Nov 30, 2015, 6:52:40 AM11/30/15
to Interactive Media Ads SDK
Hi, 

I have not been able to find an answer for this question on the forum or docs.
I need to be able to distinguish between a full-slot ad (which I make to AdSense with adsRequest.forceNonLinearFullSlot = true) and a regular pre-roll ad. Both are responding true for ad.isLinear() but I have a different UI for linear ads that are not full-slot (following the recent announcement about changes in full-slot ad).
So my question is how to differentiate a full-slot ad response versus a regular linear ad (pre-roll).

Thanks
Arnaud

Tyler Sidell (IMA SDK Team)

unread,
Nov 30, 2015, 4:13:13 PM11/30/15
to Interactive Media Ads SDK
Hi Arnaud,

It is correct that ad.isLinear() should be returning true for full-slot ads because full-slot ads are rendered as linear as well and interrupt the content playback. The following blog post may be of interest as in the upcoming weeks we will be changing the way that the SDK handles non-linear and full slot ads for AdSense/Ad Exchange.

For testing purposes, you can force full-slot ads to show.  As outlined in our documentation:
  • In your AdsRequest, set your ViewModes to FULLSCREEN.
  • In your ad tag, add the parameter overlay=0.
I'd suggest calling getContentType after the VAST has already been returned and parsed.  Make sure that the LOADED event has fired already at which point the ad's metadata becomes available.  This should return the mimeType of the advertisement.  Depending on your creative setup, you may be able to determine which type of ad is full-slot vs prerolls based on this information.

Thanks,
Tyler Sidell
IMA SDK Team

tulika bose

unread,
Mar 14, 2016, 9:11:28 AM3/14/16
to Interactive Media Ads SDK
Hi Tylor,

I believe can control through vad_type parameter, serving of non-linear or linear ads? Right

Thanks,
Tulika
Reply all
Reply to author
Forward
0 new messages