AdSlot

public 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 methods

abstract @Nullable ViewGroup

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

abstract int

Returns the height of the ad slot.

abstract int

Returns the width of the ad slot.

abstract boolean

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

abstract void

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

abstract void
setSize(int width, int height)

Sets the size of the ad slot.

Public methods

getContainer

abstract @Nullable ViewGroup getContainer()

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

getHeight

abstract int getHeight()

Returns the height of the ad slot.

getWidth

abstract int getWidth()

Returns the width of the ad slot.

isFilled

abstract boolean isFilled()

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

setContainer

abstract void setContainer(ViewGroup container)

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

setSize

abstract void setSize(int width, int height)

Sets the size of the ad slot.