cocos2d-x 3.0 : Android NativeActivity with AdMob


Many developers monetize their Cocos2D-x game with Google AdMob.

However there is very little documentation about how to show AdMob ads with the new Android NativeActivity used in the cocos2d-x 3.0 dev branch.

To be honest I’m not even sure it’s possible. It would be good to have some kind of extension or at least an example when 3.0 is released.


I’m also interested in solving this. We have abandoned NativeActivity 2 years ago because we couldn’t implement Admob over NativeActivity’s view.

Maybe something like this could work:
But needs testing(and maybe more work). As far as i can remember it didn’t work on my galaxy player with android 2.3.5. (checked some months ago)