Post-roll plays even if you set playAdsAfterTime to a value greater than the total playback time of the video.

104 views
Skip to first unread message

pineapplevine1

unread,
Dec 15, 2022, 12:47:41 AM12/15/22
to Interactive Media Ads SDK
Hello.
For example if your video content has a total duration of 180 seconds and your ad has a pre-roll, mid-roll, and post-roll, 
If you set playAdsAfterTime to a value greater than 180 seconds pre-rolls and mid-rolls will not play but Post-roll is played.
I expected the postroll to not play either, is this behavior correct?
The same issue is reproduced in the google-ima-ios BasicExample sample app.


Spec:
 xcode:14.1
 IMA SDK 3.18.1
 iPad Mini(iPadOS 15.1)

Procedure:
 1. Specify the above Ad URL as the ad tag URL
 2. Set playAdsAfterTime to a value greater than or equal to the total playback time of the video content
 3. Start playing
 4. Pre-roll and Mid-roll are not played, but Post-roll is played.

IMA SDK

unread,
Dec 15, 2022, 10:30:31 AM12/15/22
to pineapp...@gmail.com, ima...@googlegroups.com
Hello,

Thank you for reaching out to us.

With regard to your concern, playAdsAfterTime method will only play ad breaks scheduled after this time (in seconds). This setting is strictly after - for example, setting playAdsAfterTime to 15 will cause IMA to ignore an ad break scheduled to play at 15s. For your use case, since you've set the playAdsAfterTime equal or more than to the total duration of your content, the pre-roll and mid roll will not play. However, the reason why the post-roll plays is because of its behavior wherein it will play after the content video ends.

Regards,
Google Logo
Teejay Wennie
IMA SDK Team
 




 

ref:_00D1U1174p._5004Q2h3G4T:ref

pineapplevine1

unread,
Dec 23, 2022, 12:53:35 AM12/23/22
to Interactive Media Ads SDK
Hello.
Thank you for your reply.
The following message was written in your reply.

* For your use case, since you've set the playAdsAfterTime equal or more than to the total duration of your content, the pre-roll and mid roll will not play.
  However, the reason why the post-roll plays is because of its behavior wherein it will play after the content video ends.)

Even if you set a value greater than the end time of the video content in the playAdsAfterTime parameter, the Post-roll will be played.
Does this mean that the post-roll is not affected by playAdsAfterTime?
Does the Post-roll always play no matter what parameters I set in playAdsAfterTime?

2022年12月16日金曜日 0:30:31 UTC+9 imasdk:

IMA SDK

unread,
Dec 27, 2022, 3:09:26 AM12/27/22
to pineapp...@gmail.com, ima...@googlegroups.com

Hello,

 

Michael here and I work along with Teejay.

 

Yes that is correct, if you prefer to use the playAdsAfterTime, even if you set it at the end of the content, the post roll ad will play since that is the behavior of the post roll ad (to play after content completes). What I can suggest to you if you really do not want to play all the ads event the post roll ad, is to call also the discardAdBreak method. In that sense, since the pre roll and mid roll would not play already because of the playAdsAfterTime set to end of the content, if you call discardAdBreak on that time, it will ignore the next scheduled ad break which is the post roll. Otherwise, you may also call IMAAdsManager destroy method and IMAAdsLoader contentComplete for alternate solution.

 

Let us know should you have further questions.

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2h3G4T:ref
Reply all
Reply to author
Forward
0 new messages