PublisherBannerAd class

A banner ad displayed with DoubleClick for Publishers (DFP).

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

Inheritance

Constructors

PublisherBannerAd({required List<AdSize> sizes, required String adUnitId, required AdListener listener, required PublisherAdRequest request})
Default constructor for PublisherBannerAd.

Properties

adUnitId String
Identifies the source of Ads for your application.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
listener AdListener
Receive callbacks from Ad lifecycle events.
finalinherited
request PublisherAdRequest
Targeting information used to fetch an Ad.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizes List<AdSize>
Ad sizes supported by this PublisherBannerAd.
final

Methods

dispose() Future<void>
Free the plugin resources associated with this ad.
inherited
isLoaded() Future<bool>
Whether this Ad.load has been called for this Ad and AdListener.onAdLoaded callback has been called.
inherited
load() Future<void>
Start 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