AdropNativeAd

Native ad class responsible for requesting native ads.


Public constructors

AdropNativeAd(context: Context, unitId: String)

AdropNativeAd(context: Context, unitId: String)

Requires Context and Ad unit ID


Public functions

fun load()

fun load()

Requests an ad from Adrop using the Ad unit ID of the AdropNativeAd.


Public properties

unitId

val unitId: String

Get Ad unit ID of the AdropNativeAd.

isLoaded

val isLoaded: Boolean

Determine if ad is fully loaded.

listener

var listener: AdropNativeAdListener?

Attach AdropNativeAdListener to this property.

icon

val icon: String

Get the icon image of native ads

cover

val cover: String

Get the cover image of native ads

headline

val headline: String

Get the headline of native ads

body

val body: String

Get the body of native ads

destinationURL

val destinationURL: String

Get the destination url of native ads

advertiserURL

val advertiserURL: String

Get the advertiser url of native ads

accountTag

val accountTag: JSONObject

Get the account tag of native ads

creativeTag

val creativeTag: JSONObject

Get the creative tag of native ads

advertiser

val advertiser: String

Get the advertiser of native ads

Last updated