为什么要在任何应用程序不显示AdMob的广告 [英] Why admob ads in ANY apps not displaying

查看:150
本文介绍了为什么要在任何应用程序不显示AdMob的广告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好了一天的时间。 我有个问题。我需要在我的应用程序,以测试AdMob的功能,但我的手机不能显示任何AdMob的广告。 在这里,日志从logcat的广告时,试图加载:

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.)

和这个错误是发生在任何应用程序的任何时间。我没有任何AdsFree应用程序。 互联网是在线和工作正常。我能做些什么来解决这个问题?

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?

推荐答案

您与改变的HOSTFILE的设备上测试这个,阻止双击请求:

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指向IP 127.0.0.1:80,这是你自己的IP。如果您在计算机模拟器上这样做,试图找到主机*文件,并删除该行有关DoubleClick。

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.

这是常有的事情广告过滤器和跟踪Cookie受体阻滞剂为你做什么。如果您已经安装任何手机(可能是一个植根电话只有行动)添加过滤,或更改hosts文件,这将是同样的问题,显然

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

*你可以在这里的所在找到一些线索: HTTP://en.wikipedia .ORG /维基/ Hosts_(文件) 对于的Winodws它会 **的%SystemRoot%\ SYSTEM32 \ DRIVERS \等\主机**

* 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**

这篇关于为什么要在任何应用程序不显示AdMob的广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