TWMNativeAd

class TWMNativeAd(context: Context, adunitId: String) : TWMAd

The class which is used to load a native ad.

Parameters

context

The Context the TWMNativeAd is running in.

adunitId

The ad unit ID.

Constructors

TWMNativeAd
Link copied to clipboard
fun TWMNativeAd(context: Context, adunitId: String)
Construct TWMNativeAd object by context and adunitId.

Types

Companion
Link copied to clipboard
object Companion
Image
Link copied to clipboard
abstract class Image
The image object used in TWMNativeAdContent

Properties

nativeAdContent
Link copied to clipboard
val nativeAdContent: TWMNativeAdContent
The data class collects all the native ad information.

Functions

destroy
Link copied to clipboard
fun destroy()
Destroys the ad object.
loadAd
Link copied to clipboard
open override fun loadAd(adRequest: TWMAdRequest)
Load a native ad by TWMAdRequest
setAdListener
Link copied to clipboard
open override fun setAdListener(adListener: TWMAdViewListener?)
Specify a TWMAdViewListener to monitor the ad status.
stopLoading
Link copied to clipboard
open override fun stopLoading()
Interrupt the ad loading after loadAd() if possible.