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. preferredAdChoicesPosition optional preferred display position of the AdChoices icon on AdMob backfill native ads. Has no effect on direct ads, and backfill networks such as AdMob may ignore it per their policy. Defaults to AdropAdChoicesPosition.topRight.

Constructors

AdropNativeAd.new({required String unitId, bool useCustomClick = false, AdropAdChoicesPosition preferredAdChoicesPosition = AdropAdChoicesPosition.topRight, 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
creativeType String
Creative medium of the loaded ad: 'display' or 'video'. Defaults to 'display' before an ad is received.
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
preferredAdChoicesPosition AdropAdChoicesPosition
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