loadInteractionAd method
预加载插屏广告
type
广告SDK
Implementation
void loadInteractionAd(int type) {
interstitialLoadBean.lastSdk = type;
if (type == UniversalSdkKType.TENCENT) {
//优量汇
FlutterTencentad.loadUnifiedInterstitialAD(
codeId: interstitialLoadBean.tencentId,
isFullScreen: interstitialLoadBean.isFullScreen,
);
} else {
//穿山甲
FlutterUnionad.loadFullScreenVideoAdInteraction(
androidCodeId: interstitialLoadBean.pangolinId,
iosCodeId: interstitialLoadBean.pangolinId,
);
}
}