loadAd method
dynamic
loadAd({})
加载广告
Implementation
loadAd({
required String posId,
required double adWidth,
required double adHeight,
bool? showClose = false,
}) {
if (adWidth <= 0 || adHeight <= 0) {
debugPrint("广告宽度和高度必须大于0!");
throw ArgumentError("广告宽度和高度必须大于0");
}
load(
posId: posId,
methodName: ProAdCore.methodLoadBannerAd,
arguments: {
ProAdCore.keyAdWidth: adWidth,
ProAdCore.keyAdHeight: adHeight,
ProAdCore.keyAdShowClose: showClose
},
);
}