Skip to main content
Version: 1.x

Class: NativeAd

Hierarchy

  • GenericAd<Object>

    NativeAd

Constructors

constructor

new NativeAd(opts)

Parameters

NameType
optsMobileAdOptions & { _noinit?: boolean ; type: string }

Inherited from

GenericAd<{ x: number y: number width: number height: number }>.constructor

Defined in

app-open.ts:4

Properties

id

Readonly id: number

Inherited from

GenericAd.id

Defined in

api.ts:13


opts

Protected Readonly opts: MobileAdOptions

Inherited from

GenericAd.opts

Defined in

api.ts:15


type

Static Readonly type: "native"

Overrides

GenericAd.type

Defined in

native.ts:10

Accessors

adUnitId

get adUnitId(): string

Returns

string

Defined in

api.ts:33

Methods

hide

hide(): Promise<unknown>

Returns

Promise<unknown>

Defined in

native.ts:12


init

Protected init(): Promise<void>

Returns

Promise<void>

Inherited from

GenericAd.init

Defined in

app-open.ts:40


isLoaded

isLoaded(): Promise<boolean>

Returns

Promise<boolean>

Inherited from

GenericAd.isLoaded

Defined in

app-open.ts:21


load

load(): Promise<void>

Returns

Promise<void>

Inherited from

GenericAd.load

Defined in

app-open.ts:28


show

show(opts?): Promise<boolean>

Parameters

NameType
opts?Object
opts.heightnumber
opts.widthnumber
opts.xnumber
opts.ynumber

Returns

Promise<boolean>

Inherited from

GenericAd.show

Defined in

app-open.ts:33


getAdById

Static getAdById(id): MobileAd<MobileAdOptions>

Parameters

NameType
idnumber

Returns

MobileAd<MobileAdOptions>

Inherited from

GenericAd.getAdById

Defined in

api.ts:24