kloder-games / godot-admob

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

How to load multiple reward videos or interstitials #101

Closed omar-bz closed 5 years ago

omar-bz commented 5 years ago

Hi, so this is a question more then it is an issue I am targeting android using godot 3.2 As i want to use different rewarded videos for different parts of my app, I created different scripts for each video rewarded, but apparently this can't work since the admob is a singleton, and when I initialize the banner, interstitials and reward videos the callbacks fire inside the last script and therefor always the last reward video is showed and that seems logical to me. So what should I do in order to load multiple reward videos(or interstitials), load them in advance and show them in the right moment?

Shin-NiL commented 5 years ago

As you stated, the Godot modules are a singleton, so you can't.

omar-bz commented 5 years ago

so I must use only one video rewarded and one interstitial in order for it to work as expected?

Shin-NiL commented 5 years ago

Indeed, the idea is show an ad, reload it, when it is ready, show it again.

omar-bz commented 5 years ago

ok, thanks