How to implement AdMob in JME?

Hi, i hope someone can help me, i want to implement ads from Admob. I already implemented admob in some simple android apps, but i dont know how i have to do this in jme. where can i create views, where the ad can be drawn?

Looking into the source of AndroidHarness should help, especially the layoutDisplay() function. The game is done in a GLSurfaceView set to FullScreen. You should be able to set an AdView on top of that. Something like this:

1 Like