我在设备和Firebase测试实验室上看到黑标。
我们正在使用GitHub的Appodeal Prime插件进行调解
在点击测试按钮时,我们没有看到广告,在屏幕上仅显示黑色横幅。
<script type="text/javascript">
var app = {
initialize: function() {
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
},
// deviceready Event Handler
//
// Bind any cordova events here. Common events are:
// 'pause', 'resume', etc.
onDeviceReady: function() {
alert('Ready');
this.receivedEvent('deviceready');
appodealprime.ready();
},
receivedEvent: function(id) {
}
// show banner
// appodealprime.showBanner();
};
function showBanner()
{
appodealprime.showBanner();
}
function showRewardedVideo()
{
appodealprime.showRewardedvideo('xxx');
}
function showInterstitial()
{
appodealprime.showInterstitial('xxx');
}
app.initialize();
</script>
<button id="rewarded" onclick="showRewardedVideo();" style="width:100%;height:50px; margin-top:10px;background-color:white;color:red;">Rewarded Video</button>
<button id="showBanner" onclick="showBanner();" style="width:100%;height:50px; margin-top:10px;background-color:white;color:red;">Show Banner</button>
<button id="hideBanner" onclick="hideBanner();" style="width:100%;height:50px; margin-top:10px;background-color:white;color:red;">Hide Banner</button>
<button id="interstitial" onclick="showInterstitial();" style="width:100%;height:50px; margin-top:10px;background-color:white;color:red;">Interstitial</button>
config.xml文件上的这些插件已添加
<plugin name="cordova-appodeal-prime" source="npm" spec="1.0.1" > <variable name="ANDROID_APP_KEY" value="xxxxxx" /> </plugin> <plugin name="cordova-plugin-multidex" spec="0.1.4" />
使用最新的cli-9.0.0。
构建成功 但我看到横幅上出现黑色,而不是广告印象。
**所有值都用键填充。 我认为这是与代码相关的问题,可以准备好用于设备吗?