0 votes

Hi,

i have a game working on one engine, and ads working separately ( https://github.com/Shin-NiL/godot-admob ). 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.

Thanks

in Engine by (73 points)

Hi,
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.
-j

did you check what adb logcat says?

Hi It is not going pass following code, n i placed it in under ready function when a certain level starts:

if(Globals.has_Singleton(Abmob)):

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

@Josplc

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

Pay attention:

you write

if(Globals.has_Singleton(Abmob)):

but must be:

if(Globals.has_Singleton(Admob)):

-j

Hi Yes. I had it as

if(Globals.has_Singleton(Admob)):

except it was "AdMob" and i just changed the 'M' to 'm'. Yet still does not go through Singleton :( .

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?

-j

I am using .apk file. Yes in the export settings, I do include the templates in 'custom package', provided by https://github.com/Shin-NiL/godot-admob. This was last updated 4 days ago. I did find another one https://github.com/Shin-NiL/godot-admob , however this was 5 months ago. Please advise which one you used. Thank you

This was last updated 4 days ago, but templates are too older.
I have recompiled them, since I use Godot 2.1.4.

-j

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.

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.

This is the official source repository:

https://github.com/godotengine/godot/releases

if you want to recompile a custom version.

Otherwise, from here there is offcial binaries:

https://godotengine.org/download

-j

2 Answers

0 votes

If you add a release keystore the ads start to show. The admob also needs time to verify your traffic. I tried to see real ads on my game but they didn't show up until I added release keystore to the export. I wanted to upload my game to the Play Store and I had to add the release keystore and then I installed the apk in my phone and after few hours the ads started to show. I hope this solution works.

by (14 points)
0 votes

For godot 3.2.3 you can use precompiled binary modules for Applovin-MAX and for Tapdaq. Both of them allow you use several ad networks at the same time (they are mediation solutions). So you can use AdMob and Facebook audience network.
All binary modules can be installed from NativeLib repository. NativeLib addon you can find in AssetLib.
More info at:
https://github.com/DrMoriarty/nativelib
https://github.com/DrMoriarty/godot-applovin-max
https://github.com/DrMoriarty/godot-tapdaq

by (206 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.