Skip to content

Adds preferDeals support #1528

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

Merged
merged 6 commits into from
Oct 20, 2020
Merged

Adds preferDeals support #1528

merged 6 commits into from
Oct 20, 2020

Conversation

hhhjort
Copy link
Collaborator

@hhhjort hhhjort commented Oct 8, 2020

Solves #1355

@@ -125,6 +125,19 @@ func newAuction(seatBids map[openrtb_ext.BidderName]*pbsOrtbSeatBid, numImps int
}
}

// Calculate if the new bid (nbid) will win against the current winning bid (wbid) given preferDeals.
func isNewWinningBid(nbid, wbid *openrtb.Bid, preferDeals bool) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider changing the variable names to be more obvious:
nbid -> bid (i think the 'new' part is implied)
wbid -> winningBid

SyntaxNode
SyntaxNode previously approved these changes Oct 13, 2020
Copy link
Collaborator

@bsardo bsardo left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants