Skip to main content
Version: 1.x

Class: BannerAd

Hierarchy

Constructors

constructor

new BannerAd(opts)

Parameters

NameType
optsBannerAdOptions

Overrides

MobileAd.constructor

Defined in

banner.ts:46

Properties

_loaded

Private _loaded: boolean = false

Defined in

banner.ts:46


id

Readonly id: number

Inherited from

MobileAd.id

Defined in

api.ts:13


opts

Protected Readonly opts: BannerAdOptions

Inherited from

MobileAd.opts

Defined in

api.ts:15


type

Static Readonly type: string = ''

Inherited from

MobileAd.type

Defined in

api.ts:8

Accessors

adUnitId

get adUnitId(): string

Returns

string

Defined in

api.ts:33

Methods

hide

hide(): Promise<unknown>

Returns

Promise<unknown>

Defined in

banner.ts:86


load

load(): Promise<unknown>

Returns

Promise<unknown>

Defined in

banner.ts:70


show

show(): Promise<unknown>

Returns

Promise<unknown>

Defined in

banner.ts:78


config

Static config(opts): false | Promise<unknown>

Parameters

NameType
optsObject
opts.backgroundColor?string
opts.marginBottom?number
opts.marginTop?number

Returns

false | Promise<unknown>

Defined in

banner.ts:56


getAdById

Static getAdById(id): MobileAd<MobileAdOptions>

Parameters

NameType
idnumber

Returns

MobileAd<MobileAdOptions>

Inherited from

MobileAd.getAdById

Defined in

api.ts:24