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.
I had this issues because of AVD settings. Try to change AVD for debug or try to use real device.
It also happened to me that error"fail to load ad 0" but there is no problem just wait for sometimes like an hour or 2 or even 5 hours just wait you will get the ads.
In my case missing payment information was an issue. When you login to Admob dashboard you will see notice over there which says ads won't work until we add payment details.
It also happens when trying to request an ad from a placement with different type. For example, banner from interstitial and so on. I hope this will help somenone.
Open the build.gradle
file inside your application module directory:
and add this dependency
dependencies {
......
......
implementation 'com.google.android.gms:play-services-ads:19.2.0'
}
Constant Value: 0
This error generally occurs in newly created ads. So wait for few hours for the ads to be loaded.