I can cache AdMob ad only once, and after that I’m statring get “false” from sdkbox::PluginAdMob::isAvailable contineously.
AdMob is set up to provide Ad once in 2 minutes and in my application I try to call sdkbox::PluginAdMob::cache once a 2:10.
I cannot provide whole cpp, but simpified pseudo code looks like this
sdkbox::PluginAdMob::init();
sdkbox::PluginAdMob::setListener(listener);
...
// is being run each 2:10 by scheduler
if (sdkbox::PluginAdMob::isAvailable(_itemName))
{
sdkbox::PluginAdMob::cache("Interstitial");
}
...
if(isAdAlreadyCached)
{
sdkbox::PluginAdMob::show("Interstitial");
}
I’m using latest AdMod sdkbox which is v2.1.1 for now.