Skip to content

Commit

Permalink
Add support for CPM override in Rubicon bidder - fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
rpanchyk committed May 25, 2020
1 parent 6464a3c commit b715ed0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/pbs-java-and-go-features-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@

Feature | Java | Go
| --- | :---: | :---:|
First Party data |+|-
First Party Data |+|-
Stored Requests |+|+
Stored Responses |+|-
Currency Conversion** |+|+
Geo location (used for GDPR) |+|-
Circuit Breaker (Http, DB) |+|-
Passing Bidder ext in `imp[...].ext.prebid.bidder` |-|+
Passing `request.ext.prebid.bidders.BIDDER` to corresponding bidder |+|-
Geo Location (used for GDPR) |+|-
Circuit Breaker (HTTP, DB) |+|-
Passing Bidder extension in `imp[i].ext.prebid.bidder` |+|+
Passing `ext.prebid.bidders.BIDDER` to corresponding bidder |+|-
Media Type Price Granularity |+|-
Cache only-winning-bids flag |+|-
User ID Module |+|+
Bid Categories |-|+
Apps/Accounts Blacklist |+|+
Event Notification endpoint |+|-
Video Auction endpoint |-|+
Video Auction endpoint |+|+
Video Impression Tracking endpoint |+|-
GDPR |+|+
COPPA |+|+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ private Bid updateBid(Bid bid, Imp imp, Float cmpOverrideFromRequest, BidRespons
bid.setId(bidResponse.getBidid());
}

// Unconditionally set price if coming from CPM override
final Float cpmOverride = ObjectUtils.defaultIfNull(cpmOverrideFromImp(imp), cmpOverrideFromRequest);
if (cpmOverride != null) {
bid.setPrice(new BigDecimal(String.valueOf(cpmOverride)));
Expand Down

0 comments on commit b715ed0

Please sign in to comment.