Skip to content
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

Draft
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

OlenaPostindustria
Copy link
Collaborator

@OlenaPostindustria OlenaPostindustria force-pushed the feature/original-api-impression-counting branch from abf5327 to 89fcb59 Compare November 12, 2024 15:07
@OlenaPostindustria OlenaPostindustria force-pushed the feature/original-api-impression-counting branch from f28971f to 0cd4f8f Compare November 13, 2024 09:17
@OlenaPostindustria OlenaPostindustria force-pushed the feature/original-api-impression-counting branch from 4058adf to 0010989 Compare November 13, 2024 09:37
@OlenaPostindustria OlenaPostindustria marked this pull request as ready for review November 14, 2024 08:27
@OlenaPostindustria OlenaPostindustria marked this pull request as draft November 14, 2024 10:07
@@ -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()
Copy link
Contributor

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.

@@ -163,6 +174,26 @@ public class AdUnit: NSObject, DispatcherDelegate {
return
}

DispatchQueue.main.async {
Copy link
Contributor

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.

@OlenaPostindustria
Copy link
Collaborator Author

Charles session - ImpressionCountingDemo.zip

@OlenaPostindustria
Copy link
Collaborator Author

Charles session with scrollable content -
ImpressionCountingDemoScrollableContent.chls.zip

@OlenaPostindustria OlenaPostindustria force-pushed the feature/original-api-impression-counting branch from 9eaa970 to de8ba8d Compare November 21, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants