How to integrate "Admob" with Cocos2d-x V3.0rc0&beta2 Android Project

For the people trying to use this guide for 2.2.5 who are getting the black screen the solution is really simple.

Change the line.

_activity.setContentView(mainLayout, params);

to this.

_activity.addContentView(mainLayout, params);

And it should work! Thanks for the guide too :smile:

1 Like

Thank you! I integrated admob banner thanks to you. I need to interstitial ad on android. How to integrate ? Thanks.

We have released a Cocos Helper to integrate services like AdMob

https://github.com/SonarSystems/Sonar-Cocos-Helper

After doing what you have suggested I see the Ads. But the background covers the full screen. So I am not able to see the game. Any idea?