|
||||||
Hi Umut,
Thank you for your response.
As per our documentation, the code snippet you've provided should be working as what you've intended to work with the help also of coroutine as it was requesting only after the ad failed to load. The one of the best practices, is that the loading the ad in advance by calling loadAd() before you intend to call show() can ensure that your app has a fully loaded interstitial ad at the ready when the time comes to display one.
In addition to that, kindly note that if your app is automatically refreshing ads, make sure ad requests are not made when the screen is off. Also, if users navigate to and from pages with ads in an app over a short period of time, a new ad request should not be made sooner than the recommended 60 second rate. You may also check this recommended interstitial implementations for more information.
Regards,
|
||||||