AdropNativeAd class

AdropNativeAd class responsible for requesting native ads.

unitId required Ad unit ID listener optional invoked when a response from load method called back. useCustomClick optional, if true, the ad will use custom click handling.

Constructors

AdropNativeAd.new({required String unitId, bool useCustomClick = false, AdropNativeListener? listener})

Properties

browserTarget BrowserTarget?
Returns an Adrop ad's browser target.
no setter
campaignId String
Returns an Adrop ad's campaign id.
no setter
creativeId String
Returns an Adrop ad's creative id.
no setter
creativeSize CreativeSize
no setter
destinationURL String
Returns an Adrop ad's destination url.
no setter
hashCode int
The hash code for this object.
no setterinherited
isBackfilled bool
Returns true if the ad is a backfill ad.
no setter
isLoaded bool
Returns true if an Adrop ad is loaded.
no setter
listener AdropNativeListener?
final
properties → AdropNativeProperties
Returns an Adrop native ad's properties.
no setter
requestId String
internal requestId for interaction.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
txId String
Returns an Adrop ad's transaction id.
no setter
unitId String
Returns an Adrop ad's unitId.
no setter
useCustomClick bool
final

Methods

load() Future<void>
Requests an ad from Adrop using the Ad unit ID of the Adrop ad.
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