Home » Android » android – failed to load ad : 3

android – failed to load ad : 3

Posted by: admin March 11, 2020 Leave a comment


I’m setting an ad to my Android application using DoubleClick and can’t manage to show the final ad, can someone help me?

When I test an ad by adding “.addTestDevice(“xxx…”)” I get the test ad but when I remove this line I get the following error :

W/Ads: No fill from ad server

W/Ads: Failed to load ad: 3

I set my ad like this :

PublisherAdRequest adRequest = new PublisherAdRequest.Builder().build();

And my publisherView look like this :




What could be wrong?

Thank’s in advance for your answers.

How to&Answers:

W/Ads: Failed to load ad: 3

As per the Documentation you are getting the following error code:

public static final int ERROR_CODE_NO_FILL

The ad request was successful, but no ad was returned due to lack of
ad inventory.

Constant Value: 3

Based on the post onFailedToReceiveAd – Ad request successful, but no ad returned due to lack of ad inventory when using admob with adwhirl:

If you are getting this error, then your code is correct. The issue is
that AdMob does not always have an ad to return for every request.
This may happen particularly if you have just registered your AdMob
publisher ID, as it takes some time and multiple requests before the
new ID starts returning ads.

Another reason your fill rate may be low is that you don’t have
AdSense backfill enabled, or you have filtered out some ads. Check
your app settings to see if that is the case.


There is one option which helped in our case.
As @blizzard mentioned in your application settings in Google Developer Console there is a section which called “Pricing and Distribution”. In this section there is a checkbox “CONTAINS ADS”. In our case it was disabled. After enabling we successfully received ads.
Hope it helps.


I had the same error in my app. I was launching the app in debug configuration. The problem was solved as soon as I run the release version of my app on the same device. In Android Studio just go to Build -> Generate Signed APK and choose the release configuration. Then install release .apk on your device. In debug configuration you can also check whether your test ads appears by adding AdRequest.Builder.addTestDevice(“YOUR TEST DEVICE”). If it’s ok with ads appearing, it means you just need release configuration.


One new and update answer:
Many apps that were removed this October(2018) for the lack of Privacy Policy are unable to receive ads after they get back in Play Store.
You must use this form to request a “reset” for that app’s ads. https://support.google.com/admob/contact/appeal_policy_violation

Took me a few days to realize and find the answer.
Hope you get your ads back.


This is a simple WORKAROUND (no solution):

You can install a mediation such as InMobi:

In this way, if for whatever reason admob is not showing you ads, you can still show them from other ad networks.


Option 1: Go to Settings-> search Reset advertising ID -> click on Reset advertising ID -> OK. You should start receiving Ads now

No search option? Try Option 2

Option 2: Go to Settings->Google->Ads->Reset advertising ID->OK

No Google options in Settings? Try Option 3

Option 3:Look for Google Settings (NOT THE SETTINGS)->Ads->Reset advertising ID


W/Ads: Failed to load ad: 3

It Means that your code is correct but due to less amount of request to the server your ads are not Visible.
To check the Test ADS you Should put the code in loop for some time, and you have to give multiple requests so that your admob receives multiple requests and will load the ads immediately.

Add the below code

for(int i=0;i<1000;i++) {
            AdRequest adRequest = new AdRequest

Restart Your application multiple times.

Remove the Loop after you start receiving ads.


Don’t forget to add payment methods on Google AdMod. It was my issue with “Error code 3”.
Anyway, when your account Google AdMod will be ready to show ads (for tested device or real users) they send you email that your account verified and ready to work!
After this letter everything should work fine.


I’m just going to leave this here incase it works for someone. After trying all the fixes mentioned in all the forums and posts what worked for me is simply using a global AdRequest object. I would use the same object when calling loadAd on each adView in each Activity. I have seen that it tends to load the same Ad on each AdView regardless of activity but at least now I get ads.


I hadn’t published a version of my app with ads yet.

I was seeing error code 3: ERROR_CODE_NO_FILL after I switched from emulators with a debug version to a real device with the release version (installed through adb shell commands).

I waited 12+ hours and I could see ad requests on the AdMob portal, but no matches (match rate of 0%). I went to the Play Console > Store Presence > Pricing & distribution and switched the radio button for Contains ads to Yes, it has ads. I even tried uploading my app bundle (without publishing) to the Play Console. Neither of these worked.

Various AdMob help articles (including the one linked below) mention that if you’ve been seeing test ads (ads labeled with “Test Ad”), then your code is working and real ads should work as expected (once they build up inventory).

With that in mind, I went ahead and published my app to the Play Store and once the update was live, I downloaded it via the Play Store app on my real phone and the ads loaded no problem and my match rate is now sitting at 66% on AdMob. From the AdMob FAQ article, it sounds like it typically takes a few hours and could have taken up to 24 hours for ads to start showing.

ad mob FAQ re: how long does it take ads to show

Source: https://support.google.com/admob/answer/2993019?hl=en


If error continues last try is create a new placement in admob. This works for me. Without changing anything(except placement id string) else in code ads start displaying.


If your published app has no admob and its settings in Google Developer Console (called “Pricing and Distribution”) “CONTAINS ADS” is uncheched. Always develop with test id with logcat output.


On new admob version
USE this :

//Load your adView before

    adView.setAdListener(new AdListener() {    

        public void onAdFailedToLoad(int errorCode) {
            // Code to be executed when an ad request fails.
            Toast.makeText(Your current activity.this, "Ad failed: " + errorCode, Toast.LENGTH_SHORT).show();


If Ads load on your emulator, meaning that they return test ads, that should mean that there’s nothing wrong with your code. Do they load test ads on your phone as well?

If you’re able to see test ads on the emulator and test devices, then it usually just means that AdMob (assuming you’re using AdMob) is unable to return an Ad due to a lack of Ad inventory. If this is the case, then when looking at the Logcat you should see the line W/Ads: Failed to load ad: 3.

What you should do is plug in an Android phone to your computer, and then in Android Studio click on Logcat, and in the top left you should see some devices to select from. Select your phone if it’s listed (it should be). The logcat will now be printing everything your phone is printing. In the filter bar, type in ads to filter out stuff you don’t need to see.

Then open your application in your phone, and check the logcat. Make sure your device isn’t considered a test device. If you see W/Ads: Failed to load ad: 3 then that should mean that the problem lies with AdMob and not you.

If it doesn’t say that and it says something else, then I obviously don’t know.


I’ve made the stupidest error. Passed app id into MobileAds.initialize from one app and used placement id in loadAd from another admob app.

Once I corrected placement id all come to work.


For me the reason was that one device, a Xiaomi Mi 9 just was not working anymore and not displaying ads, so I pulled out my tablet and I saw no errors and it was displaying ads in the release.