question

ivanna22 avatar image
ivanna22 asked

Can't successfully load & show new interstitial ads after an ad expires

I'm using the Cordova plugin on Android and am having trouble loading and showing new ads after a previous ad has expired. If the app sits open for a while without an ad being shown then eventually old ads expire. After trying to show one of them with [b]showInterstitialAd[/b], the success callback gets called but with [b]response.booleanValue[/b] being false. So far this is all in line with what I would expect based on the documentation. I run into problems when I try to load and show new ads. I can call [b]LoadInterstitialAd[/b] and the success callback is called with [b]response.booleanValue[/b] true. If I then try to show this ad, however, I get the same behavior as if this ad were expired. Doing this repeatedly never results in an interstitial that can be successfully shown. How can I load and then show new ads after an add has expired in the app?
mobile ads
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Andrew@Amazon avatar image
Andrew@Amazon answered
ivanna22, thanks for bringing this to our attention. I've confirmed that this is an issue with all of the Cross Platform Tools plugins on Android. We will try to have this fixed for the next release of the plugins.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ivanna22 avatar image
ivanna22 answered
Is there a workaround in the meantime? We've tried resetting the API key and various other things but nothing seems to get the plugin back to a working state. Apps don't seem to get killed very often on newer phones with a lot of RAM so we're only able to show ads a small minority of the time (only during the first session since the app was killed). Unless I'm missing something here, it seems like the interstitial ads are fairly unusable on Android.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Andrew@Amazon avatar image
Andrew@Amazon answered
Unfortunately, there's no easy workaround. The only workaround I can think of is to load the interstitial ads when it's closer to time to display them, but even that will not solve the issue in all cases. The issue should be fixed in the next release of the Plugins, though. I'll comment here as soon as the release happens.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Andrew@Amazon avatar image
Andrew@Amazon answered
The new plugins for the Cross-Platform Engines have been released. You can find the information about the release here: https://forums.developer.amazon.com/forums/thread.jspa?threadID=10039&tstart=0 And you can download the new zip from the Mobile Ads page on the developer portal: https://developer.amazon.com/public/apis/earn/mobile-ads
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.