-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NativeExpressAdView - Failed to load ad: 0 #27
Comments
I got this issue as well. |
With Native Ads Express, your NativeExpressAdView size needs to fit in the range of sizes you picked in the AdMob Front-end. In this case, Smart banner is not big enough. See the Choosing a Size section in the docs for what the ranges are for the Native Ads Express templates. Now see how the sizing of Smart Banners works, since you chose SMART_BANNER as your size. Let's say you're running this app on a Nexus 5 in portrait. The smart banner will be sized at Try changing the size to We'll investigate more internally why the error code indicates internal error. This could be surfaced a bit better. However, I'm going to close this issue though for the reasons mentioned above. |
Thanks @ericleich for replying. I think Admob should show warnings about this case to help everyone can reproduce the mistakes. |
Yep, I'm following up internally to see what can be done on that front. |
i check every thing . it running in other demo app but when i initiate it programmatic it not run in my app. |
What size are you giving the NativeExpressAdView, and what size template are you using in the AdMob UI? |
Re: Try changing the size to ads:adSize="300x250". Is there a list of supported ad sizes somewhere? Is it true (seems to be) that the "test unit id" suggested in the documentation -- "ca-app-pub-3940256099942544/2177258514" -- only supports the larger sizes (e.g. 300x250, 360x320)? If so (about the test unit id), then there is no good way to test "small" sized native ads -- since developers are not supposed to not only click on ads, but also even display them on their own devices? Re: We'll investigate more internally why the error code indicates internal error. Still getting this in firebase-ads:11.0.1 - comes back with "Error 0", which does not seem helpful. Any chance for a proper error message? |
I use NativeExpressAdView but I can't get ad within this warning:
06-15 09:47:32.557 13810-14512/com.bangdev.wifichua W/Ads: There was a problem getting an ad response. ErrorCode: 0 06-15 09:47:32.557 13810-13810/com.bangdev.wifichua W/Ads: Failed to load ad: 0
This is my ad layout:
Load ad in my code:
final NativeExpressAdView adView = (NativeExpressAdView) view.findViewById(R.id.adView); adView.loadAd(new AdRequest.Builder().build());
Google play service version: 9.0.2
The text was updated successfully, but these errors were encountered: