Admob ads not loading - Failed to load ad: 0

后端 未结 14 1033
猫巷女王i
猫巷女王i 2020-11-30 08:13

I am trying to load Admob Native ads. Previously (before app was updated) ads used to show but now they are not showing. I have posted the code, xml and the Logcat below.

14条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 08:53

    So I had the same error, I have tried everything listed here first.

    1. Waiting for google to send me an email saying AdMob is active. Done, it took about an hour, in fact, if you log in it will give you the status, then I waited for 48~ hours, and still the same issue

    2. The payment setup was not an issue for me because I got paid from an associated AdSense account before.

    3. Then I read all the possible common setup issues that other users here had. I mostly used the sample Admob App ID

      
      

    And the Sample ad Unit Id given on the Admob getting started page, this way you eliminate issues with your account during development.

    1. I Was fairly sure that I had the configuration correct, but to check I downloaded Google's ad samples from GitHub. This way you can check working code, and pop your Admob App ID in and see if the account is set up correctly
    2. I started playing with the build.gradle of their sample, matching what I got to theirs, just updating and adding my dependencies. then I found it, as soon as I went to targetSdkVersion 30 and compileSdkVersion 30 the error arises. so, for now, I'm on SDK 29, till they fix this. I hope some found this useful

    Edit: The issue is reported to google check the status here, and here. it seems to affect Java and Kotlin

提交回复
热议问题