-
Notifications
You must be signed in to change notification settings - Fork 755
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
I1503: Added dealTierSatisfied parameters in exchange.pbsOrtbBid and openrtb_ext.ExtBidPrebid and dealPriority in openrtb_ext.ExtBidPrebid #1558
Changes from 1 commit
7dadd61
093c066
fa3ba9a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,6 +303,7 @@ func validateAndNormalizeDealTier(impDeal *DealTier) bool { | |
func updateHbPbCatDur(bid *pbsOrtbBid, dealTierInfo *DealTierInfo, bidCategory map[string]string) { | ||
if bid.dealPriority >= dealTierInfo.MinDealTier { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking at function name - after the change, It will look like
|
||
prefixTier := fmt.Sprintf("%s%d_", dealTierInfo.Prefix, bid.dealPriority) | ||
bid.dealTierSatisfied = true | ||
|
||
if oldCatDur, ok := bidCategory[bid.bid.ID]; ok { | ||
oldCatDurSplit := strings.SplitAfterN(oldCatDur, "_", 2) | ||
|
@@ -795,9 +796,11 @@ func (e *exchange) makeBid(Bids []*pbsOrtbBid, auc *auction, returnCreative bool | |
bidExt := &openrtb_ext.ExtBid{ | ||
Bidder: thisBid.bid.Ext, | ||
Prebid: &openrtb_ext.ExtBidPrebid{ | ||
Targeting: thisBid.bidTargets, | ||
Type: thisBid.bidType, | ||
Video: thisBid.bidVideo, | ||
Targeting: thisBid.bidTargets, | ||
Type: thisBid.bidType, | ||
Video: thisBid.bidVideo, | ||
DealPriority: thisBid.dealPriority, | ||
DealTierSatisfied: thisBid.dealTierSatisfied, | ||
}, | ||
} | ||
if cacheInfo, found := e.getBidCacheInfo(thisBid, auc); found { | ||
|
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.
This modification is not needed because, when ommited, both missing JSON
int
andboolean
fields default to0
andfalse
respectively. Anyway, not a big deal if included.