loadOfferwallAd method

Future<void> loadOfferwallAd(
  1. String adUnitId, {
  2. Map? extraMap,
})

加载广告:adUnitId 广告位ID, extraMap = createOfferwallExtraMap

Implementation

Future<void> loadOfferwallAd(String adUnitId, {Map? extraMap}) async {
  Map arguments = {};
  arguments['adUnitID'] = adUnitId;
  if (extraMap != null) {
    arguments['extraMap'] = extraMap;
  }
  TradplusSdk.channel.invokeMethod('offerwall_load', arguments);
}