Dear AdMob Support Team,
I am reaching out to report an unexpected behavior I’ve encountered when implementing collapsible banner ads in my application. Below are the details:
Issue Description:
When displaying a collapsible banner ad, the ad appears in front of a modal view presented on the screen.
Expected Behavior:
I believe the ad should remain positioned within the root view of the application, beneath the modal view.
Additional Notes:
Requests:
Could you please confirm if this behavior is expected or provide guidance on how to ensure collapsible banners display as intended within the root view only?
Thank you for your assistance.
Best regards,
K Shota
Hi Shota,
Thank you for contacting the Mobile Ads SDK Support team.
Could you kindly provide the sample project for further investigation:
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 via reply to author option or by performing the following steps:
1. Navigate to
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.
Mobile Ads SDK Team |
Hi Team,
Thank you for your prompt response.
I have prepared the sample project as requested and successfully uploaded it via the form you provided. Below are the details:
Please let me know if you encounter any issues accessing the file or require further information.
Thank you for your continued support.
Best regards,
K Shota
Hi Team,
Thank you for your response and for pointing out the best practices.
I understand the recommendation to avoid placing collapsible banners on non-static screens, as it can lead to unwanted clicks. However, in my case, the collapsible banner is displayed on a static screen, specifically within the root view of the application.
The issue occurs when a modal view is presented on top of this static screen. The collapsible banner appears in front of the modal, rather than staying positioned within the root view, as expected.
To address this issue, I have tried a workaround where I create a separate UIWindow for displaying the modal view, while keeping the collapsible banner in the original UIWindow. With this approach, the banner no longer appears in front of the modal view.
Could you clarify if this behavior (before implementing the workaround) is expected? Additionally, could you confirm if the workaround I implemented is an appropriate and recommended solution according to AdMob's best practices?
I would appreciate your guidance to ensure the implementation aligns with the guidelines and does not lead to any unintended issues.
Thank you for your continued assistance.
Best regards,
K Shota
Hi Team,
Thank you for the update. I appreciate you escalating this issue to your wider team.
I will await further updates from your teammate. Please don’t hesitate to reach out if any additional information or clarification is required on my end.
Thank you for your continued support, and I look forward to hearing from you soon.
Best regards,
K Shota
|
Hi Team,
Thank you for your continued support. I have tested the suggested workaround.
By removing the collapsible banner from the view hierarchy, I was able to confirm that the issue during banner expansion was resolved. However, since this approach requires regenerating the view, I would like to explore alternative solutions if possible.
For example, is there a way to manually reload a standard banner or any other approach to avoid removing the expanded banner while addressing the issue?
I would greatly appreciate your guidance. Thank you again for your continued support.
Best regards,
K Shota