-
Notifications
You must be signed in to change notification settings - Fork 94
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
Support for 1px impression counting methodology #1060
base: master
Are you sure you want to change the base?
Support for 1px impression counting methodology #1060
Conversation
abf5327
to
89fcb59
Compare
f28971f
to
0cd4f8f
Compare
4058adf
to
0010989
Compare
PrebidMobile/AdUnits/AdUnit.swift
Outdated
@@ -47,6 +47,8 @@ public class AdUnit: NSObject, DispatcherDelegate { | |||
/// notification flag set to determine if delegate call needs to be made after timeout delegate is sent | |||
private var timeOutSignalSent = false | |||
|
|||
private var bannerViewImpressionTracker = BannerViewImpressionTracker() |
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.
We should have a single instance of Impression tracker in AdUnit. All implementation details should be hidden in this object.
PrebidMobile/AdUnits/AdUnit.swift
Outdated
@@ -163,6 +174,26 @@ public class AdUnit: NSObject, DispatcherDelegate { | |||
return | |||
} | |||
|
|||
DispatchQueue.main.async { |
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.
Let's move the logic of starting the viewability tracking out from fetchDemand
:
- start viewability tracking on calling of activatePrebidImpressionTracker
- stop tracking on destroying the AdUnit object
- once the tracked view meets the impression tracking criteria - check the content, and if it contains PUC - track the respective impression.
Charles session - ImpressionCountingDemo.zip |
Charles session with scrollable content - |
9eaa970
to
de8ba8d
Compare
#790