To use admod in cocos creator

Hello everyone, I want to use admod to show advertising, I follow the steps of this link

http://docs.sdkbox.com/en/qa/cocos_creator/

I run the application in the simulator and clicking on the buttons does not show the ad, install the application on an android device but it does not show anything and it does not generate an error either, work with coccos creator on mac.

Is there any other guide or way to do it?

Have you seen https://docs.sdkbox.com/en/qa/integration-admob-to-creator/

@anon22094508 thanks for the information, the ad is already displayed, I think I had to wait a few hours after registering the app, to receive advertising.
A question how can I make the intertisial advertising show when the room starts and not just by pressing the button?

Use this additional code and it does not work

onLoad () {
this.admobInit();
this.scheduleOnce(function() {
sdkbox.PluginAdMob.cache(‘gameover’);
sdkbox.PluginAdMob.show(‘gameover’);
}, 3);

},

@yinjimmy can help.

call it when app init.

this.admobInit();

call it when the room starts.

if (sdkbox.PluginAdMob.isAvailable("gameover")) {
    sdkbox.PluginAdMob.show("gameover");
}

good afternoon,

The full screen advertising is already displayed, what is the difference in doing this code this.admobInit(); at the beginning of the game to put it in the onload section of the room?

Would it be the same process to show a “banner” type advertisement?

The question is why the banner ads are not showing, if I check in “Admod”, I seem to have requests, but no visualization

because there is no ad for your request.

the code should be like:

sdkbox.PluginAdMob.init();
sdkbox.PluginAdMob.setListener({
    adViewDidReceiveAd : function(name) { },
    adViewDidFailToReceiveAdWithError : function(name, msg) {  
         // should be some delay, 1 or more seconds
         sdkbox.PluginAdMob.cache(name);  
    },
    adViewWillPresentScreen : function(name) { },
    adViewDidDismissScreen : function(name) { },
    adViewWillDismissScreen : function(name) { },
    adViewWillLeaveApplication : function(name) { },
    reward : function(name, currency, amount) {}
});


// check and show ad
if (sdkbox.PluginAdMob. isAvailable("name")) {
  sdkbox.PluginAdMob.show("name");
}

Thanks,

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Good afternoon, using the test id the banner is displayed correctly, it must be something with the requests of my account.

Thank you