且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

403. 这是一个错误.很抱歉,您无权访问此页面.我们知道的就这些

更新时间:2022-05-25 23:48:39

最初我甚至在开发阶段也点击直播广告,所以我的 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.