cengiz-pz / godot-android-admob-plugin

Enables AdMob functionality on Godot apps that are exported to the Android platform
MIT License
18 stars 2 forks source link

Encountering "GodotAndroidAdmobPlugin singleton not found!" Error #1

Closed Shay-M closed 2 months ago

Shay-M commented 4 months ago

Hello, I'm trying to run the attached demo. I installed according to the instructions

But I encountered the error messages:

  GodotAndroidAdmobPlugin plugin not initialized
  GodotAndroidAdmobPlugin singleton not found!
  GodotAndroidAdmobPlugin plugin not initialized
  GodotAndroidAdmobPlugin plugin not initialized
  GodotAndroidAdmobPlugin plugin not initialized
  GodotAndroidAdmobPlugin plugin not initialized
  GodotAndroidAdmobPlugin plugin not initialized
  GodotAndroidAdmobPlugin singleton not found!

Additional Information: Godot Engine version: 4.2.1 Operating System: Windows 10

Screenshots singleton not found!

cengiz-pz commented 4 months ago

Hi @Shay-M, there are a couple of things to note here. The most important is that the plugin will not work if you run it on Windows; you'll need to export to and run on an Android device.

The other issue is that the application's unique ID needs to be registered with AdMob for the ads to work & the demo app's ID is not. The demo app's purpose is to provide a code sample for the time being.

Shay-M commented 4 months ago

I understand, thank you very much. It runs with error message number 3 - of public static final int ERROR_CODE_NO_FILL The ad request was successful, but no ad was returned due to lack of ad inventory.

But I guess it has to do with the settings of my Google Ads account

cengiz-pz commented 4 months ago

It runs with error message number 3 - of public static final int ERROR_CODE_NO_FILL

Indeed, that error means that a suitable ad could not be found for the device location. You may want to start off with test ads.

Shay-M commented 4 months ago

Yes, I tried the test ads, and it still gives me these error messages.

P.S. In my work environment I added this line: org.gradle.java.home=C:\Users\shay\.jdks\openjdk-19.0.2 to the gradle.properties file

cengiz-pz commented 2 months ago

Hi @Shay-M, were you able to fix your environment issues?

Shay-M commented 1 week ago

@cengiz-pz Sorry for the slow reply Yes it runs it when I added the line: org.gradle.java.home=C:\Users\shay.jdks\openjdk-19.0.2

and use the Admob Plugin update