Home > Enterprise >  Admob test ads is not showing on a specific app ,but the same code is working fine on other app
Admob test ads is not showing on a specific app ,but the same code is working fine on other app

Time:12-29

Ad-mob test ads is not showing on one of my app ,but the same code is working fine on my others app, then I find out that this is happening because of the app package name ,if I rename the package name then also ads are showing.

Some months ago the app were showing ads , but app got ads serving limited issue ,then I deleted all the ad units from Admob of the app ,after one week this issue solved ,then I wanted to implement ads again but since then even test ads are not showing.

and I couldn't found an error on logcat so I don't Know what to do

CodePudding user response:

There are two things here.
Either you show test ads via local configuration before initializing the sdk like -

val testDeviceIds = Arrays.asList("Your Test ID from logcat. ")
val configuration = RequestConfiguration.Builder().setTestDeviceIds(testDeviceIds).build()
MobileAds.setRequestConfiguration(configuration)

Or add the following in your app-ads.txt file. google.com, pub-3940256099942544, DIRECT, f08c47fec0942fa0.

More info here: https://developers.google.com/admob/android/test-ads

CodePudding user response:

Admob does not deliver ad when your app live any time. Add test id's and change your application id then test your implementation. When you live your application then restore your application id in gradle and live your app. When your app live on play store admob deliver your ad.

CodePudding user response:

Same issue

Admob ads or test ads not showing for particular package name

admob ads not showing for particular package name(even test ads are not working) but works on other package names how can i solve this

  • Related