You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have followed your implementation to embed GAMBannerViews on a UITableView. The only thing that is different in our implementation is that our feed has infinite pagination and our cache stores the GAMBannerView instance as a value instead of key. Our cache look like this: var advertisementsCache: [String: GAMBannerView] = [:]
However, due to the nature of our feed that has infinite pagination our cache keeps on growing as we scroll and load more ads and the device starts to overheat and finally lags terribly.
We have tried to solve this issue by removing the cache and utilise the reuse functionality of the tableview but we have found that as the tableview's cells get reused our code loads new ads constantly. While scrolling up for instance our code will trigger the ad request again.
To conclude, by using a cache we overload the phone's ram and by disabling the cache the reuse of the table view triggers all the time requests to google as we scroll.
We don't know if there is a possible optimal solution to embedding banner view on a tableview with infinite pagination. Would you please help us?
The text was updated successfully, but these errors were encountered:
@lzouloumis Thank you for your suggestion. I agree our sample should displays infinite scroll view. I'm raising a feature request internally to track the update to this repo. Will let you know here when the changes are out.
Hello,
We have followed your implementation to embed GAMBannerViews on a UITableView. The only thing that is different in our implementation is that our feed has infinite pagination and our cache stores the GAMBannerView instance as a value instead of key. Our cache look like this:
var advertisementsCache: [String: GAMBannerView] = [:]
However, due to the nature of our feed that has infinite pagination our cache keeps on growing as we scroll and load more ads and the device starts to overheat and finally lags terribly.
We have tried to solve this issue by removing the cache and utilise the reuse functionality of the tableview but we have found that as the tableview's cells get reused our code loads new ads constantly. While scrolling up for instance our code will trigger the ad request again.
Implementation code without cache:
`class AdTableViewCell: UITableViewCell {
}
`
To conclude, by using a cache we overload the phone's ram and by disabling the cache the reuse of the table view triggers all the time requests to google as we scroll.
We don't know if there is a possible optimal solution to embedding banner view on a tableview with infinite pagination. Would you please help us?
The text was updated successfully, but these errors were encountered: