ads library

Classes

The base class for all ads.
AdapterStatus
An immutable snapshot of a mediation adapter's initialization status.
AdListener
A listener for receiving notifications during the lifecycle of an ad.
AdMob
AdMobListener
Ads listener
AdRequest
Targeting info per the AdMob API.
Ads
The Ads class
AdSize
AdSize represents the size of a banner ad.
AdWidget
Displays an Ad as a Flutter widget.
AdWithoutView
An Ad that is overlaid on top of the UI.
AdWithView
Base class for mobile Ad that has an in-line view.
AnchoredAdaptiveBannerAdSize
An AdSize with the given width and a Google-optimized height to create a banner ad.
Implement the Banner Ad
BannerAd
A banner ad.
EventError
Event Error class
InitializationStatus
The status of the SDK initialization.
InterstitialAd
A full-screen interstitial ad for the Google Mobile Ads Plugin.
LoadAdError
Error information about why an ad load operation failed.
MaxAdContentRating
Values for RequestConfiguration.maxAdContentRating.
MobileAds
Class contains logic that applies to the Google Mobile Ads SDK as a whole.
Native
Implement the Native Ad
NativeAd
A NativeAd.
PublisherAdRequest
Targeting info per the Ad Manager API.
PublisherBannerAd
A banner ad displayed with DoubleClick for Publishers (DFP).
PublisherInterstitialAd
A full-screen interstitial ad for use with Ad Manager.
RequestConfiguration
Contains targeting information that can be applied to all ad requests.
RewardedAd
An Ad where a user has the option of interacting with in exchange for in-app rewards.
RewardItem
Credit information about a reward received from a RewardedAd.
ServerSideVerificationOptions
Options for RewardedAd server-side verification callbacks.
SmartBannerAdSize
Ad units that render screen-width banner ads on any screen size across different devices in either Orientation.
TagForChildDirectedTreatment
Values for RequestConfiguration.tagForChildDirectedTreatment.
TagForUnderAgeOfConsent
Values for RequestConfiguration.tagForUnderAgeOfConsent.
VideoAd

Enums

AdapterInitializationState
The initialization state of the mediation adapter.
AdsEvent
The possible events that may occurs working with Ads.

Properties

adEventListeners Set<MobileAdListener>
getter/setter pair
eventErrorListeners Set<AdErrorListener>
getter/setter pair
eventErrors List<EventError>
getter/setter pair

Functions

eventError(Object ex, {AdsEvent? event}) → void
Error Handler for the event listeners.
getEventErrors() List<EventError>

Typedefs

AdErrorListener = void Function(Exception ex)
Signature for a 'AdError' status change callback.
AdsListener = void Function(Ad ad)
The Ads event function signature
MobileAdListener = void Function(AdsEvent event)
Signature for a 'MobileAd' status change callback.
RewardListener = void Function(RewardedAd ad, RewardItem reward)
Signature for a 'AdError' status change callback. Signature for a 'RewardAd' status change callback.
VoidLoadErrorCallback = void Function(Ad ad, LoadAdError error)
Signature for a 'Load Error' callback