Refresh for a failed ad

966 views
Skip to first unread message

Mark Riley

unread,
Jan 28, 2014, 12:03:44 PM1/28/14
to google-adm...@googlegroups.com
I am using AdMob for Android. I was just wondering, that if I have an ad which fails to load for whatever reason (i.e. OnAdFailedToLoad is called), and I have my ad options (on the web site) set to refresh every 60 secs, then will the ad continue to attempt to load again every 60 secs, or do I have to load the ad again programatically?

Kunal Verma

unread,
Jan 28, 2014, 12:06:58 PM1/28/14
to Google AdMob Ads Developers

The ad will automatically load after refresh rate -60 seconds (in your case). No need to do it programmatically. You can give it a try yourself by checking the logcat a few times keeping the app open for 60 seconds and above.

On Jan 28, 2014 10:33 PM, "Mark Riley" <doogl...@gmail.com> wrote:
I am using AdMob for Android. I was just wondering, that if I have an ad which fails to load for whatever reason (i.e. OnAdFailedToLoad is called), and I have my ad options (on the web site) set to refresh every 60 secs, then will the ad continue to attempt to load again every 60 secs, or do I have to load the ad again programatically?

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mark Riley

unread,
Jan 28, 2014, 1:27:08 PM1/28/14
to google-adm...@googlegroups.com
Ok, so I tried turning off my WIFI and keeping the activity open. After a minute or so, the ad went through the OnAdFailedToLoad callback. I left the screen as it was for several more minutes, and the OnAdFailedToLoad callback was never called again.

This seems to imply that once it has failed, it does not automatically try again?

Kunal Verma

unread,
Jan 28, 2014, 1:42:10 PM1/28/14
to Google AdMob Ads Developers
What I see, right now in my logcat is that if there is no internet connection, the refresh rate if set to 30. The SDK tries again after the 2x time ( where x is the refresh rate).
But when there is an active internet connection, it works with the 30 seconds as set in the AdMob site settings.

Supposing if a User opens the app and at that time, there is no network but few seconds later the network is back. The request will be made again after 2x refresh rate. Makes sense but its just my observation. 



On Tue, Jan 28, 2014 at 11:57 PM, Mark Riley <doogl...@gmail.com> wrote:
Ok, so I tried turning off my WIFI and keeping the activity open. After a minute or so, the ad went through the OnAdFailedToLoad callback. I left the screen as it was for several more minutes, and the OnAdFailedToLoad callback was never called again.

This seems to imply that once it has failed, it does not automatically try again?

--

Eric Leichtenschlag

unread,
Jan 31, 2014, 9:24:12 PM1/31/14
to google-adm...@googlegroups.com
Kunal, we actually do have a 60s refresh timer hardcoded in the app, for cases where we never get the refresh rate back from the server for a particular request (for example in the case of no network connection). This refresh timer should be kicking off and attempting another request though. When that happens, I'm getting the following logs:

I             Starting ad request.                                                                                             
D             Ads AdLoaderBackgroundTask started.                                                                                  
D             Ads Fetching ad response from remote ad request service.                                                             
D             Ads Binding to the ad request service.                                                                               
D             Ads Starting ad request from service.                                                                                
D             Ads Device is offline.                                                                                               
D             Ads Received ad response.                                                                                            
W             Ads There was a problem getting an ad response. ErrorCode: 2                                                         
I             Ads Scheduling ad refresh 60000 milliseconds from now.

And in the case where you leave the app, or the phone is turned off, or something similar, we quit sooner:

I             Ads Ad is not visible. Not refreshing ad.                                                                            
I             Ads Scheduling ad refresh 60000 milliseconds from now.

Thanks,
Eric
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages