setCustomAdInfo method

Future<void> setCustomAdInfo(
  1. String adUnitId,
  2. Map customAdInfo
)

开发者通过此接口在展示前设置透传信息,透传信息可以在广告展示后的相关回调的adInfo中获取

Implementation

Future<void> setCustomAdInfo(String adUnitId, Map customAdInfo) async {
  Map arguments = {};
  arguments['adUnitID'] = adUnitId;
  arguments['customAdInfo'] = customAdInfo;
  TradplusSdk.channel.invokeMethod('banner_setCustomAdInfo', arguments);
}