ALL_ADS_COMPLETED with nonlinear ads?

213 views
Skip to first unread message

Nicky Gerritsen

unread,
Sep 25, 2015, 8:22:18 AM9/25/15
to Interactive Media Ads SDK
When having a nonlinear ad, the HTML5 SDK never sends an ALL_ADS_COMPLETED event it seems.

This means I cannot know if there will be a postroll as soon as a nonlinear ad is there and thus the user must wait for some timeout to happen at the end of a video before loading another one.

Is it somehow possible to fix this?

I could not find an example with both a nonlinear ad and postroll btw, so I can not really test that either...

Tyler Sidell (IMA SDK Team)

unread,
Sep 25, 2015, 3:14:12 PM9/25/15
to Interactive Media Ads SDK
Hi Nicky,

An ALL_ADS_COMPLETED event does not get fired for a nonlinear because they never really finish nor "complete".  The interaction between the user and the nonlinear is that they would close it out at any moment thus this type of ad doesn't fire this particular event.

If you're waiting to hear the ALL_ADS_COMPLETED event to be fired, it would have to fire after the post-roll itself.  Playing post-roll isn't dependent on listening to the last ad or ALL_ADS_COMPLETED but in fact on when the content finishes.  As outlined in our Ad Rules section, we provide a code snippet that triggers a post-roll by letting the SDK know that the content, not the ad, has completed.

Thanks,
Tyler Sidell
IMA SDK Team

Greg Kindel

unread,
Feb 23, 2017, 1:28:13 PM2/23/17
to Interactive Media Ads SDK
Am in the same boat, and unfortunately I don't think you managed to answer the question.  

The problem: I have no idea if a postroll was scheduled that I should wait for. Is there an API I can check?

What:    Nonlinear overlay ad served (using IMA provided sample), no other ads.
When:   Main content has ended, and I have called contentComplete()
Expected:   ALL_ADS_COMPLETED to fire when after any postrolls play, and I advance the playlist.
Actual: Nothing fires, I never advance the playlist.

My workaround:  If the current ad is nonlinear the main content ends, I just destroy the ad manager and skip whatever post-rolls that might have been scheduled. 

Looked through the example code but it does not appear to cover this case.  Is the answer that the SDK just does not support both non-linear and post-roll ads at the same time?  I am still digging around to see if there is a hook into the VMAP schedule.  Flash SDK has same problem, for what that's worth.

Cheers,
Greg

Greg Kindel

unread,
Feb 23, 2017, 1:53:48 PM2/23/17
to Interactive Media Ads SDK
Found this videojs-ima ticket: "Linear preroll + nonlinear overlay + linear postroll, example"

Which has a post by Google's Shawn Busolits which links to a IMA SDK footnote saying that VMAP overlays are not actually supported.

I'll keep my workaround for now.  It will cover the sample non-linear ad provided on this site, which is not VMAP.

Chris Feldman (IMA SDK Team)

unread,
Feb 23, 2017, 4:28:27 PM2/23/17
to Interactive Media Ads SDK
Hi Greg,

We're glad you found a workaround that's acceptable for you. Please let us know if you have any further questions.

Regards,
Chris Feldman
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages