-
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
BannerRecyclerViewExample low ad impression rate! #646
Comments
Thanks, I will take a look. |
Chain #641 |
|
How to fix these problems is as follows:
|
I have a RecyclerView, and I aim to insert a banner ad after every 10 items within it. However, following the approach outlined in the official documentation leads to a decrease in ad display rate when pre-loading ads. Specifically, I experience a significantly low display rate, approximately 20-30%.
Another approach involves loading the ad-containing holder either in onCreateViewHolder or its constructor. However, this method only loads one ad at a time.
Alternatively, I attempted to load ads in onBindViewHolder, as demonstrated in my example. However, this approach isn't optimal because the onLoading event occurs when the creative exits the screen during scrolling and re-enters it, triggering the bind operation again. I believe this could also violate policies.
In summary, none of these solutions prove effective. I seek a different and correct method that doesn't burden the RecyclerView with repeated loading during scrolling.
The current method of pre-loading ads is outdated and not entirely correct. If users don't scroll to the end of the list, they won't generate any views. Despite an 80-90% match rate, the display rate remains at 20%, which is inaccurate. I am in need of a solution to address this issue.
BannerRecyclerViewExample:
https://github.com/googleads/googleads-mobile-android-examples/blob/master/java/advanced/BannerRecyclerViewExample/app/src/main/java/com/google/android/gms/example/bannerrecyclerviewexample/MainActivity.java
InlineAdaptiveBannerExample:
https://github.com/googleads/googleads-mobile-android-examples/blob/main/java/advanced/InlineAdaptiveBannerExample/app/src/main/java/com/google/android/gms/example/inlineadaptivebannerexample/MainActivity.java
My example: (My approach is flawed because the banner ad gets removed and then reloaded when the RecyclerView screen exits.)
The official example is also incorrect. As I mentioned, although the ads are pre-loaded, they are not always displayed. Ideally, the RecyclerView should pause the bind/banner ad where there are no impressions and then resume, but I'm unsure how to implement this.
TestActivity
TestAdapter
The text was updated successfully, but these errors were encountered: