Second IMA ad does not have controls when it should be skippable or have countdown [iOS]

263 views
Skip to first unread message

Andrii Kharchyshyn

unread,
Mar 26, 2019, 9:20:39 AM3/26/19
to Interactive Media Ads SDK

  • Which SDK are you using: iOS SDK v3.9.0 (also reproduces with v3.8.0)
  • What ad tag are you using in your request? 

 
  • Are you able to reproduce this issue using your ad tag in the sample app (AndroidiOS) or the Video Suite Inspector (HTML5Flash)?
Here's link to slightly tweaked "BasicExample" sample project: https://drive.google.com/file/d/1mS5aPs34aT8kMLcbTdNjl8QItWBxMc0P/view?usp=sharing
  • Description:
After the first ad was played, the second ad doesn't have controls displayed. If you switch the two tags, the behaviour doesn't change: the tag that plays first will have controls and the second one will not.

 

Screen Shot 2019-03-26 at 2.44.58 PM.png

Screen Shot 2019-03-26 at 2.44.42 PM.png

 

 
 
  • What steps must we take to reproduce your issue?:
 Steps:
  1. Open BasicExample.xcworkspace
  2. Build and run
  3. Press play
  4. First ad plays (with overlay UI)
  5. (Skip it if it has skip button)
  6. Wait 10-20 sec
  7. Second ad starts playing
  8. Note that second ad has no overlay controls

Next, open ViewController.swift

  • Change `static let tag1 =` to `static let tag2 =`
  • Change `static let tag2 =` to `static let tag1 =` (basically switch two add tags ads)
  • Go through steps 1-8, and note that ad that goes first has UI overlay and the second one doesn't

 

ima-sdk-fo...@google.com

unread,
Mar 26, 2019, 3:59:41 PM3/26/19
to ima...@googlegroups.com
Hi Andrii,

Thank you for reaching out to us. We were not able to reproduce the behavior you reported using our iOS BasicExample (see screenshots attached). Given the behavior you described and our findings, it looks like an issue with your IMA implementation. I received an error message while trying to run your sample app (see ad load error screenshot attached). Do you have a sample I can reproduce the issue with?

Regards,
Arnaud Casame
IMA SDK Team
updateTo3.9.0.png
first_tag_with_overlay.png
ad_load_error.png

Andrii Kharchyshyn

unread,
Mar 27, 2019, 12:05:09 PM3/27/19
to Interactive Media Ads SDK
Hi,

Thanks for looking into this issue.
I am still able to reproduce the issue, moreover I found out on which SDK version the issue appeared. It's v3.6.0.


Also I attached two "BasicExample" apps, with which you can experience behavior from videos yourself.

The reproduction steps are the same, you can check them in my previous post.

Thanks!

msa...@jwplayer.com

unread,
Mar 27, 2019, 1:14:38 PM3/27/19
to Interactive Media Ads SDK
All,

I am also looking at an issue along these lines. We are using: 


@ 10seconds which presents a non-skippable ad that shows content, countdown, and Learn more.

AND
@ 61% of our video duration (as seen in the URL this should be skippable)

After 3.6.0, when the IMA SDK is used for 2 mid-rolls the UI elements do not appropriately show the skip button, ad countdown, or Learn more for the mid-roll at 61% (the second ad played).

Additionally, switching the ad tag URLs in our ad schedule would create the same behavior the skippable ad shows its UI but the non-skippable ad shows nothing at 61% of video duration.

It feels like perhaps there is a visibility issue where we use IMA SDK for playback more than one time in a video session.

Cheers,

Mike

ima-sdk-fo...@google.com

unread,
Mar 27, 2019, 5:05:18 PM3/27/19
to ima...@googlegroups.com
Hi there,

I was able to reproduce the behavior you reported using your sample app, the first ad displayed with the ui elements and the second displayed showing no overlays. However, the issue is with your implementation as the adDisplayContainer was released after the first ad finished playing. The way your implementation is requesting ads is causing the overlays to not render. The IMA SDK offers the Ad Rules which is a playlist of ad breaks scheduled at certain times against particular content, the Ad Rules are a better way when it comes to display a list of ads.

Regards,
Arnaud Casame
IMA SDK Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

Andrii Kharchyshyn

unread,
Mar 28, 2019, 11:46:11 AM3/28/19
to Interactive Media Ads SDK
Hi,

Thanks for the response!
I just tried retaining adDisplayContainer, by storing it in property and the issue was still present. So I don't see how this is related to the problem.

ima-sdk-fo...@google.com

unread,
Mar 28, 2019, 4:56:54 PM3/28/19
to ima...@googlegroups.com
Hi,

Your sample is suggesting that you're making ad requests in parallel, but the issue is that you're using one instance of adsManager for both calls. For your implementation to work properly, you need to have 2 adsManagers, 2 adDisplayContainers (1 per request) and not start the adsManagers at the same time.

Regards,
Arnaud Casame
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Karim Mourra

unread,
Apr 5, 2019, 6:25:05 PM4/5/19
to Interactive Media Ads SDK
Hi, 

Thank you for the suggestion. Is it considered good practice to instantiate multiple ad managers ? Are their performance issues ?

ima-sdk-fo...@google.com

unread,
Apr 8, 2019, 2:58:12 PM4/8/19
to ima...@googlegroups.com
Hi,

Instantiating multiple AdsManager at once is not a good practice as it may lead to performance issues but if you wanna request ads in parallel, having multiple AdsManager instances is the safest way to do it.

Regards,
Arnaud Casame
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Reply all
Reply to author
Forward
0 new messages