loadAd method

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

Loads an AppOpenAd.

Returns true if the ad was loaded successfully, false otherwise.

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!;
}