0 votes

Hi guys.

I placed my personal banner id one week ago on the godot source code of my first game. The code which i use is the following:

extends Node

var admob = null
var real_ads = true
var banner_top = false
var ad_banner_id = "my personal banner id"
var enable_ads = true

func _ready():
    if Engine.has_singleton("AdMob"):
        admob = Engine.get_singleton("AdMob")
        admob.init(real_ads, get_instance_id())
        admob.loadBanner(ad_banner_id, banner_top)


func show_ad_banner():
    if admob and enable_ads:
        admob.showBanner()


func hide_ad_banner():
    if admob:
        admob.hideBanner()

Notice that the TEST ads works perfectly.
What i have to do guys?I am from Greece.So,is the location the problem?
Is the fact that i haven't yet upload my app on Google Play?
Any suggestions please?

Thank you.

in Engine by (218 points)

Have you solved it? I have the same problem

1 Answer

0 votes

Hi, i solved it. Actually my google admob account wasn't verified yet. So try that.
And don't use real ads before exporting the release apk. Admob might ban you.

by (40 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.