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

后端 未结 21 1034
余生分开走
余生分开走 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 05:05

    You have to verify the size of the ad you created, if it is smaller it will always get this error. Just verify and change to the specific size:

      ads:adSize="360x100"
    
    0 讨论(0)
  • 2020-11-29 05:05

    If you have just implemented ads and want to test it only and still not getting ads seen then use this test ads ids Sample Ads Ids

    One more thing, if you are testing it in emulator then use this in Kotlin

    val adRequest = AdRequest.Builder()
                    .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
                    .build()
    

    Also go through this

    0 讨论(0)
  • 2020-11-29 05:07

    Make sure you've added this in the AndroidManifest.xml file

    <meta-data
                android:name="com.google.android.gms.version"
                android:value="@integer/google_play_services_version" />
    
    0 讨论(0)
提交回复
热议问题