Admob No fill from ad server - failed to load ad: 3

风流意气都作罢 提交于 2019-11-29 09:04:41
pradeep.k

The issues comes only if that particular app is suspended from playstore. Maybe you can try changing the package name and and also with new Admob Id.There is a chance that particular admob id can also be suspended due to compliances.

If you create adunit and use it immediately may show this error, try to load ads after 30 minutes or more time.

You need to use ID that Google provide for you for current test device. You can find it in logcat, just find something like this:

Ads: Use AdRequest.Builder.addTestDevice("903A70A3D439E256BAED43E65A79928E") to get test ads on this device.
Suresh Kerai

it's also possible to luck of inventory. I am also face because of of this. failed to load ad : 3

If your AdMob account is only configured for banner ads and you're using interstitial ads, you may get this problem. My 2 cents.

In my case I found that my billing address was not verified and ads were blocked. Verify billing address it will automatically get fixed. https://www.google.com/adsense/

If you app support Designed for Families.

Bundle extras = new Bundle();
extras.putBoolean("is_designed_for_families", true);

AdRequest request = new AdRequest.Builder()
        .addNetworkExtrasBundle(AdMobAdapter.class, extras)
        .build();

I was testing on Galaxy S4, later my friend tested on Note 2 and it did not show the banner ad. Hence the problem was test device Id. If you are testing then make sure the test device ID is of the device you are testing on.

Basically just try pass your test device id to adBuilder :

/** adRequest Object For test device */
AdRequest adRequest = new AdRequest.Builder().addTestDevice("TEST_DEVICE_ID").build();

/** adRequest Object For Production Device*/
AdRequest adRequest = new AdRequest.Builder().build();

You can find your test divece id in logCat after without test divece id adBuilder request:

I/Ads: Use AdRequest.Builder.addTestDevice("TEST_DEVICE_ID") to get test ads on this device.

I had this problem too. It wasn't until I went to Admob.com and "manually" added my app so I could get my "Ad Unit Id". I put this Ad Unit Id string as the argument my adView.setAdUnitId call. Then I installed and opened the "release" APK I generated via Eclipse. File > Export > Export Android Application

I had this issue as well today. My app was not suspended, but the apk name change did work. We had renamed a test app to release it to production; we changed the apk name as a result. This screwed up our ad fill on both MoPub and Admob.

Ads are disabled from Admob server, your code is ok, try to change the package name, and see if ads are displayed. Then contact admob to see the problem.

In my case this was the error as result of requesting a geo-restricted ad from a region that's not supported for that ad. If I hardcoded the location for the ad request bundle to be inside the acceptable region, or not include a location in the request at all, the ad was rendered just fine; otherwise I had the same error as OP in console.

In my case my banner ads have response code 3 on some devices with high API and especially with wide screen (I have used smart banner size), changing dependcy from com.google.android.gms.ads to com.google.firebase:firebase-ads (In case you are using Firebase) solved my problem.

In my case I was testing using an emulator and getting the same error. After change to a phone everything works.

Try another test device.

Phil C

It might be because you're not waiting for the ad to load.

For me implementing the AdLoaded method of the AdListener did the job.

    mAdInterstitial.loadAd(AdRequest.Builder().addTestDevice("XXXXXXX").build())
    mAdInterstitial.adListener = object : AdListener() {
        override fun onAdLoaded() {
            mAdInterstitial.show()
        }
    }
GauRav MisHra

try this:

MobileAds.initialize(this, getString(R.string.admob_app_id));
AdView mAdView = findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();      
mAdView.loadAd(adRequest);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!