BannerAdView

The view to display banner ads.

Constructors

Link copied to clipboard
constructor(context: Context)

Constructs a new BannerAdView programmatically.

constructor(context: Context, attrs: AttributeSet?)

Constructs a new BannerAdView from XML layout file.

constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int)

Constructs a new BannerAdView from XML layout file.

Properties

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

Information field for ad additional attributes

Link copied to clipboard

Returns information about loaded Ad.

Link copied to clipboard

Returns actual size after Ad was loaded BannerAdEventListener.onAdLoaded or AdSize from .setAdSize

Link copied to clipboard
val info: String?

Returns additional information about Ad

Link copied to clipboard

Returns the VideoController that provides playback control for video ads.

Functions

Link copied to clipboard
open fun createViewController(context: Context, adConfiguration: <Error class: unknown class>, bannerAdListener: <Error class: unknown class>, phasesManager: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
open fun destroy()

Destroys this BannerAdView entirely and cleans up resources. NOTE: Don't work with this BannerAdView thereafter.

Link copied to clipboard
fun loadAd(adRequest: AdRequest)

Starts loading the ad by AdRequest on a background thread. NOTE: The ad size and ad unit id must be set before that.

Link copied to clipboard
fun setAdSize(adSize: BannerAdSize)

Sets an BannerAdSize. BannerAdSize can be set only once.

Link copied to clipboard
open fun setAdUnitId(adUnitId: String?)

Sets a valid ad unit ID. Ad unit ID can be set only once.

Link copied to clipboard