最近上传了两个Apk版本后,检查了启动前的报告,但我在报告中看不到任何广告。我们使用的广告中介(适用于旧版)效果很好。可能是Google Firebase自动化不再显示广告了吗?或此代码有问题。
<script type="text/javascript">
function onDeviceReady() {
var appKey = "xxx";
document.removeEventListener('deviceready', onDeviceReady, false);
Appodeal.setOnLoadedTriggerBoth(adTypes, true);
Appodeal.setAutoCache(Appodeal.INTERSTITIAL, false);
Appodeal.initialize(appKey, Appodeal.INTERSTITIAL | Appodeal.BANNER);
Appodeal.cache(Appodeal.INTERSTITIAL);
Appodeal.enableInterstitialCallbacks(true);
Appodeal.show(Appodeal.BANNER_BOTTOM);
//after init
Appodeal.isLoaded(Appodeal.INTERSTITIAL, function(result){
if (result == true)
Appodeal.show(Appodeal.INTERSTITIAL);
})
};
</script>