Closed lucaleonardi closed 1 year ago
The AdMob only works for Android and iOS, you need to download and install the plugins for the platforms.
Please check this video: https://www.youtube.com/watch?v=ZnlH3INcAGs
Thank you!
I missed the step about adding the android-standard-template-[version].zip
content to the android/plugins
folder and in fact I didn't had the option "Ad Mob" in the Android export. I think that it's missing for Godot version 3.5.2
, so I had to downgrade to 3.5.1
.
I'm still having issues tho: following the video with a blank new project works, but if I try to implement this on the game I'm working on, after I export the apk and run the Example scene I get:
Rewarded failed to load, error_code = 3
Rewarded Interstitial failed to load, error_code = 3
Interstitial failed to load, error_code = 3
What is error_code = 3
? I read online that it may be caused by not setting the correct unit ID, but I left the default values (for example for Interstitial ads is ca-app-pub-3940256099942544/1033173712
). What other options from the export settings could possible cause this issue? Is it possible that having the Keystore Release fields set create problems while using test unit IDs? But this should be prevented setting the option "Export with Debug" on "Export Project..." right?
Mobile Ads SDK Forum Advisor With regard to your concern for error code 3, it means that the ad request was successful, but no ad was returned due to lack of ad inventory.
This should not be a problem with your integration, it's a problem with AdMob server
Btw, are you using the sample APP ID to make the requests?
ca-app-pub-3940256099942544~3347511713
Yes, I'm using the APP ID you reported.
But how is the "ad inventory" involved while using testing unit IDs? The use of those IDs is deliberately for displaying test ads, which should not be provided by any ad inventory.
My concern is that, because the test project works, there could be something about my configuration that is wrong? It's basically the same, with the difference that I have the Keystore Release set, because the app is already on Google Play. What about the configuration in the AdMob Editor, should I modify something here?
The ad inventory is from AdMob server, they don't have some ads to display to you, as I can see, there's not wrong with your implementation or our plugin.
Please check if you are using UMP, if you are, click to consent, if you do not consent, the probability of not seeing an advertisement for you is greater
@lucaleonardi your problem still persist?
@gumaciel not anymore, thanks for checking. Apparently it was a temporary problem as you pointed out, because now the interstitial and the ads load correctly 👍
I close the issue, thanks.
Godot version
3.5.2
Plugin version
1.3.4
System information
Windows 10
Phone information, if applicable
No response
Issue description
I'm testing the Example.tscn scene that comes with the plugin, but I can't seem to make it work. Checking the code and doing some tests, I found out that the code
Engine.has_singleton("AdMob")
returnsfalse
. This prevents the Object_plugin
from being set in theAdMobSingleton.gd
, probably breaking the whole plugin?Am I missing something here?
Steps to reproduce
Example.tscn
Additional context
No response