Failed to load ad: 3 with DoubleClick
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.
EDIT:
Update app-ads.txt and use "setTestDeviceIds" to test on physical device.
As of time of editing these instructions:
https://developers.google.com/admob/android/test-ads
worked. To test ads I used Demo ad Unit and needed to add the app-ads.txt line and wait for it to be crawled by admob crawler (which alone worked on Android-12 emulator), but still gotten instruction in Logcat to use the "setTestDeviceIds" - code under above link, which turned out to be required to display test ads on physical device connected via USB.
Admob ad request always return code 3
Here my 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.
According to documentation :-
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
Which means:-
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.
Thanks :)
Related Topics
How to Read Contacts on Android 2.0
Different Values Folders in Android
How to Implement Onfragmentinteractionlistener
Background Task, Progress Dialog, Orientation Change - Is There Any 100% Working Solution
This Handler Class Should Be Static or Leaks Might Occur: Incominghandler
How to Make a Custom Keyboard in Android
Dilemma: When to Use Fragments VS Activities:
How to Prevent Custom Views from Losing State Across Screen Orientation Changes
How to Update a Single Row in a Listview
How to Use the Animation Framework Inside the Canvas
Vertical (Rotated) Label in Android
Get Real Path from Uri, Android Kitkat New Storage Access Framework
Key Hash For Android-Facebook App
Best Practice For Storing and Protecting Private API Keys in Applications
Getting the Screen Density Programmatically in Android
How to Display Count of Notifications in App Launcher Icon
How to Use Drawerlayout to Display Over the Actionbar/Toolbar and Under the Status Bar