-
Notifications
You must be signed in to change notification settings - Fork 181
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
RubiconBidder: Copy seatbid.buyer to bid.ext.prebid.meta #1313
Conversation
c9466b5
to
2651aab
Compare
return seatBid.toBuilder().bid(updatedBids).build(); | ||
} | ||
|
||
private Bid insertNetworkIdToMeta(int networkId, Bid bid) { |
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.
Pls swap arguments since the main actor is bid.
|
||
private Bid insertNetworkIdToMeta(int networkId, Bid bid) { | ||
final ObjectNode bidExt = bid.getExt(); | ||
final ExtPrebid<ExtBidPrebid, ObjectNode> extPrebid = getExtPrebid(bid.getExt()); |
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.
Use bidExt
instead.
} | ||
|
||
private ExtPrebid<ExtBidPrebid, ObjectNode> getExtPrebid(ObjectNode bidExt) { | ||
return bidExt != null ? mapper.mapper().convertValue(bidExt, EXT_PREBID_TYPE_REFERENCE) : null; |
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.
The convertValue(..)
throws IllegalArgumentException
. Should we care of it anywhere?
66a366a
to
2cd22ec
Compare
No description provided.