kloder-games / godot-admob

Module Admob for Godot engine
MIT License
360 stars 61 forks source link

Banner ads not repositioning themselves from top/bottom after recalling loadBanner() and resize() #113

Open phleb-x opened 5 years ago

phleb-x commented 5 years ago

OS target (Android/iOS): Android

Godot version: 3.1.1

Issue description: Basically I call my custom _init_ads() function which looks like this:

func _init_ads():
    admob = null
    if(Engine.has_singleton("AdMob")):
        admob = Engine.get_singleton("AdMob")
        var res = admob.init(isReal, get_instance_id())
        admob.resize()
        admob.loadBanner(adBannerId, isTop)
        admob.showBanner()
        admob.resize()

and before I call this function, I set isTop. However, this doesn't result in changing the ads orientation, but just creates two ads that never go away unless I use admob.hideBanner().