entryRewardVideoAdScenario method

Future<void> entryRewardVideoAdScenario(
  1. String adUnitId, {
  2. String? sceneId,
})

进入广告场景:adUnitId 广告位ID ,sceneId 从Tradplus后台获取到到场景ID

Implementation

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