load method

Future<bool> load(
  1. {@required String adPlatform,
  2. @required String adUnitId,
  3. @required dynamic userId,
  4. MobileAdTargetingInfo targetingInfo}
)

Loads a rewarded video ad using the provided ad unit ID.

Implementation

Future<bool> load(
    {@required String adPlatform,@required String adUnitId,@required userId, MobileAdTargetingInfo targetingInfo}) {
  assert(adUnitId.isNotEmpty);
  return _invokeBooleanMethod("loadRewardedVideoAd", <String, dynamic>{
    'adPlatform': adPlatform,
    'adUnitId': adUnitId,
    'userId': userId,
    'targetingInfo': targetingInfo?.toJson(),
  });
}