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 APIs
Unlock 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 Removals
Version 25.0.0 is a major version with breaking changes that primarily impact mediation adapters and custom events.
API Removals:
The VersionInfo class in the com.google.android.gms.ads.mediation package has been removed. Use com.google.android.gms.ads.VersionInfo instead.
The deprecated getConfiguration() method in the RtbSignalData class has been removed. Developers should migrate to using getConfigurations() instead.
The deprecated onFailure(String) and onAdFailedToShow(String) methods have been removed from the following callback classes:
SignalCallbacks
MediationAdLoadCallback
MediationInterstitialAdCallback
MediationRewardedAdCallbackThe replacement methods are onFailure(AdError) and onAdFailedToShow(AdError).
The NativeAdViewHolder class has been removed from the com.google.android.gms.ads.nativead package.
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 Reminder
Per the deprecation schedule , the release of version 25.0.0 means that:
Android Google Mobile Ads SDK versions 23.0.0 - 23.6.0 are officially deprecated.
Android versions 22.0.0 - 22.6.0 will sunset on June 30, 2026.
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