flutter_ads_manager 0.0.9
flutter_ads_manager: ^0.0.9 copied to clipboard
Drop-in AdMob ads for Flutter: banner, interstitial, rewarded, rewarded interstitial and app open ads with auto-reload, retry, and built-in GDPR consent.
0.0.9 #
- Fix:
AdBannerWidgetnow retries with the same capped exponential backoff as the full-screen ad controllers when a banner fails to load (e.g. no fill, transient network error), instead of giving up silently and staying blank forever.
0.0.8 #
- Add
AdsManager.instance.openAdInspector()— opens Google's on-device Ad Inspector for debugging ad requests/mediation, without your app needing to depend ongoogle_mobile_adsdirectly (its ownopenAdInspectorAPI references a type,AdInspectorError, that package doesn't actually export). Returnsnullon success or an error message string on failure.
0.0.7 #
- Upgrade
google_mobile_adsto^9.1.0. - Fix a
deprecated_member_usestatic analysis warning oncompactAdaptivebanners (no behavior change — the underlying Google API this relies on is deprecated in favor of a taller size with no compact replacement, so the call is kept but properly isolated/suppressed instead of leaking into your app's own analysis).
0.0.6 #
- Fix: the device screen could time out and sleep while a full-screen ad was still loading (loading the ad SDK's WebView can take a few seconds), dismissing the ad before the user ever saw it.
AdsManagernow keeps the screen awake (viawakelock_plus, no extra permissions or native setup needed) from the moment a full-screen ad is triggered until it's dismissed.
0.0.5 #
- Add
BannerAdVariant.compactAdaptive— full device-width banner using Google's compact "current orientation anchored" adaptive size (~50-90dp tall), as opposed to the existingadaptivevariant which uses the taller "Large" anchored adaptive size (~90-100dp tall). UsecompactAdaptivefor an edge-to-edge footer banner that shouldn't take up much vertical space; useadaptivewhen you want the larger, more prominent size.
0.0.4 #
- Shorten the
pubspec.yamldescription to fit pub.flutter-io.cn's 60–180 character limit (was too long to be indexed properly by search engines).
0.0.3 #
- Add
AdsManager.instance.keywords— a settableList<String>sent with every ad request (banner, interstitial, rewarded, rewarded interstitial, app open) for better ad targeting. Set it viainit(keywords: ...)or reassign it any time content changes.
0.0.2 #
- Fix:
show()onInterstitialAdController,RewardedAdController,RewardedInterstitialAdControllerandAppOpenAdControllernow resolves only after the ad has actually been dismissed (or failed to show), instead of right after the platform call to launch it was issued. Previously,await controller.show(...)could return while the ad was still on screen, so code that inspected state set insideonUserEarnedReward(or that expected the app to have "come back" from the ad) right after theawaitwould see stale results.
0.0.1 #
Initial release.
AdsManagersingleton: oneinit()call wires up the Google Mobile Ads SDK, GDPR/UMP consent, and optional preloading.- Banner ads via
AdBannerWidget: standard, adaptive, large banner, and medium rectangle variants. InterstitialAdController,RewardedAdController,RewardedInterstitialAdController,AppOpenAdController— self-reloading, with capped retry/backoff on failed loads.CountedInterstitialControllerfor "show an interstitial every Nth event" patterns.ConsentManagerwrapping Google's UMP SDK, including the privacy-options entry point.TestAdUnitIds— Google's official test ad unit IDs, used automatically in debug builds.