-
Notifications
You must be signed in to change notification settings - Fork 175
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
Add Unicorn bidder #1201
Add Unicorn bidder #1201
Conversation
modifiedImps = modifyImps(request.getImp()); | ||
source = updateSource(request.getSource()); | ||
firstImpAccountId = parseImpExtBidder(requestImps.get(0)).getAccountId(); | ||
|
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.
Empty line.
final Integer firstImpAccountId; | ||
try { | ||
validateRegs(request.getRegs()); | ||
final List<Imp> requestImps = request.getImp(); |
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 move upper before try...catch
.
try { | ||
validateRegs(request.getRegs()); | ||
final List<Imp> requestImps = request.getImp(); | ||
modifiedImps = modifyImps(request.getImp()); |
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 use requestImps
instead.
return Result.withValue(createRequest(request, modifiedImps, source, modifiedExtRequest)); | ||
} | ||
|
||
private ExtRequest modifyExtRequest(ExtRequest extRequest, Integer accountId) { |
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 rearrange methods in call order.
.bidder(extImpBidder.toBuilder().placementId(resolvedPlacementId).build()) | ||
.build(); | ||
impBuilder | ||
.tagid(getStoredRequestImpId(imp)) |
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 resolvedPlacementId
instead.
Ported from prebid/prebid-server#1719