Ad doesn't show up after connecting to internet

584 views
Skip to first unread message

Hai Le

unread,
Oct 21, 2015, 5:42:49 AM10/21/15
to Google Mobile Ads SDK Developers
Hi Admob SDK developing team,

I'm using google admob sdk 7.5.2.There is a case which works normally in the previous sdk versions. I start the app without internet connection and try to request an adbanner ad when the internet is connected while using app, no banner or interestitial banner show up. I handle this case carefully and it works perfectly in the previous sdks version. I wonder if there is a bug with the new sdk version, can you help me to check?

Vu Chau (MobileAds SDK Team)

unread,
Oct 21, 2015, 4:49:26 PM10/21/15
to Google Mobile Ads SDK Developers
Hi Hai,

Thanks for the note.  I'm not able to replicate this behavior here on my end.  The app was able to fetch a banner after I have reconnected to the Internet.

If you have more detailed steps, do let us know.  Also, send over any Charles log and/or code snippets you are using to achieve your use case.

Vu Chau
Mobile Ads SDK Team

Hai Le

unread,
Oct 22, 2015, 3:40:08 AM10/22/15
to google-adm...@googlegroups.com
Dear Chau,

I use a singleton VC to handle ad requests. 
I call [[GADMasterViewController sharedInstance] resetAdView:self]; on viewWillAppear of every viewController
It worked perfectly fine in the previous versions.

Thanks

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/NSpFnsQylzU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

GADMasterViewController.h
GADMasterViewController.m
Message has been deleted

Hai Le

unread,
Oct 22, 2015, 4:34:00 AM10/22/15
to google-adm...@googlegroups.com
Please ignore my previouse files and find the singleton class in file attachments

On Thu, Oct 22, 2015 at 3:33 PM, Hai Le <hail...@gmail.com> wrote:
Please ignore my previouse files and find the singleton class in file attachments
GADMasterViewController.h
GADMasterViewController.m

Hai Le

unread,
Oct 22, 2015, 4:45:20 AM10/22/15
to google-adm...@googlegroups.com
Here's my screen recording

Untitled.mov

Hai Le

unread,
Oct 22, 2015, 11:25:36 AM10/22/15
to google-adm...@googlegroups.com
Dear Chau,

I'm trying to do the same thing with admob sample project. Ad won't show up after reconnect to the internet.
Remember to kill the app process in background mode when you turn off wifi or internet connection.
Open the app from beginning, after viewDidLoad is called, turn on wifi/internet connection, neither interestitial or banner view can display.

Please find the code I'm using in admob sample project in attachment.

I'm sorry that I send too many emails :(
Thank you so much for your support.
AdMobExample.zip

Vu Chau (MobileAds SDK Team)

unread,
Oct 22, 2015, 5:11:28 PM10/22/15
to Google Mobile Ads SDK Developers
Hi Hai,

Thanks for sending over the snippets and screencast!

What I did to get the ad to show was to move the following lines (that instantiate the bannerView and send out the ad request) to where remoteHostStatus is reachable:

self.bannerView.adUnitID = @"ca-app-pub-3940256099942544/2934735716"; 
self.bannerView.autoloadEnabled = YES; 
self.bannerView.rootViewController = self; 
[self.bannerView loadRequest:[GADRequest request]];

You would not want to send out an ad request when the device is offline.  Let us know if that method works for you.

Vu Chau
Mobile Ads SDK Team

To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
Screen+Shot+2015-10-22+at+12.20.19+PM.png

Hai Le

unread,
Oct 22, 2015, 9:14:08 PM10/22/15
to google-adm...@googlegroups.com
It's so weird that this does not work from my end :(
I wonder that's is going on, it won't call adViewDidReceiveAd delegate or show up in this senario.

On Fri, Oct 23, 2015 at 4:11 AM, Vu Chau (MobileAds SDK Team) <mobileadssd...@google.com> wrote:
Hi Hai,

To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/NSpFnsQylzU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.

Hai Le

