admob_nextgen 1.2.1
admob_nextgen: ^1.2.1 copied to clipboard
A Flutter plugin for Android Google Mobile Ads Next-Gen SDK with consent, banners, fullscreen ads, preloaders, and customizable native templates.
1.2.1 - 2026-06-15 #
Changed #
- Bumped the package version to
1.2.1for the pub.dev release. - Bundles Google Mobile Ads Next-Gen Android SDK
1.2.1. - Updated README installation snippets to
^1.2.1.
Fixed #
- Includes Google's SDK
1.2.1fix for WebView API for Ads signal collection with supported ad tags (AdSense code, Google Publisher Tag, IMA for HTML5). The upstream issue was caused by WebKit methods being incorrectly called on a background thread. - Includes Google's SDK
1.2.0fix for thejava.lang.NullPointerExceptioninandroidx.webkit.internal.PrefetchOperationCallbackAdapter, resolving the previously reported public Google stack trace issue and closing the package's open tracking note for that crash. - Includes Google's SDK
1.1.1fix for rewarded ad pods freezing during transitions and preventing users from closing the ad.
Upstream SDK Notes #
- Google added the private-beta
SwipeableInterstitialAdformat. - Google added
IconAd.load(IconAdRequest, int, IconAdLoadCallback)for apps requesting multiple Icon ads, and deprecated the olderIconAd.load(IconAdRequest, int, AdLoadCallback<IconAd>)overload. - Google added
RequestConfiguration.getAgeRestrictedTreatment()for mediation adapters and changeduntrackView()to accept non-nullView.
0.1.0 #
- Marked the package stable.
- Added README guidance to wrap startup consent calls in
try/catchso an offline consent failure cannot leave the app stuck on the splash screen. - Documented that Google Mobile Ads Next-Gen SDK mediation adapters are not currently supported and can cause duplicate GMS class errors.
0.1.0-beta.5 #
- Added Google-compatible
AppStateEventNotifierforeground/background notifications for App Open ad flows using Android's process lifecycle. - Updated the example App Open flow to start, subscribe to, cancel, and stop
AppStateEventNotifierinstead of relying on Flutter activity lifecycle events. - Hardened App Open and Interstitial lifecycle routing so terminal events always consume and release ads, including when no listener is attached or a listener throws.
- Prevented duplicate show requests for the same App Open or Interstitial ad.
- Detached native full-screen event callbacks whenever App Open or Interstitial ads are removed.
- Added migration documentation for moving from
google_mobile_adsload and full-screen callbacks to Future-first loading and instance listeners. - Added Dart and Android regression tests for app-state notifications and fullscreen ad lifecycle behavior.
0.1.0-beta.4 #
- Fixed Native Validator errors for banner and small native ad templates by registering them without hidden undersized media views.
- Fixed false Native Validator media-size errors for large native ads by registering the media view after Android completes its first layout pass.
- Prevented delayed large native ad registration after the platform view has been disposed.
0.1.0-beta.3 #
- Fixed Linux/pub.dev analysis failures caused by case-sensitive Dart source paths.
- Renamed interstitial and rewarded interstitial source directories to lowercase Dart file convention paths.
- Updated package exports and imports for the normalized paths.
- Improved pub.dev README preview with banner and native ad screenshots.
- Consolidated the example app into
example/lib/main.dartso pub.dev shows the full example code. - Excluded generated dartdoc output from publish archives.
0.1.0-beta.2 #
- Updated README.
- Added screenshots for pub.dev package page.
0.1.0-beta.1 #
Initial beta release.
- Android Google Mobile Ads Next-Gen SDK initialization.
- UMP consent helpers.
- Banner, interstitial, rewarded, rewarded interstitial, and app open ads.
- Interstitial and rewarded interstitial preloaders.
- Standard native ads with three prebuilt templates: banner, small, and large.
- Optional native template styling for card color, CTA button, title, description, and ad badge.
