Releases: googleads/googleads-mobile-flutter
Releases · googleads/googleads-mobile-flutter
v2.0.0: Update case of ssv variables to match objc style guidelines. (#609)
- Updates GMA Android dependency to 21.0.0 and iOS to 9.6.0
- Removes
credentials
fromAdapterResponseInfo
, which is replaced withadUnitMapping
. - Removes
serverSideVerificationOptions
fromRewardedAd.load()
andRewardedInterstitialAd.load()
, replacing them with setters
RewardedAd.setServerSideVerificationOptions()
andRewardedInterstitialAd.setServerSideVerificationOptions()
. This lets you
update the ssv after the ad is loaded. - Removes static
testAdUnitId
parameters. See the Admob and
AdManager documentation for up to date test ad units. - Removes
NativeAdListener.onNativeAdClicked
. You should useonAdClicked
instead, which present on all ad listeners. - Removes
AdRequest.location
v1.3.0
- Adds support for programmatically opening the debug options menu using
MobileAds.openDebugMenu(String adUnitId)
- Adds support for Ad inspector APIs. See the AdMob and Ad Manager sites for integration guides.
- Adds support for User Messaging Platform. See the AdMob and Ad Manager sites for integration guides.
v1.2.0
1.2.0
- Set new minimum height for
FluidAdWidget
.
This is required after Flutter v2.11.0-0.1.pre because Android platform views
that have no size don't load. - Update GMA Android dependency to 20.6.0 and iOS to 8.13.0.
- Deprecate
AdapterResponseInfo.credentials
in favor ofadUnitMapping
- Deprecates
LocationParams
inAdRequest
andAdManagerAdRequest
.
v1.1.0
- Adds support for Rewarded Interstitial (beta) ad format.
- Adds support for
onAdClicked
events to all ad formats.NativeAdListener.onNativeAdClicked
is now deprecated.FullScreenContentCallback
andAdWithViewListeners
now have anonAdClicked
event.
v1.0.0
-
Mediation is now supported in beta.
- There are new APIs to support passing network extras to mediation adapters:
- MediationNetworkExtrasProvider on Android and FLTMediationNetworkExtrasProvider on iOS.
- See the mediation example app README for more details on how to use these APIs.
- There are new APIs to support passing network extras to mediation adapters:
-
Fix for Android 12 issue #330.
- This will break compilation on android if you do not already set
compileSdkVersion
to31
, or override the WorkManager dependency to < 2.7.0:dependencies { implementation('androidx.work:work-runtime') { version { strictly '2.6.0' } } }
- This will break compilation on android if you do not already set
-
Fixes issue #404.
- Adds a new dart class,
AppStateEventNotifier
. You should subscribe toAppStateEventNotifier.appStateStream
instead of usingWidgetsBindingObserver
to listen to app foreground/background events. - See the app open example app for a reference
on how to use the new API.
- Adds a new dart class,
-
Adds a new parameter
extras
toAdRequest
andAdManagerAdRequest
. -
The development guides in the README have been migrated to the AdMob and Ad Manager dev sites.
v0.13.6
- Partial fix for #265.
- The partial fix allows you to load ads from a cached flutter engine in the add to app scenario,
but it only works the first time the engine is attached to an activity. - Support for reusing the engine in another activity after the first one is destroyed is blocked
by this Flutter issue which affects all platform views: flutter/flutter#88880.
- The partial fix allows you to load ads from a cached flutter engine in the add to app scenario,
- Adds support for getRequestConfiguration API
- Adds support for Fluid Ad Size (Ad Manager only)
- Fluid ads dynamically adjust their height based on their width. To help display them we've added a new
ad container,FluidAdManagerBannerAd
, and a new widgetFluidAdWidget
. - You can see the fluid_example.dart for a reference of how to load and display a fluid ad.
- Android API reference
- iOS API reference
- Fluid ads dynamically adjust their height based on their width. To help display them we've added a new
- Adds
AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize()
to support getting anAnchoredAdaptiveBannerAdSize
in the current orientation.- Previously the user had to specify an orientation (portrait / landscape) to create an AnchoredAdaptiveBannerAdSize. It has been made optional with this version. SDK will determine the current orientation of the device and return an appropriate AdSize.
- More information on anchored adaptive banners can be found here:
- Adds support for inline adaptive banner ads.
- Inline adaptive banner ads are meant to be used in scrollable content. They are of variable height and can be as tall as the device screen.
They differ from Fluid ads in that they only resize once when the ad is loaded.
You can see the inline_adaptive_example.dart for a reference of how to load and display
inline adaptive banners. - More information on inline adaptive banners can be found here:
- Inline adaptive banner ads are meant to be used in scrollable content. They are of variable height and can be as tall as the device screen.
- Fix for #369
- Fixes setting the app volume in android (doesn't affect iOS).
- Adds support for setting location in
AdRequest
andAdManagerAdRequest
.- Both
AdRequest
andAdManagerAdRequest
have a new param,location
. - Location data is not used to target Google Ads, but may be used by 3rd party ad networks.
- See other packages for getting the location. For example, https://pub.dev/packages/location.
- Both
- Adds
publisherProvidedId
toAdManagerAdRequest
to support publisher provided ids.
v0.13.5
v0.13.4
- Adds support for muting and setting the volume level of the app.
- Visit the following links for more information:
- Adds support for setting immersive mode for Rewarded and Interstitial Ads in Android.
- Visit the following links for more information:
- Adds support for disableSDKCrashReporting in iOS; disableMediationInitialization and getVersionString in both the platforms.
- https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#-disablesdkcrashreporting
- iOS (disableMediationInitialization): https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#-disablemediationinitialization
- Android (disableMediationAdapterInitialization): https://developers.google.com/android/reference/com/google/android/gms/ads/MobileAds#public-static-void-disablemediationadapterinitialization-context-context
- https://developers.google.com/android/reference/com/google/android/gms/ads/MobileAds#getVersionString()