Extends
FullScreenAd
Represents a full-screen interstitial ad.
Interstitial ads completely cover the screen of the host application.
Interstitial ads completely cover the screen of the host application.
| Properties | |
|---|---|
ad
|
The callback to receive ad event notifications. |
ad
|
The unique ad unit ID used to request and load this specific ad.
|
| Methods | |
|---|---|
destroy
|
Destroys the ad, stopping any extra processing and destroying
resources associated with it.
|
get
|
Gets information about the ad response for this ad.
|
set
|
Sets the placement ID for this ad. |
show
|
Shows the full-screen ad. |
load
|
Loads an interstitial ad. |
Properties
Optional adEventCallback
adEventCallback?:
AdEventCallback
Readonly adUnitId
adUnitId: string
Methods
destroy
destroy(): void
Destroys the ad, stopping any extra processing and destroying
resources associated with it. Do not call any other methods after
this.
getResponseInfo
getResponseInfo(): ResponseInfo
Gets information about the ad response for this ad.
| Returns | |
|---|---|
ResponseInfo
|
A ResponseInfo object containing metadata about the loaded ad. |
setPlacementId
setPlacementId(placementId): void
Sets the placement ID for this ad. Before presenting the ad, you
must set this property.
| Parameters | |
|---|---|
placementId: bigint
|
The identifier for the placement in reporting. |
show
show(): void
Shows the full-screen ad.
Static load
load(request): Promise<InterstitialAd>
Loads an interstitial ad.
| Parameters | |
|---|---|
request:
AdRequest
|
The ad request configuration. |
| Returns | |
|---|---|
Promise<InterstitialAd>
|
A Promise that resolves to the loaded InterstitialAd instance. |