flutter_next_gen_ads library

Flutter wrapper around the Google Mobile Ads (GMA) Next-Gen SDK 1.0+.

Android only. For iOS, combine this package with google_mobile_ads.

Provides idiomatic Dart access to:

Classes

AdError
Information about why an ad failed to load or show.
AdRequest
Targeting parameters attached to a single ad request.
AdSize
Logical banner size sent across the platform channel.
AppOpenAd
Full-screen ad shown when the user opens (or returns to) the app.
AppOpenAdListener
Lifecycle callbacks fired by an AppOpenAd.
BannerAdListener
Lifecycle callbacks fired by a BannerAdView.
BannerAdView
Widget that hosts a GMA Next-Gen banner ad inside the Flutter view tree.
InitializationStatus
Result of MobileAds.initialize.
InterstitialAd
A full-screen interstitial ad.
InterstitialAdListener
Lifecycle callbacks fired by an InterstitialAd.
InterstitialAdPreloader
Pool-based preloader for InterstitialAds — the GMA Next-Gen SDK loads ads ahead of time so poll returns instantly.
MobileAds
Entry point for the GMA Next-Gen SDK.
RequestConfiguration
Global configuration applied to every ad request from the SDK.
RewardedInterstitialAd
A rewarded interstitial ad. Like an interstitial, but the user earns a reward when watching to completion.
RewardedInterstitialAdListener
Lifecycle callbacks fired by a RewardedInterstitialAd.
RewardedInterstitialAdPreloader
Pool-based preloader for RewardedInterstitialAds. Same shape as InterstitialAdPreloader — see its docs for usage.
RewardItem
Reward granted to a user after watching a rewarded ad.

Enums

MaxAdContentRating
Maximum content rating allowed by the publisher.
PublisherPrivacyPersonalizationState
Publisher-level personalization toggle (typically used when implementing "Do not sell my data" controls).
TagForChildDirectedTreatment
COPPA / child-directed treatment.
TagForUnderAgeOfConsent
EEA under-age-of-consent treatment.

Extensions

MobileAdsRequestConfiguration on Object
Extension exposing setRequestConfiguration on the public MobileAds API. Kept here so mobile_ads.dart stays focused on init/version.

Exceptions / Errors

AdLoadException
Thrown by XxxAd.load(...) when the SDK reports a load failure.