AdManagerBannerAd class

A banner ad displayed with Google Ad Manager.

This ad can either be overlaid on top of all flutter widgets by passing this to an AdWidget after calling load.

Inheritance
Mixed-in types

Constructors

AdManagerBannerAd({required List<AdSize> sizes, required String adUnitId, required AdManagerBannerAdListener listener, required AdManagerAdRequest request})
Default constructor for AdManagerBannerAd.

Properties

adUnitId → String
Identifies the source of Ads for your application.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
isMounted → bool
Returns true if the ad Id is already mounted in a WidgetAd managed by the instanceManager.
no setterinherited
listener → AdManagerBannerAdListener
A listener for receiving events in the ad lifecycle.
final
request → AdManagerAdRequest
Targeting information used to fetch an Ad.
final
responseInfo ↔ ResponseInfo?
Contains information about the loaded request.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizes → List<AdSize>
Ad sizes supported by this AdManagerBannerAd.
final

Methods

dispose() → Future<void>
Frees the plugin resources associated with this ad.
inherited
getPlatformAdSize() → Future<AdSize?>
Returns the AdSize of the associated platform ad object.
load() → Future<void>
Starts loading this ad.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited