AdView

class AdView : BaseAdView, BannerAdClient

The View to display Banner ads.
An ad spot ID must be set prior to calling show().

-> Sample Code

Since

1.0.0

Constructors

Link copied to clipboard
fun AdView(context: Context)
Link copied to clipboard
fun AdView(context: Context, attrs: AttributeSet?)
Link copied to clipboard
fun AdView(context: Context, attrs: AttributeSet?, defStyleAttr: Int)
Link copied to clipboard
fun AdView(context: Context, attrs: AttributeSet?, defStyleAttr: Int, defStyleRes: Int)

Functions

Link copied to clipboard
open override fun getCustomSize(): Size

Returns width and height if adViewSize is CUSTOM.

Link copied to clipboard
open override fun getSessionId(): String

Returns session id.

Link copied to clipboard
open override fun isAvailable(): Boolean

Returns whether it is available with Boolean.

Link copied to clipboard
open override fun isLoading(): Boolean

Returns whether it is loading with Boolean.

Link copied to clipboard
open override fun putProperty(key: String, value: Any): BaseAdView

Specify any key/value required for customization.

Link copied to clipboard
open override fun show()

Performs ad loading.

Properties

Link copied to clipboard
open override var adSpotCode: String

Ad spot Code

Link copied to clipboard
open override var adSpotId: String

Ad spot ID

Link copied to clipboard
open override var adStateListener: AdStateListener?

The event callback of AdView

Link copied to clipboard
open override var adViewSize: AdSize

An option for specifying AdView size.
Default value is AdSize.DEFAULT

Link copied to clipboard
open override var property: Bundle

The property for setting options.