admob getting an ad response. ErrorCode: 0 Failed to load ad:0

后端 未结 21 1289
余生分开走
余生分开走 2020-11-29 04:12

I have followed many answers about that error here, but my problem is not solved. Every time I run my app no ads appear and I get this error message in Logcat:

21条回答
  •  清歌不尽
    2020-11-29 04:53

    I added the code below for the testing environment

     AdRequest adRequest = new AdRequest.Builder().addTestDevice(your device id)
     //When you testing on emulator
    .addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build();
    

提交回复
热议问题