[iOS] IMA SDK AdDisplayContainer safe area layout

207 views
Skip to first unread message

Андрей Жуков

unread,
Mar 3, 2022, 4:33:51 AM3/3/22
to Interactive Media Ads SDK
Hello! I'm experiencing troubles implementing IMA SDK For my iOS App.
My player layout is all about safeArea to make user friendly experience. But I try to integrate IMA SDK And it doesn't seem to be that user-friendly.

Learn more and ad remaining time count are off the safe Area and cut off by screen edges. I tried a lot of stuff to make IMAAdDisplayContainer to layout in safeArea but didn't find any solution. 

My adContainerViewController property is the UIViewController that is pinned safeAreaLayout and it doesn't seem to work aswell.

Please help me move or help find API to remove those `Learn more...` and Ad timer things. 
Would be best if we could find solution to layout those in safeAreaLayoutGuide.

P.S. Screenshot: the screenshot you can see my layout over the IMA SDK ViewController. 
Well the top right and bottom left controls are Learn More and Ad timer that are out of place. 


Screenshot 2022-03-03 at 12.32.37.png

IMA SDK

unread,
Mar 3, 2022, 9:43:53 AM3/3/22
to inbridge...@gmail.com, ima...@googlegroups.com
Hello,

Thank you for reaching out to us.

For us to assist you further, could you kindly share the following details?
  • Sample app reproducing the issue
  • Device used where the issue occurs

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002Xl0WkQAJ&entry.80707362=00096265

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Regards,

Google Logo
Teejay Wennie
IMA SDK Team
 


ref:_00D1U1174p._5004Q2Xl0Wk:ref

Андрей Жуков

unread,
Mar 11, 2022, 6:26:49 AM3/11/22
to Interactive Media Ads SDK
Hi, I fixed the issue myself. I don't know why would you need a sample app for this small question.
If anyone visiting this page wodering how to:

Solution:
When initializing adContainerViewController, for adDisplayContainer property pass the UIViewController that has is layout in safe area already. That will work.

четверг, 3 марта 2022 г. в 17:43:53 UTC+3, imasdk:

IMA SDK

unread,
Mar 11, 2022, 9:54:34 AM3/11/22
to inbridge...@gmail.com, ima...@googlegroups.com
Hello,

Thank you for updating us, and sharing the solution to the community.

Please let us know if you have any other concerns related to IMA SDK, we'll be happy to assist you.
Reply all
Reply to author
Forward
0 new messages