Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8613349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:51:16+00:00 2026-06-12T04:51:16+00:00

I am using the admob sdk (6.1.0) to show two banners on top of

  • 0

I am using the admob sdk (6.1.0) to show two banners on top of my custom ListFragments with this code in each fragment at onActivityCreated():

LinearLayout adLayout = new LinearLayout(getActivity());
adView = new AdView(getActivity(), AdSize.SMART_BANNER, "xxxxxxxxxxxxx");
adView.loadAd(new AdRequest());
adLayout.addView(adView);
getListView().addHeaderView(adLayout);

everything works fine on my old LG Optimus 2X on Ginger Bread but now i have a Samsung Galaxy S3 on Jelly Bean and my ads won’t show up anymore!
I’m getting this error:

09-24 23:07:35.661: I/Ads(24043): Refreshing ad.
09-24 23:07:35.691: I/webclipboard(24043): clipservice: android.sec.clipboard.ClipboardExManager@42a88b90
09-24 23:07:35.696: V/webkit(24043): BrowserFrame constructor: this=Handler (android.webkit.BrowserFrame) {42cc0c00}
09-24 23:07:35.726: I/Ads(24043): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_getSdkConstants();AFMA_buildAdURL({"kw":[],"preqs":2,"session_id":"16934128083720156505","u_sd":2,"seq_num":"3","slotname":"xxxxxxxxxxxx","u_w":360,"msid":"com.thiost.android.twire","js":"afma-sdk-a-v6.1.0","toar":2,"mv":"8014017.com.android.vending","isu":"605557A27D3A2A6A54663D68CFF48311","cipa":0,"format":"320x50_mb","net":"wi","app_name":"903.android.com.thiost.android.twire","hl":"nl","u_h":640,"carrier":"20404","ptime":120187,"u_audio":3});</script></head><body></body></html>
09-24 23:07:35.916: E/Ads(24043): JS: Uncaught ReferenceError: AFMA_getSdkConstants is not defined (about:blank:1)
09-24 23:07:35.916: E/Web Console(24043): Uncaught ReferenceError: AFMA_getSdkConstants is not defined:1
09-24 23:08:35.716: I/Ads(24043): AdLoader timed out after 60000ms while getting the URL.
09-24 23:08:35.721: D/webviewglue(24043): nativeDestroy view: 0x531a3420
09-24 23:08:35.726: I/Ads(24043): onFailedToReceiveAd(A network error occurred.)
09-24 23:09:35.786: I/Ads(24043): Refreshing ad.
09-24 23:09:35.811: I/webclipboard(24043): clipservice: android.sec.clipboard.ClipboardExManager@42a88b90
09-24 23:09:35.821: V/webkit(24043): BrowserFrame constructor: this=Handler (android.webkit.BrowserFrame) {42d893c0}
09-24 23:09:35.851: I/Ads(24043): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_getSdkConstants();AFMA_buildAdURL({"kw":[],"preqs":3,"session_id":"16934128083720156505","u_sd":2,"seq_num":"4","slotname":"xxxxxxxxxxxx","u_w":360,"msid":"com.thiost.android.twire","js":"afma-sdk-a-v6.1.0","toar":3,"mv":"8014017.com.android.vending","isu":"605557A27D3A2A6A54663D68CFF48311","cipa":0,"format":"320x50_mb","net":"wi","app_name":"903.android.com.thiost.android.twire","hl":"nl","u_h":640,"carrier":"20404","ptime":240317,"u_audio":3});</script></head><body></body></html>
09-24 23:09:35.881: D/dalvikvm(24043): GC_CONCURRENT freed 1150K, 26% free 14863K/20039K, paused 6ms+5ms, total 50ms
09-24 23:09:35.996: E/Ads(24043): JS: Uncaught ReferenceError: AFMA_getSdkConstants is not defined (about:blank:1)
09-24 23:09:35.996: E/Web Console(24043): Uncaught ReferenceError: AFMA_getSdkConstants is not defined:1

I’m only getting this error when the app loads an add for the first time on a WiFi connection. All the other times on WiFi it gives me this error:

09-25 17:29:37.600: W/Ads(23165): IOException connecting to ad url.
09-25 17:29:37.600: W/Ads(23165): java.net.ConnectException: failed to connect to googleads.g.doubleclick.net/127.0.0.1 (port 80): connect failed: ECONNREFUSED (Connection refused)
09-25 17:29:37.600: W/Ads(23165):   at libcore.io.IoBridge.connect(IoBridge.java:114)
09-25 17:29:37.600: W/Ads(23165):   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
09-25 17:29:37.600: W/Ads(23165):   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
09-25 17:29:37.600: W/Ads(23165):   at java.net.Socket.connect(Socket.java:842)
09-25 17:29:37.600: W/Ads(23165):   at libcore.net.http.HttpConnection.<init>(HttpConnection.java:76)
09-25 17:29:37.600: W/Ads(23165):   at libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
09-25 17:29:37.600: W/Ads(23165):   at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:341)
09-25 17:29:37.600: W/Ads(23165):   at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
09-25 17:29:37.600: W/Ads(23165):   at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
09-25 17:29:37.600: W/Ads(23165):   at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:315)
09-25 17:29:37.600: W/Ads(23165):   at libcore.net.http.HttpEngine.connect(HttpEngine.java:310)
09-25 17:29:37.600: W/Ads(23165):   at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:289)
09-25 17:29:37.600: W/Ads(23165):   at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:239)
09-25 17:29:37.600: W/Ads(23165):   at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)
09-25 17:29:37.600: W/Ads(23165):   at com.google.ads.internal.f.b(SourceFile:459)
09-25 17:29:37.600: W/Ads(23165):   at com.google.ads.internal.f.run(SourceFile:430)
09-25 17:29:37.600: W/Ads(23165):   at java.lang.Thread.run(Thread.java:856)
09-25 17:29:37.600: W/Ads(23165): Caused by: libcore.io.ErrnoException: connect failed: ECONNREFUSED (Connection refused)
09-25 17:29:37.600: W/Ads(23165):   at libcore.io.Posix.connect(Native Method)
09-25 17:29:37.600: W/Ads(23165):   at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85)
09-25 17:29:37.600: W/Ads(23165):   at libcore.io.IoBridge.connectErrno(IoBridge.java:127)
09-25 17:29:37.600: W/Ads(23165):   at libcore.io.IoBridge.connect(IoBridge.java:112)
09-25 17:29:37.600: W/Ads(23165):   ... 16 more

It doesn’t give errors on a mobile internet connection…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:51:18+00:00Added an answer on June 12, 2026 at 4:51 am

    I figured out what the problem was.
    I had flashed a new rom that installed a new hosts file wich was blocking my ads…
    After deleting the hosts file the ads were displayed

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Admob SDK and Tobonet SDK . Using each of them in separate
New at using admob within Android. Is it possible to show ads with certain
I am using google admob in my application. I have the following code: GADRequest
Using Android Admob sdk I receive same banner all the time. On different devices
I'm trying to implement admob mediation using the latest admob sdk , and their
Using AdMob in MonoTouch Projects with iOS SDK 4.2 We have a test project
I released my Android app two days ago, using admob advertising. I used my
I've seen example in Monodroid of using admob banners to apps using JNI environment
I am using AdMob 6 for android 2.2 and I see this message in
Using this project: https://github.com/dalexsoto/Monotouch-AdMob-Bindings I am adding the AdMob .a to my MonoTouch app.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.