Whenever I run the app with test ads, I run into the following error-
I/Ads: Ad failed to load : 3
I have followed the instructions from Admob closely for implementing banner and interstitial ads.
Also, I am not using a new account. My Admob account is over 2 years old and I have ads working perfectly fine in another app (I implemented ads in that application only last week).
Note that I had already created the ad units for this current application a while back, and only today decided the include ads in it. I have tried to create new ad units and tested using the test ad unit IDs but even the test ads do not load and give the above error.
On all the questions I have seen on this topic, test ads work but real ads don't whereas that is not the case for me. Both types of ads do not load.
Anyone has any suggestions on how to get the ads to work?
I had this exact same issue and looked through tons of stackoverflow questions but couldn't find an answer that matches me.
For me, if you log into Admob, you have to add an "app-ads.txt" file which then allows for the ads to be sent.
For reference, here is a short tutorial:
https://support.google.com/admob/answer/9363762?hl=en
If you don't want to create an entire website, just use a free website hosting device. It doesn't matter if the name has like 20 numbers in it, you just need a working one.
It is not your fault, when you see "I/Ads: Ad failed to load : 3"
It means: "The ad request was successful, but no ad was returned due to lack of ad inventory."
I am used to always see "test ads" many times.
But, recently (~ 1 week ago) I kept seeing this message on "test ads".
I was quite curious about it, but it is no problem. This is just temporary.
Later it should work again.
See here for further references:
failed to load ad : 3
Admob ad request always return code 3
Related
In all my android applications suddenly AdMob test ads not working. Every time AdMob returning a no fill error code 3.
I have implemented the same thing which is provided here.
I am also using test unit ids which are provided by AdMob.
I have already added the device as a test device.
If I perform the same implementation in a separate demo project that time test ads showing perfectly. but after that, if I implement the same thing in my live app. it is returning an error every time.
Please help me to resolve this issue.
After searching a lot & reaching Google Mobile Ads SDK Technical Forum. Finally got a solution.
For Demo Test Ads
Step 1: Use test ad unit IDs.
Step 2: Setup an app-ads.txt file. and must include below a line
google.com, pub-3940256099942544, DIRECT, f08c47fec0942fa0
For Live ads with Test User
Option 1: Add your test device in the AdMob.
Option 2: Add your test device programmatically
I know there's a lot of questions regarding this issue, but they don't fit my specific case.
I have an app in Google Admob with 2 ad units (banner and interstitial). I am using that app from Admob for 5 different apps in the Play Store.
So I use the same App ID, Banner ID, Interstitial ID for all apps in the Play Store, as I use the same app from Google Admob.
It works like a charm for these 5 apps.
Now I want to publish another app and I tried to do the exact same thing, so I used the same ad implementation for the ads and again the same App ID, Banner ID, Interstitial ID. (I simply copied all code from the other apps)
But this time, no ads appear. I'm already waiting for ca. 2 weeks for them to appear. One single time I had "luck" and an ad appeared (for whatever reason), but besides that single time, an ad was never shown.
If I use the Test Ad IDs from Admob, all Test ads show. So the implementation is correct.
The Logcat however shows two errors:
Ad failed to load : 3 and Ad failed to load : 1 (mostly it's error 3 though)
I looked them up and they mean:
3 means that there are no ads filled, so everything is correct, but Admob doesn't have any ads they want me to display right now.
1 means that there are some ID errors (e.g. banner ID for the interstitial).
But, to me, both don't make any sense: How don't they have any ads to display when they have always ads to display for the other 5 apps? I mean it's the same app in Google Admob.
And how can there be an ID error when it works with the Test ads and especially it works in the other 5 apps?
I have tried to install the app as a signed APK on my physical device, doesn't change anything (however, on the other apps the ads always appeared even in debugging mode).
So I really don't know what could be the problem in this case. As said, I'm already waiting for 2-3 weeks for the ads to show (and I was using the app constantly throughout that time; so ad requests were made constantly). So I don't think it is a matter of time.
Any help?
I'm currently unable to display a test rewarded ad. I am using the rewarded ad Sample ad unit ID provided in the doc: ca-app-pub-3940256099942544/5224354917.
I am getting error code 3, which according to the documentation:
The ad request was successful, but no ad was returned due to lack of ad inventory.
Which doesn't seem to make sense as this is a test ad, and should always be available?
The full error:
Ad failed to load: LoadAdError(code: 3, domain:
com.google.android.gms.ads, message: No ad config.) => No ad config.
For reference, I've also opened an issue on the googleads-mobile-flutter repo with the full log outputs.
Any ideas why I wouldn't be able to fetch even a test ad?
Also please leave a comment if you've been able to successfully display test rewarded ads or real rewarded ads with this plugin lately.
I was using the same ad Unit to test two days ago and it was working but not working today with the same error you are having.both the Android Ad unit and the IOS ad Unit so i believe the issue is from the Network.
I have had this exact problem for a week. Finally today I switched it to the real ad id and it worked. It looked like a real ad but at the top it was labeled "Test Ad". Do you think that means I can use it until they fix the real test add or are they going to yell at me?
UPDATE: The issue has resolved itself without any changes to the code. I can only assume that there was an issue on Google AdMob's side.
Nonetheless, the answer below still allowed to test ads while the sample ad unit was not working.
If you get here because the sample ad provided here does not work, see the rest of this answer for an alternative solution.
It seems that using a real ad unit works, as opposed to the sample rewarded ad unit ca-app-pub-3940256099942544/5224354917. Thank you #Kurt Lee Kalbus
I am not sure why the sample ad unit doesn't work at the moment, but it seems like an error from the server.
If you need to test rewarded ads right now, without serving real ads:
from an Android emulator: use a real rewarded ad unit. This will serve a test ad. As per the docs: "Android emulators are automatically configured as test devices."
Otherwise, you should add your device to your list of test devices before using a real ad unit. See Add your test device in the AdMob UI
All my new apps get "ERROR_CODE_NO_FILL" error and get "I/Ads: No fill from the ad server." and "W/Ads: Failed to load ad: 3" errors in the Logcat.
My old apps still getting ads (from the same AdMob account), test ads are working well.
I tried to install the app on another device and I got the same problem also created new ad units, tried different version of Android Studio but there was no hope and the weird thing is that when I create new APK files from the old projects they get the same error however the old APK files getting ads normally (Both of them uses the same ad unit id, AdMob account and same app id). I have been searching for a solution for a week, I tried everything and got the same error. everything looks normal but I don't know why I get this error, so please help me. I was working on a project and I am done but I can't get ads any more.
PLEASE HELP ME. and sorry for my bad English.
I had same problem for admob ads .i added test id then also not showing ads on device. it's disable for 3-4 week after publishing live.
because there is only one download so.when you have 5+ installed device from store then your automatically showing on app.
if your admob ads are not showing on app don't worry it's will enable after few days.
I'm adding AdMob ads (say that five times fast) to my finished, published Android app. I added the code from the PDF included with AdMob, following their instructions to a tee. The test ads show up fine on my emulators and specified test devices. They just don't appear in the published marketplace app when you download and run it. I still get impressions on my AdMob page however. Any ideas?
Admob sometimes doesn't have ads to display. This is worse for some apps than others. There are a few things to do to help mitigate this problem:
Enable adsense ads - this gives a larger pool of ads
Ensure that you have house ads available for all of your apps in Admob. That way, if they can't find paying ads, they'll at least show your house ads. This will significantly raise your fill rate, but not directly raise your income (depends on what you do with the house ads).
I know that the admob code does not display anything until it connects to the server and receives an ad. In my app it can take several seconds for the ad to display, but not usually longer than that.
I notice this fairly often with admob on one of my apps, while another seems to serve up ads just fine. Can't figure it out either, but I suspect it has to do with AdMob not having any campaigns that tailor to your application description and keywords.
I'm seeing exactly the same behavior. Does your app perform any network tasks on startup? If so, here is a thread on admob's support group which might provide an explanation:
https://groups.google.com/d/topic/admob-publisher-discuss/hR7zs_GBSRw/discussion
Unfortunately for me delaying my app's network activity while waiting for admob isn't really an option, so I wish admob/google would release a fix.