AdSlot

interface AdSlot

Known direct subclasses
CompanionAdSlot

A companion ad slot for the SDK to render ads.


An ad slot for the SDK to render ads.

Summary

Public functions

ViewGroup?

Returns the ad slot's ViewGroup instance where the SDK renders ads.

Int

Returns the height of the ad slot.

Int

Returns the width of the ad slot.

Boolean

Returns true if the ad slot is filled, false otherwise.

Unit
setContainer(container: ViewGroup!)

Sets the ad slot's ViewGroup instance for the SDK to render ads.

Unit
setSize(width: Int, height: Int)

Sets the size of the ad slot.

Public functions

getContainer

fun getContainer(): ViewGroup?

Returns the ad slot's ViewGroup instance where the SDK renders ads.

getHeight

fun getHeight(): Int

Returns the height of the ad slot.

getWidth

fun getWidth(): Int

Returns the width of the ad slot.

isFilled

fun isFilled(): Boolean

Returns true if the ad slot is filled, false otherwise.

setContainer

fun setContainer(container: ViewGroup!): Unit

Sets the ad slot's ViewGroup instance for the SDK to render ads. Required.

setSize

fun setSize(width: Int, height: Int): Unit

Sets the size of the ad slot.