showInterstitialAd method
展示广告:adUnitId 广告位ID ,sceneId 从Tradplus后台获取到到场景ID
Implementation
Future<void> showInterstitialAd(String adUnitId, {String? sceneId}) async {
Map arguments = {};
arguments['adUnitID'] = adUnitId;
if (sceneId != null) {
arguments['sceneId'] = sceneId;
}
TradplusSdk.channel.invokeMethod('interstitial_show', arguments);
}