Reputation: 619
I have an existing LibGdx game that I'd like to try to add AdMob ads to, but it doesn't use Scene2D, stage and actor, it's like LibGdx's JuperJumper, it only deals with Viewports and the Camera.
Every LibGdx AdMob example I've seen is using Scene2D or is some weird Android application really with some LibGdx in it.
I've seen all the code examples that return an Android View, but I don't know how to "connect" my LibGdx game to it, or be able to use that View.
My code has a 'PlayScreen' that implements Screen, and 'GameTest' that extends Game and the usual Android Activity that extends AndroidApplication, but I haven't seen anything on how to get those to work with the Android View.
I'm just interested in using it for Android, not on the desktop or anywhere else. I'm doing it on Windows.
Does anybody know of an example project that is close to that?
Or what bit of code would I need to be able to use the View?
Thanks!
Upvotes: 0
Views: 67
Reputation: 619
I posted a similar question and someone helped me figure out how to get things to finally work!
https://stackoverflow.com/questions/69107001/how-to-get-the-admob-and-libgdx-game-views-to-work-on-android
Upvotes: 0