Hi,
Thank you for contacting Google Mobile Ads SDK support team.
I ran Google BannerExample and noticed that the ad refreshes automatically every 60 seconds since refresh is enabled if the app is in foreground mode, but not refreshing when the app is in background mode. Banner ads can refresh automatically after a certain period of time. Yes, ads expire after an hour, you should clear this cache and reload with new ads every hour. In your use case if the app is in background then sdk won't automatically refresh the ad but refresh resumes as soon as the app is in foreground. I think there is no direct callback or a flag specifically to indicate whether the periodci ad refresh has stopped. You can utilize the delegate method “bannerViewDidReceiveAd” to know when the app is returned to the foreground after extended backgrounding.
Mobile Ads SDK Team |