Problem to show Ads when WIFI is ON.

2,341 views
Skip to first unread message

FTristan

unread,
Apr 6, 2014, 9:00:58 AM4/6/14
to google-adm...@googlegroups.com
Hi.

I have a problem with Ads on my apps, when I turn 3g/4g ON and WIFI OFF i see ads, but if i turn WIFI ON and 3g/4g OFF i can't see any ads.
Do you have any idea to correct my problem?

- My phone is a Samsung Galaxy S2 with Cyanogen.
- Permission i use :

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

Thank.

FTristan

unread,
Apr 6, 2014, 9:06:11 AM4/6/14
to google-adm...@googlegroups.com
LogCat with WIFI :

W/Ads(754): Timed out waiting for ad response.
W/Ads(754): Failed to load ad: 2

FTristan

unread,
Apr 6, 2014, 9:19:27 AM4/6/14
to google-adm...@googlegroups.com
Sorry for the flood i have this error in the LogCat with WIFI ON too:

E/Ads(1244): JS: Uncaught ReferenceError: AFMA_buildAdURL is not defined (http://googleads.g.doubleclick.net/:1)

Thank

William Ferguson

unread,
Apr 7, 2014, 4:08:00 AM4/7/14
to google-adm...@googlegroups.com
If the network that you are connecting to via wifi cannot get to the internet then you won't be able to serve ads. You need an internet connection.

William

FTristan

unread,
Apr 7, 2014, 6:46:21 AM4/7/14
to google-adm...@googlegroups.com
I have internet with the wifi.

Eric Leichtenschlag

unread,
Apr 7, 2014, 8:54:08 PM4/7/14
to google-adm...@googlegroups.com
 JS: Uncaught ReferenceError: AFMA_buildAdURL is not defined means you are missing or somehow have a corrupted copy of an AdMob javascript file that defines that function. You can try clearing the cache in the app and re-running and/or wait a few minutes for the file to be requested again, and ads should start appearing again.

Thanks,
Eric

FTristan

unread,
Apr 8, 2014, 3:04:08 PM4/8/14
to google-adm...@googlegroups.com
Thank for reply, but this don't correct my problem, and today, my ads are not visible with WIFI AND 3G/4G with always the same errors.
And i do not have modified my code today.
I use the google-play-services_lib library and Eclispe IDE.

i followed this tutorial :https://developers.google.com/mobile-ads-sdk/docs/
this: https://developer.android.com/google/play-services/setup.html?hl=fr
this : https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals
and this : https://developers.google.com/mobile-ads-sdk/docs/admob/advanced

My phone is on Android 4.4.2.
I tested with others phones and i have the same result.

Thank.

Eric Leichtenschlag

unread,
Apr 8, 2014, 4:42:28 PM4/8/14
to google-adm...@googlegroups.com
Do your test devices have some kind of ad blocker on them?

FTristan

unread,
Apr 9, 2014, 5:38:32 PM4/9/14
to google-adm...@googlegroups.com
Thank for your help.

No i don't have any ad blocker.

Eric Leichtenschlag

unread,
Apr 9, 2014, 8:00:55 PM4/9/14
to google-adm...@googlegroups.com
Bummer. I'm out of ideas on why you're getting a network error. Do you have a sample .apk I could run on my device to see if I get ads?

Thanks,
Eric

FTristan

unread,
Apr 10, 2014, 1:29:50 PM4/10/14
to google-adm...@googlegroups.com
Hi !

I have some news, today i tested on some smartphones :

-On a samsung galaxy s2 : i seen ads.
-On a Nexus 4 (cyanogen): i don't seen ads.
-On a tablet samsung galaxy : i don't seen ads.
-On a galaxy s2 (cyanogen) : i don't seen ads.

If you want to test : https://play.google.com/store/apps/details?id=tristan.batteryutility

Thank for your help.

Eric Leichtenschlag

unread,
Apr 11, 2014, 12:55:49 PM4/11/14
to google-adm...@googlegroups.com
For what it's worth, I'm getting banners just fine on a Nexus 5, and also got an interstitial ad as well from the app.
Screenshot_2014-04-11-09-53-19.png

FTristan

unread,
Apr 11, 2014, 2:05:55 PM4/11/14
to google-adm...@googlegroups.com
Ok thank you for your patience, i supose it's due to my custom android, or/and a ad block integrated with my connections.

Changzhi Wang

unread,
Apr 28, 2014, 6:17:27 AM4/28/14
to google-adm...@googlegroups.com
Hi Eric,

I got a Lenovo Phone with official Rom. And they have a AD-block feature preloaded as a selling point. What's the point view of Google on this? Can it pass Android CTS test? 

Is there a way to work around this?

Thanks!

BPMap Romain Tricarico

unread,
Jan 19, 2015, 2:14:34 PM1/19/15
to google-adm...@googlegroups.com
Hi Changzhi,
I have the same problem with my application, Admob works fine with 3G but not with WIFI.
I downloaded your application and I tested it : I have admob on 3G, but not with WIFI.

If you find a solution, let me a message, I will continue to search a solution to fix it and I keep in touch with you.

Best Regards.

ps. My phone is a samsung S2

William Ferguson

unread,
Jan 19, 2015, 4:37:45 PM1/19/15
to google-adm...@googlegroups.com
Is this with live ads or test ads?

If live ads then you may have no ads to show - look at your logcat. It will tell you if that is the case.


William

--

---
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/k-sHqnJkStg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

BPMap Romain Tricarico

unread,
Jan 20, 2015, 4:57:48 AM1/20/15
to google-adm...@googlegroups.com
Hi William,
Ths you for your help.
Unfortunately, it does not work for the both, with test and live ads when I am connected with WIFI. It works for the both with GSM network...
I will ask for friend to test it from an other WIFI network than mine.

My app :
https://play.google.com/store/apps/details?id=com.revolart.fingertiplite

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

SimpleArcade Gamers

unread,
Jan 2, 2018, 6:34:46 AM1/2/18
to Google Mobile Ads SDK Developers
Hi guys, 
Same i have this kind of problem.
Any solution please.

SimpleArcade Gamers

unread,
Jan 2, 2018, 6:35:47 AM1/2/18
to Google Mobile Ads SDK Developers
Same here any solution please help me.

Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Jan 2, 2018, 3:29:45 PM1/2/18
to Google Mobile Ads SDK Developers
Hello, 

Thank you for contacting us. Could you please share your Ad Unit ID and complete device logs, so I can take a look at the error you're receiving? Please use Reply privately to author option to provide the details. 

Regards,
Bharani Cherukuri
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages