Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to incorporate ads into libGDX

I've made a game, and now I'm looking into monetizing it. Using libGDX, I've exported it to Android and iOS, but I'm not sure of any way to put ads into it, Abmob for example, especially onto the iOS platform. Has anyone been in this position but was able to put ads in? If so, how exactly?

Any help would be greatly appreciated.

like image 515
nikhil1231 Avatar asked Nov 01 '22 02:11

nikhil1231


1 Answers

For how to implement platform specific code (iOS and android ads run differently) read this: https://github.com/libgdx/libgdx/wiki/Interfacing-with-platform-specific-code

On how to implement admob on android read this: https://github.com/libgdx/libgdx/wiki/Admob-in-libgdx

admob or mopub ads on libgdx roboVM backend (iOS backend) use these: https://github.com/BlueRiverInteractive/robovm-ios-bindings

Thats all you need to know. And yes a lot of people have been in your position and managed to implement ads on both mobile platforms. Including myself.

like image 64
Justas Sakalauskas Avatar answered Nov 12 '22 15:11

Justas Sakalauskas