InterstitialAd constructor

InterstitialAd({
  1. required XandrController controller,
  2. String? placementID,
  3. String? inventoryCode,
  4. 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;