bannerAdView static method
banner广告
androidAppId
andrrid banner广告id 必填
iosAppId
ios banner广告id 必填
mIsExpress
是否使用个性化模版
supportDeepLink
是否支持 DeepLink 选填
expressAdNum
一次请求广告数量 大于1小于3 必填
expressTime
轮播间隔事件 30-120秒 选填
expressWidth
期望view宽度 dp 必填
expressHeight
期望view高度 dp 必填
FlutterPangolinUnionadBannerCallBack banner广告回调
Implementation
static Widget bannerAdView({
required String iosAppId,
required String androidAppId,
bool? mIsExpress,
bool? supportDeepLink,
required double? expressWidth,
required double? expressHeight,
required int expressAdNum,
int? expressTime,
FlutterPangolinUnionadBannerCallBack? callBack,
}) {
return BannerAdView(
mIsExpress: mIsExpress ?? false,
androidAppId: androidAppId,
iosAppId: iosAppId,
supportDeepLink: supportDeepLink ?? true,
expressWidth: expressWidth ?? 0.0,
expressHeight: expressHeight ?? 0.0,
expressAdNum: expressAdNum,
expressTime: expressTime ?? 30,
callBack: callBack,
);
}