InterstitialAd constructor
InterstitialAd({
- required XandrController controller,
- String? placementID,
- String? inventoryCode,
- CustomKeywords? customKeywords,
Represents an interstitial ad.
An interstitial ad is a full-screen ad that appears at natural transition points in your app, such as between activities or during the pause between levels in a game. It covers the entire screen and typically includes a call to action for the user to interact with.
Implementation
InterstitialAd({
required XandrController controller,
this.placementID,
this.inventoryCode,
this.customKeywords,
}) : assert(
placementID != null || inventoryCode != null,
'we need either a placementID or an inventoryCode',
),
_controller = controller;