iOS SDK Ads not playing on replay of video

95 views
Skip to first unread message

Matt Propst

unread,
Aug 5, 2014, 3:39:19 PM8/5/14
to ima...@googlegroups.com
Is is possible to get ads to play on a secondary play of a video without reloading the video? I've setup video replay functionality by listening for the end event and seeking to 0 (start).

The issue I'm seeing is that if I start I see a preroll, then once the content begins seek to very near the end.  I see the nearest mid-roll, then the content continues.  At the end my video playback controls seek to the beginning and if I hit play I start from 0 again and playback functions without any ads playing.  This scenario means that some mid rolls are never played.  

Shawn Busolits (IMA SDK Team)

unread,
Aug 5, 2014, 3:46:10 PM8/5/14
to ima...@googlegroups.com
Hey Matt,

In order for this to work, you'll need to let the SDK know that you're replaying your video. Right now the SDK can't differentiate between what you're doing and a user just seeking from the end of the video back to the beginning (in which case you probably wouldn't want to show them ads again). For this to work, when your video is done (the first time) you should call contentComplete on your IMAAdsLoader instance and, after post-rolls (if any), destroy your IMAAdsManager. Then seek back to the beginning of the video and request ads again the same way you did the first time the video was played, with the same AdsLoader and AdsRequest objects you used the first time around. You'll get a new instance of the AdsManager in your adsManagerLoaded delegate method. Give this a shot and let me know if it works.

Thanks,
Shawn Busolits
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages