Skip to main content
Version: Next

Class: BannerAd

Hierarchy

Constructors

constructor

new BannerAd(opts): BannerAd

Parameters

NameType
optsBannerAdOptions

Returns

BannerAd

Overrides

MobileAd.constructor

Defined in

packages/cordova/src/www/ads/banner.ts:67

Properties

_loaded

Private _loaded: boolean = false

Defined in

packages/cordova/src/www/ads/banner.ts:65


id

Readonly id: string

Inherited from

MobileAd.id

Defined in

packages/cordova/src/www/ads/base.ts:18


opts

Protected Readonly opts: BannerAdOptions

Inherited from

MobileAd.opts

Defined in

packages/cordova/src/www/ads/base.ts:20


cls

Static Readonly cls: "BannerAd"

Defined in

packages/cordova/src/www/ads/banner.ts:63

Accessors

adUnitId

get adUnitId(): string

Returns

string

Inherited from

MobileAd.adUnitId

Defined in

packages/cordova/src/www/ads/base.ts:40


allAds

get allAds(): Record<string, MobileAd<MobileAdOptions>>

Returns

Record<string, MobileAd<MobileAdOptions>>

Inherited from

MobileAd.allAds

Defined in

packages/cordova/src/www/ads/base.ts:30

Methods

hide

hide(): Promise<unknown>

Returns

Promise<unknown>

Overrides

MobileAd.hide

Defined in

packages/cordova/src/www/ads/banner.ts:102


init

init(): Promise<unknown>

Returns

Promise<unknown>

Inherited from

MobileAd.init

Defined in

packages/cordova/src/www/ads/base.ts:82


isLoaded

isLoaded(): Promise<boolean>

Returns

Promise<boolean>

Inherited from

MobileAd.isLoaded

Defined in

packages/cordova/src/www/ads/base.ts:61


load

load(): Promise<void>

Returns

Promise<void>

Overrides

MobileAd.load

Defined in

packages/cordova/src/www/ads/banner.ts:89


on

on(...args): () => void

Parameters

NameType
...args[type: string, listener: Function, useCapture?: boolean]

Returns

fn

▸ (): void

Returns

void

Inherited from

MobileAd.on

Defined in

packages/cordova/src/www/ads/base.ts:44


show

show(): Promise<unknown>

Returns

Promise<unknown>

Overrides

MobileAd.show

Defined in

packages/cordova/src/www/ads/banner.ts:94


config

config(opts): false | Promise<unknown>

Parameters

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

Returns

false | Promise<unknown>

Defined in

packages/cordova/src/www/ads/banner.ts:75


getAdById

getAdById(id): MobileAd<MobileAdOptions>

Parameters

NameType
idstring

Returns

MobileAd<MobileAdOptions>

Inherited from

MobileAd.getAdById

Defined in

packages/cordova/src/www/ads/base.ts:36