loadAd method

Future<bool> loadAd({
  1. List<String>? whiteList,
  2. Duration? timeout,
  3. String? country,
})

Loads an InterstitialAd. Returns true if the ad was loaded successfully, false otherwise. whiteList: A list of allowed countries for ad requests. timeout: The duration after which the ad request will time out. country: The user's country for ad targeting.

Implementation

Future<bool> loadAd({
  List<String>? whiteList,
  Duration? timeout,
  String? country,
}) async {
  if (_loadAdFuture != null) return _loadAdFuture!;

  _loadAdFuture = _loadAd(
    whiteList: whiteList,
    timeout: timeout,
    country: country,
  );

  return _loadAdFuture!;
}