![]() |
Mobile Ads SDK Team |
Hi,
Yes, you are correct. While using AdSize.getCurrentOrientationInlineAdaptiveBannerAdSize() with full screen width will likely give you the best performance for AdMob ads within an inline adaptive banner, limiting the maximum height with AdSize.getInlineAdaptiveBannerAdSize(int width, int maxHeight) when using mediation with other networks is to ensure compatibility and prevent potential issues with ad rendering across different ad providers.
I hope this helps! Let me know if you have any follow-up questions.
Hi,
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. Also refer to Serve reservations in adaptive banners help center article for more information.