-
Notifications
You must be signed in to change notification settings - Fork 104
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
Stop ViewabilityTimer when ViewForTracking has become nil #949
Stop ViewabilityTimer when ViewForTracking has become nil #949
Conversation
…me-nil' of https://github.com/prebid/prebid-mobile-ios into 908-stop-viewabilitytimer-when-viewfortracking-has-become-nil
…me-nil' of https://github.com/prebid/prebid-mobile-ios into 908-stop-viewabilitytimer-when-viewfortracking-has-become-nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment in the review
… timer to fire every 0.1ms instead of 4 times/second. This hopefully will fix them.
…at the correct time!
Thank you so much for handling this @YuriyVelichkoPI and @jsligh. If I may be so bold, below are my use cases and expectations described by unit tests for faster feedback loop. Let me know if I can be of more help. |
@shinwan2, thank you for the clarification of the use case. If I understood correctly, you want to display the same ad in the feed several times. Do you want to do it regardless of the impression event, Or if the ad is tracked the impression, you don't need to display it one more time in the feed? To support your scenario, I believe you should use some additional container view as a point of viewability tracking and add this whole container to the different cells in the feed. The pseudo-code solution:
|
In any casy after expecting the use case and the current codebase I think that we still need several additional enchancmets regarding the impression tracking of the native ads:
It will prevent
Pubilshers in their turn should register the view right before it should be displayed. Even if publisher wants to change the ad view placement they still should do it as fast as possible. So the timer still shouldn't harm so much. Cahing the ad for a long time is impossible (due to the ad expiration policy) and not appreciated in any case. Still waiting for the detailed feedback about the use case. |
Yes, this one. The ad once assigned to a given slot (e.g. 4th slot on a feed) will always be shown on that same slot (using
I see, I believe it should be OK to clear the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #908