Giter Club home page Giter Club logo

Comments (7)

ericleich avatar ericleich commented on July 16, 2024 5

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 360x50. When you compare that against the requirements for the Native Ads Express templates, you'll see that even the Small template requires a height of 80dp. Because your size doesn't fit the requirements, you won't ever see an ad.

Try changing the size to ads:adSize="300x250". That size fits all 3 templates, and so you should get an ad back. I just tested it myself and it worked for your ad unit. For more precise measurements, double check which size you picked on the AdMob front-end, and make sure the width and height of your ad fits within the ranges.

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.

from googleads-mobile-android-examples.

longbkiter07 avatar longbkiter07 commented on July 16, 2024

I got this issue as well.

from googleads-mobile-android-examples.

nthuat avatar nthuat commented on July 16, 2024

Thanks @ericleich for replying. I think Admob should show warnings about this case to help everyone can reproduce the mistakes.

from googleads-mobile-android-examples.

ericleich avatar ericleich commented on July 16, 2024

Yep, I'm following up internally to see what can be done on that front.

from googleads-mobile-android-examples.

ajay29592 avatar ajay29592 commented on July 16, 2024

i check every thing . it running in other demo app but when i initiate it programmatic it not run in my app.

from googleads-mobile-android-examples.

ericleich avatar ericleich commented on July 16, 2024

What size are you giving the NativeExpressAdView, and what size template are you using in the AdMob UI?

from googleads-mobile-android-examples.

kmansoft avatar kmansoft commented on July 16, 2024

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?

from googleads-mobile-android-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.