RE: [ima-sdk] How to request one more ad when the video is finished and ready to play a second time?

275 views
Skip to first unread message
Message has been deleted

IMA SDK

unread,
Aug 22, 2022, 6:32:06 AM8/22/22
to cp.wa...@gmail.com, ima...@googlegroups.com

Hello Ping,

 

Michael here from IMA SDK Team. Thank you for reaching out to us.

 

Would you be able to elaborate more on your concern? On what SDK platform (refer here) you are encountering the issue (include its SDK version)? Is there any specific device affected by the issue? Can you provide any sample app where the issue is reproducible?

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2dmBwI:ref

C.P Wang

unread,
Aug 23, 2022, 1:55:59 AM8/23/22
to IMA SDK, ima...@googlegroups.com
Hi Michael,

Nice to hear from you!

This is a looped video and the advertisement is set to pre-roll. After the first playback of the video is completed, the second and third loops cannot call the advertisement again. We want it to call a pre-roll ad in every loop. 

If there's any updates, please let us know!

Thanks,
CP

IMA SDK

unread,
Aug 23, 2022, 11:31:19 PM8/23/22
to cp.wa...@gmail.com, ima...@googlegroups.com

Hello CP,

 

Thank you for responding back to us.

 

Please be informed that cuepoints of the Ad is pre-configured in your ad tag url. If the url has only pre-roll in it, then IMA SDK will only request and play the ad at the start of the video content even if the video content itself is in a looped phase. Should you want to play ads in mid point or after the video completes, you may want to ask your ad provider for something with mid-roll and post-roll ads content. You may check our sample tags here.

 

On the other hand, should you really want to make new ad request at the middle of the content, you have to ensure calling adsLoader.destroy and adsManager.destroy methods before calling new adsRequest. More information can be found on the lifecycle of the SDK.

Regards,

C.P Wang

unread,
Aug 25, 2022, 12:50:52 AM8/25/22
to Interactive Media Ads SDK
Hi Michael,

Got it, and there's one more question when the player consoles the 1009 error or others, can we use an event listener to request the ad again?

Many thanks!

IMA SDK

unread,
Aug 25, 2022, 6:43:19 AM8/25/22
to cp.wa...@gmail.com, ima...@googlegroups.com

Hello CP,

 

Thank you for your response.

 

I believe that should work if you put your own logic to your code that when it returns the error, it will go back to the function of requesting ads. However, it may disrupt the flow of your app if it keeps returning an 1009 error. We suggest to follow the SDK lifecycle.

Regards,

Reply all
Reply to author
Forward
0 new messages