We'll post in this thread every time a new version of the Google Mobile Ads SDK for Android is released. If you wish to receive these updates by e-mail, click the Topic Options arrow at the top of this thread and click E-mail updates to me.
getVideoController()
, setVideoOptions()
, and getVideoOptions()
methods to the PublisherAdView
class.AdChoicesView
class.getAdChoicesContent()
and setAdChoicesContent()
methods to theNativeAdMapper
class.InitializableMediationRewardedVideoAdAdapter
interface for rewarded video mediation adapters that want to opt in to early initialization before an ad request is made.onAdClicked()
and onAdImpression()
methods to the AdListener
class. These methods are only invoked for native app install and native content ads.getInAppPurchaseListener()
and setInAppPurchaseListener()
methods from the AdView
, InterstitialAd
, and NativeExpressAdView
classes. Also removed related in-app purchase classes.OnVideoMute()
, OnVideoPause()
, OnVideoPlay()
and OnVideoStart()
methods to the VideoController.VideoLifecycleCallbacks
class.setImmersiveMode()
method to the PublisherInterstitialAd
and RewardedVideoAd
classes.OnPublisherAdViewLoadedListener
interface, PublisherAdViewOptions
class, andPublisherAdViewOptions.Builder
class for use with AdLoader
for native-plus-banner requests.OnImmersiveModeUpdatedListener
interface that mediation adapters can implement to be informed of immersive mode updates.getMediationAdapterClassName()
method to the RewardedVideoAd
class.loadAds()
method to the AdLoader
class, which allows apps to load multiple unique ads in a single request.build.gradle
must also be updated to specify a compileSdkVersion
of at least 26
(Android O). This does not change the way your app runs. You will not be required to updatetargetSdkVersion
.Adapter
class.firebase-analytics
along with version 17.2.0
of any of the ads library (e.g., com.google.android.gms:play-services-ads:17.2.0
) must use com.google.firebase:firebase-analytics:16.3.0
.com.google.android.gms:play-services-measurement:17.0.0
com.google.android.gms:play-services-measurement-sdk:17.0.0
MobileAds.initialize(Context, OnInitializationCompleteListener)
, that notifies you when the Google Mobile Ads SDK and all configured mediation adapters have completed initialization.MobileAds.getInitializationStatus()
to provide initialization status of all ad networks configured for your app.MobileAds.getRequestConfiguration()
. Targeting parameters set on this configuration object are used for all ad requests.NativeAdOptions.Builder.setMediaAspectRatio()
method to request a specific aspect ratio for a native ad's media asset. This option takes precedence over the now deprecated setImageOrientation()
method.MediaView.setImageScaleType()
.UnifiedNativeAd.getMediaContent()
. Publishers who only load images via URLs can now get the ad’s media content, supply an image to it, and call MediaView.setMediaContent()
to populate image data through MediaView
for non-video ads.UnifiedNativeAdMapper.setMediaContentAspectRatio()
.play-services-measurement
and play-services-measurement-sdk
. Apps no longer need to add these dependencies explicitly.MobileAds.initialize(Context, OnInitializationCompleteListener)
.onAdClicked()
callback to FullScreenContentCallback
.onAdClicked()
callback in the AdListener
class for native ad format.