question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

loadAd always fail to load, errorcode 3

See original GitHub issue

Here 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:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ericleichcommented, Mar 28, 2017

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!

0reactions
lumenghzcommented, Mar 28, 2017

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 😺

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found