One of my android applications (application ID: com.abc123.abc) is not receiving any test Ads unless I changed the application's ID which I don't want to do so because the application is released to the google play store. I am getting this error message "ERROR_CODE_NO_FILL" every time when I request the test Ads. When I change the application's ID to something else like "com.abc123.abcd", the testing Ads are working fine again. I'm using Android studio to conduct the request for the test ads. My source code is shown in the screenshots below. Any feedback would be appreciated.
.XML
enter image description here
.java
enter image description here
I have made a mobile app with Flutter and I use Admob.
Users started to use my app and when I check on Firebase it says users view non personalized ads. What can I do to make Admob show personalized Ads to my users?
Good afternoon, I am try to implement ads in my application but my real AD does not appear, only test AD, in the admob tab it appears that more than 300 requests were made, and there is no ads in the application. Is it necessary for me to publish my app in the play store so that the ads start to appear? And my account has been verified for a long time. In my Logcat appear this error Ad failed to load: 3, what i needed to do , to the ads start to showing?
page admob
Logcat
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
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.
I also faced the same issue. My app was showing test ads, but not real one.
In my case ads started showing up when I uploaded my app to Google Play.
To confirm your app shows ads correctly, you may first add your app to test tracks first.
Error code 3 means your implementation is correct but your app is not approved by google admob,so you have to submit your app for approval, once your app is approved than your app will start receiving ad after 24 hrs and you have to setup your payment method in google admob.
you can submit your app through this link for approval:
https://support.google.com/admob/contact/android_APK_submission?hl=en
If you are using app-ads.txt for your app, then you also have to include this line in your app-ads.txt file in order to load ads using the demo ad units:
google.com, pub-3940256099942544, DIRECT, f08c47fec0942fa0
Here the official Google AdMob reference: https://developers.google.com/admob/android/test-ads
It shows when your device is not connected with Test Mode in your AdMob account. Connect your device with test mode and try this error will resolve.
https://apps.admob.com/v2/settings/test-devices/list?_ga=2.248138183.156733708.1671428691-2046682952.1670650994&_gac=1.127285631.1670650998.Cj0KCQiA1sucBhDgARIsAFoytUvUl2cXmiqt4eGOJlPz7EOFYJxnbpcLX3uIEhk71c3oHZ3BxMsgBE0aAlkcEALw_wcB&_gl=1*1ubza84*_ga*MjA0NjY4Mjk1Mi4xNjcwNjUwOTk0*_ga_6R1K8XRD9P*MTY3MTQyODY5MS40LjAuMTY3MTQyODY5MS4wLjAuMA..
I have integrated facebook SDK in my ANDROID app for sharing functionality,and as per facebook guidline it will asks for permissions before sharing anything if user doesn't grant it before.
so,does there any way to remove that permissions dialog or if it can handle it in background without showing it over the my android app??
Note:for FB SDK integration I am not using webview dialog or FB dialog , I have implemented my own dialog view for sharing and I am sharing with installed Native FB App.
I'm fairly certain it's against the Facebook policy to post on the user's behalf without their explicit permission to access their data.
You may use Account Information in accordance with your privacy policy and other Facebook policies. All other data may only be used outside your app after you have obtained explicit user consent.
See policy.
I have AdMob mediation working and it serves AdMob ads fine but when I put in an active ID for MMedia, or MobFox, I get requests but 0 fill. Anyone know why this is?
You need to have the libraries and mediation adapter libraries for those other ad networks in your app as well.