DrMoriarty / godot-applovin-max

AppLovinMax plugin for godot engine.
27 stars 7 forks source link

Banner Not Loading, No Callbacks Triggered #26

Closed dagrooms52 closed 1 year ago

dagrooms52 commented 1 year ago

Some sample code would be great on this repo. I am shooting in the dark with this implementation. I call load_banner with a banner ID from AppLovin-Max because I don't know what a Zone ID is and the docs don't mention it, I'm almost 99% sure this is incorrect. None of the banner-related callbacks get triggered. Using Godot 3.5.1, is this version supported? I tested with a debug APK and nothing seems to happen.

var BannerID = "applovin max banner Unit ID"

func _ready():
    applovin_max.loadBanner(BannerID, true, self.get_instance_id())
    applovin_max.showBanner(BannerID)

    $AdDebugger.text = "Trying to load banner with ID %s" % BannerID;
    $AdDebugger.show()

# Applovin callbacks
func _on_banner_loaded(id: String):
    print("Banner loaded: %s" % id)
    $AdDebugger.text = "Banner loaded: %s" % id;

func _on_banner_failed_to_load(id: String, error: String):
    print("Banner failed to load: %s" % id)
    $AdDebugger.text = "Banner failed to load: id %s, error %s" % [id, error];

func _on_banner_shown(id: String):
    print("Banner shown: %s" % id)
    $AdDebugger.text = "Banner shown: %s" % id;
dagrooms52 commented 1 year ago

Nevermind, it took ~ 5 minutes of running the APK on device before ads showed up. It would be great to wire some feedback into the calls to know if anything is running.