|Attention||Topic was automatically imported from the old Question2Answer platform.|
|Old Version||Published before Godot 3 was released.|
i have a game working on one engine, and ads working separately ( GitHub - Shin-NiL/godot-admob: Module Admob for Godot engine ). I generated the apk templates by adding module as per instructions. But when i add the ads to the game, ads dont work. I need help asap please.
did you recompile the android template with ads module?
Did you try to set the test banner display? If it works you may have problems with your admob unit.
jospic | 2017-10-24 12:51
did you check what
adb logcat says?
volzhs | 2017-10-24 13:56
Hi It is not going pass following code, n i placed it in under ready function when a certain level starts:
Saying that value is null. So hence it cannot find the next line:
admob = Globals.get_singleton("AdMob") admob.init(isReal, get_instance_ID())
It is perfectly working alone (The admob). But as soon as i put this in my game, it does nothing (Can’t find singleton for admob). My game is built on “godot-2.1.2-stable”. I need urgent help with this please. Thanks
yeeshu06 | 2017-10-26 10:18
I am just using the template he provided. Did not compile my own for this. I am testing the interstitial. What do you mean ‘set test banner display’ ? - Thank you
yeeshu06 | 2017-10-26 10:20
but must be:
jospic | 2017-10-26 10:29
Hi Yes. I had it as
except it was “AdMob” and i just changed the ‘M’ to ‘m’. Yet still does not go through Singleton .
yeeshu06 | 2017-10-26 10:38
But are you trying with .apk file? Please note that AdMob not works by running the application in Godot’s editor…
When you exporting .apk, did you link the generated template in the export settings?
jospic | 2017-10-26 10:44
I am using .apk file. Yes in the export settings, I do include the templates in ‘custom package’, provided by GitHub - Shin-NiL/godot-admob: Module Admob for Godot engine. This was last updated 4 days ago. I did find another one GitHub - Shin-NiL/godot-admob: Module Admob for Godot engine , however this was 5 months ago. Please advise which one you used. Thank you
yeeshu06 | 2017-10-26 10:50
This was last updated 4 days ago, but templates are too older.
I have recompiled them, since I use Godot 2.1.4.
jospic | 2017-10-26 10:54
I attempted to recompile them. I am using 2.1.4. I am worried that if i shift my whole game to 2.1.4 , if some things will work or not.
yeeshu06 | 2017-10-26 10:57
Hi Can you direct me as to where i can find the godot v 2.1.4 stable to download, then I will try run my game with that and see if ads can work using 2.1.4. Thanks. Appreciate it.
yeeshu06 | 2017-10-30 10:42