Class: InterstitialAdInstance
Hierarchy
default
↳
InterstitialAdInstance
Methods
getPlacementID
▸ getPlacementID(): string
Get the ad's placement ID.
Example
adInstance.getPlacementID() // '5458282176661711'
Returns
string
Placement ID
Inherited from
AdInstance.getPlacementID
Defined in
loadAsync
▸ loadAsync(): Promise
<void
>
Start loading ad. Attempt of loading can sometimes fail for reasons (e.g. ad is not filled, network failure). Game developer can handle each case with a different error handling strategy.
Example
// after adInstance is created
adInstance.loadAsync();
Returns
Promise
<void
>
Overrides
AdInstance.loadAsync
Defined in
showAsync
▸ showAsync(): Promise
<void
>
Show the loaded ad to player. The returned promise will be only resolved when user fully watched this ad. The attempt of showing can sometimes fail for reasons (e.g. user skipped the ad or network failure). Game developer can handle each case with a different error handling strategy.
Example
// after adInstance is loaded
adInstance.showAsync();
Returns
Promise
<void
>
Overrides
AdInstance.showAsync