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.

[Native Ad]Loading Multiple Admob Native ads in Listview

See original GitHub issue

Use case

For some reason, before installing the googleads package I was expecting to be able to easily load multiple Native ads in a Listview since that’s the standard for most Apps… (for example show 1 ad every 6 cards) However for my surprise that’s not really the case. Documentation and examples clearly show how to put 1 ad… and that’s it…

Proposal

Sure maybe there are some advanced solutions that solve this issue (still trying to figure out what solutions… there is no clear info about it) or even some StackOverflow “hacks”… but those can easily create other serious issues, including getting those ads banned for improper usage. Would be great to load multiple ads in a listview out of the box since that’s a really common scenario for a production-ready App…

And maybe the option to easily load for example 3 ads with one request to avoid lagging in the listview…

Meanwhile, what is the proper way to do it?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:14

github_iconTop GitHub Comments

2reactions
ldobreiracommented, May 31, 2022

Exactly @maheshmnj that’s the exact same issues I’m having… That’s why I asked for an example…

1reaction
davemg3commented, Jul 1, 2022

@ldobreira Looks like this is the limitation in the plugin you would need a unique AdId for each native ad. This is the code sample I tried and it seems to load only the first Ad and fails with

E/flutter (18821): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: PlatformException(error, Ad for following adId already exists: 0, null, java.lang.IllegalArgumentException: Ad for following adId already exists: 0

code sample logs

@maheshmnj , i am surprised as it was possible when coding with android and kotlin…are you in touch with the plugin developper? do we need to consider this a limitation or do they advise a workaround?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter: How to Properly Load Multiple Native Ads on Listview?
My goal is to show a Native ad every 8 ListTiles. Is there a way to properly do this without using extra packages?...
Read more >
Native Ads | Android - Google Developers
Apps requesting multiple ads should call AdLoader.isLoading() in their callback implementations to determine whether the loading process has ...
Read more >
How to Properly Load Multiple Admob Native Ads on Listview?
My goal is to show a Native ad every 8 ListTiles. Is there a way to properly do this without using extra packages?...
Read more >
Can we able to display multiple AdMob ads in list view
I have one app in which I want to display multiple ads in list view. App has one recycler view & which is...
Read more >
Native Ads-Ad Formats-Publisher Service (Java & Kotlin)
A native ad may contain video assets in addition to images and text. The HUAWEI Ads SDK also provides the following two classes...
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