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 6948143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:47:01+00:00 2026-05-27T13:47:01+00:00

Good time of a day. I have a problem. I need to test admob

  • 0

Good time of a day.
I have a problem. I need to test admob functionality in my app, but my phone can’t displaying any admob ads.
Here the log from Logcat when ads tries to load:

12-11 14:32:07.375: I/Ads(21029): Received ad url: <"url": "http://googleads.g.doubleclick.net:80/mads/gma?preqs=6&u_sd=1.5&slotname=a14ec2c281ec768&u_h=533&u_w=320&msid=com.academy.tarot.divinations.m&js=afma-sdk-a-v4.1.1&isu=766D9982A610C2807FBA0F6C480742E4&format=320x50_mb&net=wi&app_name=15.android.com.academy.tarot.divinations.m&u_audio=1&hl=en&u_so=p&output=html&region=mobile_app&u_tz=-240&ex=1&client_sdk=1&askip=1", "afmaNotifyDt": "null">
12-11 14:32:07.378: W/Ads(21029): IOException connecting to ad url.
12-11 14:32:07.378: W/Ads(21029): java.net.ConnectException: googleads.g.doubleclick.net/127.0.0.1:80 - Connection refused
12-11 14:32:07.378: W/Ads(21029):   at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
12-11 14:32:07.378: W/Ads(21029):   at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:437)
12-11 14:32:07.378: W/Ads(21029):   at java.net.Socket.connect(Socket.java:1002)
12-11 14:32:07.378: W/Ads(21029):   at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.<init>(HttpConnection.java:75)
12-11 14:32:07.378: W/Ads(21029):   at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.<init>(HttpConnection.java:48)
12-11 14:32:07.378: W/Ads(21029):   at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection$Address.connect(HttpConnection.java:322)
12-11 14:32:07.378: W/Ads(21029):   at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:89)
12-11 14:32:07.378: W/Ads(21029):   at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHttpConnection(HttpURLConnectionImpl.java:285)
12-11 14:32:07.378: W/Ads(21029):   at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.makeConnection(HttpURLConnectionImpl.java:267)
12-11 14:32:07.378: W/Ads(21029):   at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:205)
12-11 14:32:07.378: W/Ads(21029):   at b.run(Unknown Source)
12-11 14:32:07.378: W/Ads(21029):   at java.lang.Thread.run(Thread.java:1019)
12-11 14:32:07.378: D/webviewglue(21029): nativeDestroy view: 0x2dbe88
12-11 14:32:07.378: I/Ads(21029): onFailedToReceiveAd(A network error occurred.)

And this error is occuring in any time in any apps. I don’t have any AdsFree apps.
Internet is online and works fine. What I can do to solve that problem?

  • 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-05-27T13:47:02+00:00Added an answer on May 27, 2026 at 1:47 pm

    You are testing this on a device with a changed hostfile, that blocks doubleclick requests:

    java.net.ConnectException: googleads.g.doubleclick.net/127.0.0.1:80 - Connection refused
    

    doubleclick.net points to the ip 127.0.0.1:80, which is your own IP. If you are doing this on a computer with the emulator, try and find the hosts* file, and remove the line about doubleclick.

    This is a common thing ad-filters and ‘tracking cookie’ blockers do for you. If you have installed any “add filtering” on your phone (possibly a rooted-phone only action), or changed the hosts file, it would be the same problem obviously

    * you can find some hints here of where it is located: http://en.wikipedia.org/wiki/Hosts_(file)
    For winodws it would **%SystemRoot%\system32\drivers\etc\hosts**

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

Sidebar

Related Questions

I need to have a database with different rates at different time of day
Good day code knights, I have a tricky problem that I cannot see a
Good time of day! I successfully used apache + php on windows 7, but
Good day, I am having an interesting problem that I cannot understand. I have
Good day. I'm working on a fps game, and I have a problem with
Good day to all. I have a booking site. Here I need to integrate
So I have been playing with jQuery for a good time now and I'm
I'm still relatively new to C++ and programming, but having a good time learning.
Good day, I have been searching for a way to format output using writeline/write
Good day guys, After browsing a bit in my spare time at work, I

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.