admob_flutter_plus 0.1.1 copy "admob_flutter_plus: ^0.1.1" to clipboard
admob_flutter_plus: ^0.1.1 copied to clipboard

PlatformAndroid

Community Flutter plugin for Google Mobile Ads Next-Gen SDK (Android): banners, interstitials, rewarded, native templates, preloaders, UMP, app open.

Changelog #

All notable changes to this project are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.1 #

Fixed #

  • README screenshots on pub.dev: use absolute GitHub raw image URLs and a fixed width for banner/native device screenshots so images render correctly and take less vertical space.

0.1.0 #

Initial release. Android-only, built on the Google Mobile Ads Next-Gen SDK (ads-mobile-sdk:1.2.1).

Added #

  • Core: MobileAds.initialize, getVersion, openAdInspector, setRequestConfiguration, AdRequest, AdError types, and an adId-based callback channel.
  • Consent: UMP ConsentInformation and ConsentForm bridge.
  • App state: AppStateEventNotifier backed by ProcessLifecycleOwner.
  • Banner ads: BannerAdView, BannerAdController (refresh()), full AdSize surface. AdSize.anchored() maps to getLargeAnchoredAdaptiveBannerAdSize.
  • Collapsible banner support via AdRequest.extras.
  • Interstitial, rewarded, rewarded interstitial, and app open ads with a Future-first load API and auto-consuming full-screen lifecycle.
  • Preloaders for interstitial, rewarded, and rewarded interstitial ads (InterstitialAdPreloader, RewardedAdPreloader, RewardedInterstitialAdPreloader) — the formats documented by Google's Next-Gen preloading guides.
  • Native ads with three prebuilt templates (banner, small, large), styling, and Native Validator media deferral for the large template.
  • Native ads can use custom XML templates from Flutter assets via NativeCustomAdView (android:tag binding). Throws NativeTemplateException when the asset is missing or required tags are absent. Optional asset tags include advertiser, price, store, stars, and media.
  • Native ad NativeAdViewStyle.fontFamily (optional). When omitted, template widgets inherit the host app font from ThemeData / DefaultTextStyle.
  • Full example app exercising every ad type with Google test ad units.
  • Unit tests for AdSize, banner retry policy, request/config serialization.

Fixed #

  • Banner PlatformView dispose races (safe post-dispose callbacks) that could crash the host app when leaving a screen that still had banners loading.
  • Example app: replaced TabBarView with single-section navigation so AdMob PlatformViews are fully disposed before another section mounts.
  • Custom asset templates no longer call Android LayoutInflater on a raw XmlPullParser (which crashed with XmlPullAttributes cannot be cast to XmlBlock$Parser). Templates are inflated programmatically from the asset XML instead.
1
likes
160
points
251
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Community Flutter plugin for Google Mobile Ads Next-Gen SDK (Android): banners, interstitials, rewarded, native templates, preloaders, UMP, app open.

Repository (GitHub)
View/report issues
Contributing

Topics

#ads #admob #google-mobile-ads #android

License

MIT (license)

Dependencies

flutter

More

Packages that depend on admob_flutter_plus

Packages that implement admob_flutter_plus