admob_flutter icon indicating copy to clipboard operation
admob_flutter copied to clipboard

Jumpy listview

Open JesseBIT opened this issue 4 years ago • 11 comments

I have a listview.builder working of a firestore querysnapshot stream that builds a Card. Works fine and really smooth, but I wanted to add a Admob after every 3 cards so this was the perfect tool. I've done it by using a column in listbuilder, with the card created from the firestore data and then the admob below it if it's index is every 3rd. The list is so jumpy/jittery everytime scroll past an ad. Disable the Ads and it's perfectly smooth again. Anyone else had this issue, seems to be as it's disposing the ad's when they go out of view. Such a shame as a show stopper for me being able to use this.

JesseBIT avatar Jun 15 '20 10:06 JesseBIT

Hello @JesseBIT, I have the same problem as you. Now I am playing with the source code and example code to find solution. I managed to stop ads from being destroyed by adding AutomaticKeepAliveClientMixin to AdmobBanner class in source lib and addAutomaticKeepAlives: true, cacheExtent to listview builder. Now once an ad is loaded scrolling up and down is smooth :), but scrolling down and loading new ads is still jumpy. Do you have any idea what would be the cause?

iDevJan avatar Jul 07 '20 11:07 iDevJan

I have the same issue.

felixgabler avatar Jul 10 '20 16:07 felixgabler

Per Admob policy, adding banners to scroll areas is a policy violation.

banner ads should not move as a user scrolls, as users may try to click on the menu but end up clicking on the ad accidentally instead. This specific implementation is against policy and we reserve the right to disable ad serving to your app.

Discussed here: https://github.com/kmcgill88/admob_flutter/issues/194

I am actively working on refactoring the demo app to follow encouraging implementations.

kmcgill88 avatar Aug 05 '20 14:08 kmcgill88

what a shame. So many apps use that method of advertising, fb, twitter, reddit etc etc. Users are more than used to seeing Ads in scrollable content. I think it looks so much more proffesional than a static ad up top or bottom. :-(

JesseBIT avatar Aug 05 '20 14:08 JesseBIT

@JesseBIT I agree with you. I was honestly shocked to find this in the docs. If you are willing to risk the violation, you can go ahead and keep your scroll ads. Due to this policy, I won't be investigating the jumpy list. 😭

If you can find any other official docs contradicting this AdMob policy please share.

kmcgill88 avatar Aug 05 '20 14:08 kmcgill88

Reluctantly I may give this a go: https://pub.dev/packages/facebook_audience_network

Thanks for everything you done on this one @kmcgill88 . I raised the question on the official repo too.

JesseBIT avatar Aug 05 '20 17:08 JesseBIT

@JesseBIT can you please share a link to your question on their official repo? I'd like to follow that.

kmcgill88 avatar Aug 05 '20 17:08 kmcgill88

Probably worded more as a rant 😬

https://github.com/FirebaseExtended/flutterfire/issues/3105

JesseBIT avatar Aug 05 '20 19:08 JesseBIT

@JesseBIT I agree with you. I was honestly shocked to find this in the docs. If you are willing to risk the violation, you can go ahead and keep your scroll ads. Due to this policy, I won't be investigating the jumpy list. 😭

If you can find any other official docs contradicting this AdMob policy please share.

Just replied to #194. IMHO the interpretation of «banner ads should not move as a user scrolls» does not include banners which are actually fixed to a position in a list, and thus not actually moving other than all the content.

Google themselves actually do sell that kind of banners in platforms of theirs such as Blogspot blogs.

Please @kmcgill88 do not disable the ability to place banners in lists. I find actually addAutomaticKeepAlives way more relevant regarding this.

jagomf avatar Sep 14 '20 22:09 jagomf

Looks like inline ads are coming to Google's admob plugin so I don't think it's a violation: https://medium.com/flutter/new-ads-beta-inline-banner-and-native-support-for-the-flutter-mobile-ads-plugin-e48a7e9a0e64

MichaelMalony avatar Nov 19 '20 06:11 MichaelMalony

Thanks Michael, this is great news. I've registered for the Beta but ironically this is one of 2 issues thats prevented me publishing the app, so not sure I'll get selected :-(.

JesseBIT avatar Nov 19 '20 08:11 JesseBIT