-
Notifications
You must be signed in to change notification settings - Fork 187
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
Metax: Update bidder (#3631) #3660
Conversation
private static String givenBidResponse(Bid... bids) throws JsonProcessingException { | ||
return mapper.writeValueAsString(BidResponse.builder() | ||
.seatbid(singletonList(SeatBid.builder().bid(asList(bids)).build())) | ||
.build()); | ||
} | ||
|
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 one looks redundant
private static Bid givenBid(UnaryOperator<Bid.BidBuilder> bidCustomizer) { | ||
return bidCustomizer.apply(Bid.builder()).build(); | ||
} |
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 one is also redundant
.bidCurrency(bidResponse.getCur()) | ||
.videoInfo(videoInfo(bid)) | ||
.build()) | ||
|
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.
Please, remove empty line
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.
I also see a slight difference in logic with GO:
private String resolveEndpoint(ExtImpMetax extImpMetax) {
final String publisherIdAsString = Optional.ofNullable(extImpMetax.getPublisherId())
.map(Object::toString)
.orElse(StringUtils.EMPTY);
final String adUnitAsString = Optional.ofNullable(extImpMetax.getAdUnit())
.map(Object::toString)
.orElse(StringUtils.EMPTY);
In both cases we need to set the default value to "0" instead of "".
Please, fix this if you don't mind.
🔧 Type of changes
✨ What's the context?
Add BidVideo for video ads
#3631