为什么要在任何应用程序不显示AdMob的广告

编程入门 行业动态 更新时间:2024-10-26 12:28:49
本文介绍了为什么要在任何应用程序不显示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": "googleads.g.doubleclick: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.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.ConnectException: googleads.g.doubleclick/127.0.0.1:80 - Connection refused 12-11 14:32:07.378: W/Ads(21029): at org.apache.harmony.luni.PlainSocketImpl.connect(PlainSocketImpl.java:207) 12-11 14:32:07.378: W/Ads(21029): at org.apache.harmony.luni.PlainSocketImpl.connect(PlainSocketImpl.java:437) 12-11 14:32:07.378: W/Ads(21029): at java.Socket.connect(Socket.java:1002) 12-11 14:32:07.378: W/Ads(21029): at org.apache.harmony.luni.internal.www.protocol.http.HttpConnection.<init>(HttpConnection.java:75) 12-11 14:32:07.378: W/Ads(21029): at org.apache.harmony.luni.internal.www.protocol.http.HttpConnection.<init>(HttpConnection.java:48) 12-11 14:32:07.378: W/Ads(21029): at org.apache.harmony.luni.internal.www.protocol.http.HttpConnection$Address.connect(HttpConnection.java:322) 12-11 14:32:07.378: W/Ads(21029): at org.apache.harmony.luni.internal.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:89) 12-11 14:32:07.378: W/Ads(21029): at org.apache.harmony.luni.internal.www.protocol.http.HttpURLConnectionImpl.getHttpConnection(HttpURLConnectionImpl.java:285) 12-11 14:32:07.378: W/Ads(21029): at org.apache.harmony.luni.internal.www.protocol.http.HttpURLConnectionImpl.makeConnection(HttpURLConnectionImpl.java:267) 12-11 14:32:07.378: W/Ads(21029): at org.apache.harmony.luni.internal.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.ConnectException: googleads.g.doubleclick/127.0.0.1:80 - Connection refused

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

doubleclick 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: en.wikipedia/wiki/Hosts_(file) For winodws it would **%SystemRoot%\system32\drivers\etc\hosts**

更多推荐

为什么要在任何应用程序不显示AdMob的广告

本文发布于:2023-11-05 04:00:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1559834.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:要在   应用程序   广告   AdMob

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!