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

Updated to avro schema format. Added incremental lift based on format. #28

Merged
merged 2 commits into from
May 28, 2020

Conversation

jimee02
Copy link

@jimee02 jimee02 commented May 27, 2020

No description provided.

@jimee02 jimee02 requested a review from kenan-gillet May 27, 2020 06:33
@jimee02 jimee02 force-pushed the adding-incremental-lift branch from 842917e to 7035afd Compare May 27, 2020 06:43
function calculateIncrementalLift(bidRequests) {
let bidResponses = bidRequests.flatMap(bidRequest => bidRequest.bidResponses);
let [winningBidResponses, losingBidResponses] = partitionByWinningResponses(bidResponses);
let loserWithHigestCpm;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are they all guaranteed to be in USD ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also what happens if the second price comes from the same bidder ? or is it guaranteed that a bidder will only have one response ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh good point. I'll leave it to you to do it :). I'll leave out the property in the payload.

@jimee02 jimee02 requested a review from kenan-gillet May 28, 2020 04:28
@jimee02 jimee02 merged commit 2555e4e into openx-adapter May 28, 2020
@jimee02 jimee02 deleted the adding-incremental-lift branch May 28, 2020 20:31
bwschmidt pushed a commit that referenced this pull request Apr 5, 2022
* PBID-1541 Add the rest of the fields
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