I install AdMob from SDKBox, and i use Creator document demo test, Google public test interstitial ID is nice work.
but if i use myself ads id, the error has every cache:
adViewDidFailToReceiveAdWithError name=test msg=ERROR_CODE_NO_FILL
I only set AdMob’s two type ad, and set default Mediation:
this’s my sdkbox_config.json config:
{
"android": {
...
"AdMob": {
"testdevice": "FE20924C46522E2E204587EB339897C6,kGADSimulatorID",
"test": false,
"ads": {
"test": {
"type": "interstitial",
"id": "ca-app-pub-5368015931250940/1075222146"
},
"research": {
"type": "rewarded_video",
"id": "ca-app-pub-3940256099942544/5224354917"
},
},
"appid": "ca-app-pub-5368015931250940~12795*****"
},
...
this’s my code:
cc.Class({
extends: cc.Component,
properties: {
},
onLoad: function () {
this.admobInit();
},
admobInit: function() {
console.info('Hello! init succeed!');
if(cc.sys.isMobile) {
var self = this
sdkbox.PluginAdMob.setListener({
adViewDidReceiveAd: function(name) {
cc.log('adViewDidReceiveAd name=' + name);
},
adViewDidFailToReceiveAdWithError: function(name, msg) {
cc.log('adViewDidFailToReceiveAdWithError name=' + name + ' msg=' + msg);
},
adViewWillPresentScreen: function(name) {
cc.log('adViewWillPresentScreen name=' + name);
},
adViewDidDismissScreen: function(name) {
cc.log('adViewDidDismissScreen name=' + name);
},
adViewWillDismissScreen: function(name) {
cc.log('adViewWillDismissScreen=' + name);
},
adViewWillLeaveApplication: function(name) {
cc.log('adViewWillLeaveApplication=' + name);
}
});
sdkbox.PluginAdMob.init();
}
},
cacheInterstitial: function() {
if(cc.sys.isMobile) {
sdkbox.PluginAdMob.cache('research');
cc.log('cache');
}
},
showInterstitial: function() {
if(cc.sys.isMobile) {
sdkbox.PluginAdMob.show('research');
cc.log('show');
}
},
});
Can you help me, or tell me what happen?

