i am loading banner ad on an overlay view using WindoManager and calling adView.pause() when my view is not visible and calling adView.Resume() when my view comes to foreground.i have configured autorefresh time to 30 seconds from Admob settings i am facing weird issue if the view show often like after 5 to 10 minutes banner ad is refreshing automatically but when if the view gone for like 1 hour or more after that my views show last loaded banner ad but not refreshing ad always stay like that never refresh itself i have to call loadAd() to work it again i don't want to call loadAd() again again .Is there some timer in Admob Sdk that checks if adView is not visible for a long time or paused to save cpu cycles? why adView.resume() not resuming the time for autorefresh in sdk? or i am doing something wrong?
Hello Ali,
Thanks for reaching out to us. The pause() and resume() callbacks are only forwarded to the WebView in the AdView. The SDK checks if the AdView is visible to user and only pings impressions and auto refreshes the ad if it's visible to the user. Make sure that the Ad is visible to the user and then make the ad request. And the auto refresh would also be called if this is the case. You can use onAdImpression() to determine when this happens. As soon as the AdView is visible to the user this method will be called.
Let us know if you need anything else.
Regards,
Deepika Uragayala
Mobile Ads SDK Team
adView.pause() adn return to my app after some time within 10 minutes then i resume the banner it refreshing automatically but if i come back to my app after approx 1 hour then i call resume on ad but after long time banner ad doest not refreshing automatically and never refresh itself i have to call loadAd() again is there some timer in admob sdk? can you redirect the technical team with me?or this is some kind of bugHello Ali,
The pause() and resume() callbacks only forward to the WebView of the AdView and does not impact the auto refresh rate of the Banner. Is the Banner AdView reference still valid when you are trying to show to the user after an hour? Can you please provide us steps to reproduce this issue?
Regards,
Deepika Uragayala
Mobile Ads SDK Team
Hello there,
Ok, I understood what you assumed the issue might be but let me try and reexplain. The AdView pause() and resume() are not/ have no link to the auto refresh property of the Banner. This simply acts in relaying the callbacks back to the WebView of the AdView and is no where linked to the auto refresh. By calling resume(), the AdView will not trigger any resume of AdRequest or resume of auto refresh or resume the Ad itself in any way. This is an internal callback that is being passed to the WebView. You can read more about WebView here .
Now let me try and debug the issue here. My assumption here is the AdView not having a valid reference or there might be some other underlying condition. Can you provide us with complete device logs and also send us a sample app for us to try and reproduce the issue? Or at least provide us with code snippets? We will then have a look into this and can assist you further. You can use "Reply Privately to Author" option to share the details privately.