NativeAd

Interface allows to set NativeAdEventListener and to define whether web links are opened by in-app browser or by third-party browsers.

Properties

Link copied to clipboard
abstract val adAssets: NativeAdAssets

Returns ad assets.

Link copied to clipboard
abstract val adAttributes: <Error class: unknown class>?

Information field for ad additional attributes

Link copied to clipboard
abstract val adType: NativeAdType

Returns native ad type ResponseNativeType.

Link copied to clipboard
abstract val campaignId: String?

Campaign ID - an identifier for the campaign

Link copied to clipboard
abstract val creativeId: String?

Creative ID - a unique identifier for the creative

Link copied to clipboard
abstract val info: String?

Information field for ResponseNativeType.IMAGE ad

Functions

Link copied to clipboard

Adds listener for receiving notifications about images loading progress.

Link copied to clipboard
abstract fun bindNativeAd(viewBinder: NativeAdViewBinder)

Bind view with native ad's content.

Link copied to clipboard
abstract fun loadImages()

Asynchronously loads ad's images. Every loaded image is set to corresponding ImageView. Images are not persisted in memory and should be loaded each time ad is being bound. Typically, every bind call should be followed by loadImages call, if automatic image loading is disabled in NativeAdRequestConfiguration.

Link copied to clipboard

Removes listener, so it's no longer notified about images loading progress.

Link copied to clipboard