-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Collect info about which ad units receive bids #4094
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1beaa7c
Livewrapped bid and analytics adapter
bjorn-lw 250fca3
Merge remote-tracking branch 'upstream/master'
bjorn-lw c47dd60
Fixed some tests for browser compatibility
bjorn-lw 5c0a354
Fixed some tests for browser compatibility
bjorn-lw f02ada1
Changed analytics adapter code name
bjorn-lw b2f72e1
Merge remote-tracking branch 'upstream/master'
bjorn-lw 4792245
Fix double quote in debug message
bjorn-lw 02a6e5a
modified how gdpr is being passed
bjorn-lw a26936a
Merge remote-tracking branch 'upstream/master'
bjorn-lw e799957
Merge remote-tracking branch 'upstream/master'
bjorn-lw 176ea08
Added support for Publisher Common ID Module
bjorn-lw e20d9e7
Merge remote-tracking branch 'upstream/master'
bjorn-lw 5f1951a
Corrections for ttr in analytics
bjorn-lw efe678c
Merge remote-tracking branch 'upstream/master'
bjorn-lw e959425
ANalytics updates
bjorn-lw 43f2f07
Auction start time stamp changed
bjorn-lw 18bfbbf
Merge remote-tracking branch 'upstream/master'
bjorn-lw 87ebc8b
Detect recovered ad blocked requests
bjorn-lw f5f1e64
Merge branch 'master' of https://github.com/prebid/Prebid.js
bjorn-lw 332b500
Collect info on ad units receiving any valid bid
bjorn-lw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
To confirm on this logic - it seems that it would only capture 1 bid for each adUnit; if there were multiple bids for the same adUnit, the others would be ignored through this if-block.
If above is correct, is that what you want?
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.
Yes, that is correct. What I do here is to keep track of all ad units that received at least one bid in the auction. The individual bids are handled elsewhere. Since the analytics adapter may send back bid responses to our end point in different requests, I needed a place to keep this particular information and make sure it is sent only once per adunit/auction since that makes my life so much easier in the backend.
I guess I made a failed attempt to make it clearer by calling the metric "bidAdunits" and not "adUnitBids" :( Naming is the hardest problem in Computer Science...