Pub 2941 fixing missing logging of invalid bids #26
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.
Ticket: PUB-2941
This ticket addresses an issue in which an auction containing only invalid bids is not recorded.
Invalid bids are mapped to bidtype 1. Timed-out bids are mapped to bidtype 3. If any auction contains only bidtypes 1 or 3, it is now sent to pubx (assuming the relevant downsampling permits this).
There was a query as to whether or not auctions. with no bids at all were recorded. using the javascript array.prototype.every function on an empty array returns true, so this condition is satisfied. An additional test already verified this in prebid, but the test was quite obscure, so i tried to tidy it up a little.
Additional tests were added to confirm that auctions with timed out bids or invalid bids (as far as i can tell this only occurs due to pricing issues) are also recorded.