Version 25.0.0 of the Android Google Mobile Ads SDK is now available. We recommend upgrading as soon as possible to take advantage of the latest features, performance improvements, and API updates. This is a major version update that includes several breaking changes, new functionality for optimizing banner ad sizes, and important dependency updates.
New Large Anchored Adaptive Banner Size APIsUnlock better performance with new banner ad sizes:
To better align with modern mobile devices, we are introducing the Large Adaptive Anchor API (e.g. AdSize.getLargeAnchoredAdaptiveBannerAdSize()). This update focuses solely on the sizing logic within adaptive anchor banners. While individual results may vary, larger ads are designed to increase engagement and revenue potential for publishers. The previous anchored adaptive APIs (e.g. AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize()) are now deprecated in favor of the new large anchored adaptive banner approach.
Old usage (Kotlin):
adView.setAdSize(AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(this, 360))New usage (Kotlin):
adView.setAdSize(AdSize.getLargeAnchoredAdaptiveBannerAdSize(this, 360)) Breaking Changes and RemovalsVersion 25.0.0 is a major version with breaking changes that primarily impact mediation adapters and custom events.
API Removals:
For the full list of changes, please refer to the release notes. We strongly encourage you to review our migration guide to ensure your mobile apps are ready to upgrade.
SDK Deprecation ReminderPer the deprecation schedule, the release of version 25.0.0 means that:
We strongly recommend updating to a supported SDK version to avoid any disruption in ad serving and to benefit from the latest SDK features and fixes.
To comment on this blog post or engage with fellow developers, join the Google Mobile Ads SDK Discord channel and share your thoughts.
- Jason Chiu, Mobile Ads Developer Relations