unread,
Oct 22, 2015, 9:34:11 PM10/22/15
to google-adm...@googlegroups.com
Ah, Thanks a lot for pointing it out. I managed to resolved the problem.
By the way, may I know if there's any changes since v7.x because it did not happen before.
In this case if you try to call a GADRequest while in offline mode, it will completely stop working. When the internet connection is available and you send another request, nothing gonna happen (no delegate event will be called)

Do you think this is a bug of v.7.x?

Vu Chau (MobileAds SDK Team)

unread,
Oct 23, 2015, 2:29:32 PM10/23/15
to Google Mobile Ads SDK Developers
Hi Hai,

I'm unable to comment on the internal workings of the SDK, but basically what you'd need to do is to destroy any prior object already created while the device is offline.  Then, create a new one and start a new ad request when there is connection.

Vu Chau
Mobile Ads SDK Team

On Thursday, October 22, 2015 at 9:34:11 PM UTC-4, Hai Le wrote:
Ah, Thanks a lot for pointing it out. I managed to resolved the problem.
By the way, may I know if there's any changes since v7.x because it did not happen before.
In this case if you try to call a GADRequest while in offline mode, it will completely stop working. When the internet connection is available and you send another request, nothing gonna happen (no delegate event will be called)

Do you think this is a bug of v.7.x?
On Fri, Oct 23, 2015 at 8:13 AM, Hai Le <hail...@gmail.com> wrote:
It's so weird that this does not work from my end :(
I wonder that's is going on, it won't call adViewDidReceiveAd delegate or show up in this senario.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/NSpFnsQylzU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

GGiebler

unread,
Nov 23, 2015, 2:21:51 PM11/23/15
to Google Mobile Ads SDK Developers
Hi Vu Chau,

I'm seeing the same problem on iOS.

If ads are running with internet access, and I lose internet, the ad closes, and when internet returns, the ads return without any action required by my app.

However, if internet is NOT available when the app first starts, the ads never start when internet access is restored, even if I do a new load request at that time.

What am I doing wrong?

Gary


On Friday, October 23, 2015 at 2:29:32 PM UTC-4, Vu Chau (MobileAds SDK Team) wrote:
Hi Hai,

I'm unable to comment on the internal workings of the SDK, but basically what you'd need to do is to destroy any prior object already created while the device is offline.  Then, create a new one and start a new ad request when there is connection.

Vu Chau
Mobile Ads SDK Team

On Thursday, October 22, 2015 at 9:34:11 PM UTC-4, Hai Le wrote:
Ah, Thanks a lot for pointing it out. I managed to resolved the problem.
By the way, may I know if there's any changes since v7.x because it did not happen before.
In this case if you try to call a GADRequest while in offline mode, it will completely stop working. When the internet connection is available and you send another request, nothing gonna happen (no delegate event will be called)

Do you think this is a bug of v.7.x?
On Fri, Oct 23, 2015 at 8:13 AM, Hai Le <hail...@gmail.com> wrote:
It's so weird that this does not work from my end :(
I wonder that's is going on, it won't call adViewDidReceiveAd delegate or show up in this senario.
To post to this group, send email to google-adm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/NSpFnsQylzU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.

Vu Chau (MobileAds SDK Team)

unread,
Nov 23, 2015, 5:15:17 PM11/23/15
to Google Mobile Ads SDK Developers
Hi Gary,

Which SDK version are you using?  You should be able to resume ad serving once you have restored connectivity and manually instantiated a new ad request.

Let us know if you can reproduce the issue in our sample app.  If you can't, feel free to send us a minimal code project that demonstrates the issue you're seeing.  We'll be happy to take a look further.

Vu Chau
Mobile Ads SDK Team

Hai Le

unread,
Nov 24, 2015, 11:44:51 AM11/24/15
to google-adm...@googlegroups.com
Dear Gary,

From my experience, the shortest way is to check internet connection status before calling an ad request, otherwise you can't request for another ad when connection is back again. This issue did not happen before admob v.7.x.

Regards,

To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.

To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/NSpFnsQylzU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.

To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/NSpFnsQylzU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages