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:
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"
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
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" />