且构网

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

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

更新时间:2021-09-20 22:42:16

最初,即使在开发阶段,我也经常点击实时广告,因此我的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();
在测试和开发阶段使用上面的代码行。用您在运行应用程序时在logcat中找到的字符串替换69 ...

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 =新的AdRequest.Builder()。build();
在生产阶段使用上面的代码,在测试和开发阶段对此进行注释。

AdRequest adRequest=new AdRequest.Builder().build(); use the above code during production phase,comment this during testing and development phase.