问题描述
您好,我尝试了一些来自 adMob 的演示广告,直到昨天,我才能在我的应用程序中成功显示一些广告,但今天当我尝试运行同一个应用程序时,它显示以下内容:
Hi I have tried some demo ad's from adMob I could successfully display some ad's in my application until yesterday but today when I tried to run the same application it was showing the following :
没有为 GMSG 找到 GMSG 处理程序:gmsg://mobileads.google.com/jsLoaded?google.afma.Notify_dt=1419570286070广告加载失败:3
No GMSG handler found for GMSG: gmsg://mobileads.google.com/jsLoaded?google.afma.Notify_dt=1419570286070Failed to load ad: 3
所以我尝试登录查看我的帐户,然后显示以下消息.
so I have tried to login to check my account, then the following message is shown.
403.这是一个错误.很抱歉,您无权访问此页面.这就是我们所知道的一切.
请告诉我这个问题的解决方案...
please let me know the solution for this issue...
推荐答案
最初我甚至在开发阶段也点击直播广告,所以我的 adMob 帐户被阻止并且无法从 adMob 服务器获取任何直播广告,所以经过一些调查我知道如何在测试和开发阶段展示一些虚拟广告.
Initially I used to click live ad's even during the development phase so my adMob account is blocked and not able to get any live ad's from adMob server so after some investigation I get to know how can i display some dummy ad's for testing and development stage.
答案如下:
AdRequest adRequest = new AdRequest.Builder().addTestDevice("69AEF8955FAE39BFDF64CDB6D8911089").build();在测试和开发阶段使用上述代码行.将 69..... 替换为您在运行应用程序时在 logcat 中找到的字符串.
AdRequest adRequest = new AdRequest.Builder().addTestDevice( "69AEF8955FAE39BFDF64CDB6D8911089").build();use the above line of code during testing and development phase.Replace 69..... with the string that u find in your logcat when u run your application.
AdRequest adRequest=new AdRequest.Builder().build();在生产阶段使用上述代码,在测试和开发阶段对此进行注释.
AdRequest adRequest=new AdRequest.Builder().build();use the above code during production phase,comment this during testing and development phase.
这篇关于403. 这是一个错误.很抱歉,您无权访问此页面.我们知道的就这些的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!