Hi,
Thank you for contacting the Mobile Ads SDK support team.
Adaptive banners let you specify the width of an ad to determine the optimal ad size. Adaptive banners also maximize performance by optimizing the ad size for each device. This approach results in opportunities for improved performance. If you want to limit the height of the banner, use the static method AdSize.getInlineAdaptiveBannerAdSize(int width, int maxHeight) .
When implementing adaptive banners in your app, note these points:
- The inline adaptive banner sizes work best when using the full available width. In most cases, this size is the full width of the device screen in use, or the full width of the banner's parent content. You must know the width of the view to place in the ad, the device width, the parent content width, and applicable safe areas.
- You may need to update or create new line items to work with adaptive sizes. Learn more.
Can you check our InlineAdaptiveBannerExample as a reference for your implementation and if you have any follow up questions kindly share us with the sample project with your implementation for further investigation.
You can provide the following details via reply privately to the author option or below link.
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=Mobile+Ads+SDK&entry.460850823=500Ht00001pSkTeIAK&entry.80707362=002996392. 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.
Thanks,
Mobile Ads SDK Team
Feedback
How was our support today?
![]()
![]()
![]()
![]()
[2025-04-14 07:18:41Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01pSkTe:ref" (ADR-00299639)
"W/Ads: Not enough space to show ad. Needs 320x50 dp, but only has 288x495 dp."
I don't think there is any policy concern with your calculations. If just a ad size which you are requesting to load the ads and if it doesn't match the inventory then you might have to face ads not show issue. Make sure to comply with Banner ad guidance to avoid policy related issue.![]() |
Mobile Ads SDK Team |
[2025-04-14 20:57:54Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01pSkTe:ref" (ADR-00299639)