问题描述
我使用Admob广告制作了应用,但无法正常运行。
当我想在智能手机上进行测试时遇到错误
I make app with Admob ads and it not work properly.When I want to test this on smartphone I get error
W / Ads:获取广告响应时出现问题。错误代码:2
无法加载广告:2
W/Ads: There was a problem getting an ad response. ErrorCode: 2Failed to load ad: 2
要将admob添加到此应用程序,我使用了官方教程
To add admob to this app I used code from oficial tutorialhttps://developers.google.com/admob/android/quick-start#give_your_app_an_ad_unit_id
我在小米Redmi注意事项2上对其进行了测试。
当我在该代码中使用测试模式时,也会遇到相同的错误。
I test it on Xiaomi Redmi note 2.When I use test mode in that code I get the same error.
推荐答案
我在Redmi note 2上也发生了同样的事情,但是它在其他设备上也可以使用。我认为最初安装的是一个广告拦截器,但我仍然找不到。
The same thing happens to me on my Redmi note 2. But it works on other devices. I assume there's an adblocker installed initially that I just haven't been able to find yet.
这篇关于Admob无法正常运作错误代码:2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!