Class: BannerAd
Hierarchy
-
↳ BannerAd
Constructors
constructor
• new BannerAd(opts
)
Parameters
Name | Type |
---|---|
opts | BannerAdOptions |
Overrides
Defined in
banner.ts:46
Properties
_loaded
• Private
_loaded: boolean
= false
Defined in
banner.ts:46
id
• Readonly
id: number
Inherited from
Defined in
api.ts:13
opts
• Protected
Readonly
opts: BannerAdOptions
Inherited from
Defined in
api.ts:15
type
▪ Static
Readonly
type: string
= ''
Inherited from
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
Name | Type |
---|---|
opts | Object |
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
Name | Type |
---|---|
id | number |
Returns
Inherited from
Defined in
api.ts:24