loadAd always fail to load, errorcode 3
See original GitHub issueHere is my code, i put the NativeExpressAdView
in a dialog, but it always return error code 3
NativeExpressAdView adView = new NativeExpressAdView(activity);
adView.setAdSize(new AdSize(280, 250));
adView.setAdUnitId("my-ad-unit");
adView.setVideoOptions(new VideoOptions.Builder()
.setStartMuted(true)
.build());
adView.setAdListener(new AdListener() {
@Override
public void onAdFailedToLoad(int i) {
super.onAdFailedToLoad(i);
}
});
adLinearLayout.addView(adView);
adView.loadAd(new AdRequest.Builder().addTestDevice("my-device-id").build());
logcat
:
03-27 16:30:21.241 21093-21093/com.xxx.xxx I/Ads: Starting ad request.
03-27 16:30:21.618 21093-22617/com.xxx.xxx I/Ads: No fill from ad server.
03-27 16:30:21.619 21093-21093/com.xxx.xxx I/Ads: Scheduling ad refresh 30000 milliseconds from now.
03-27 16:30:21.619 21093-21093/com.xxx.android W/Ads: Failed to load ad: 3
But it’s working good if i change adUnitId
to the one in sample project you provided. What may cause this problem???
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
"Failed to load ad: 3" with DoubleClick - Stack Overflow
The issue is that AdMob does not always have an ad to return for every request. ... I was seeing error code 3:...
Read more >Failed to load ad: 3, No fill from ad server. - Google Groups
I read somewhere that error code 3 means my account or my app is suspended or blocked from the ad network for some...
Read more >Ad failed to load : 3 - Google AdMob Community
If you are getting this error, then your code is correct. The issue is that AdMob does not always have an ad to...
Read more >Ad Load Errors | Android - Google Developers
When an ad fails to load, there is always a callback that is called ... Gets the domain from which the error came....
Read more >Error codes in Device Manager in Windows - Microsoft Support
Lists the error codes that may be reported by Device Manager and the possible ... (Code 3)” ... Code 41 “Windows successfully loaded...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A newly created ad unit will take an hour, but changes to settings should be faster (guessing 10-15 minutes if not sooner).
I have an open feature request against the front-end team to expose this in the front-end, since this is really where this information should be!
I’ve tested, my
unit id
worked as expected. I think maybe you guys can provide a document that can explain this to developers. Thank you @ericleich 😺