-
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
Add new Pangle Bidder #1190
Add new Pangle Bidder #1190
Conversation
} | ||
|
||
private static Integer resolveAdType(Imp imp, WrappedImpExtBidder extBidder) { | ||
|
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.
return -1; | ||
} | ||
|
||
private static boolean isEqualIntegers(Integer firstNum, Integer secondNum) { |
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.
Why we cant use plain Objects.equals()
?
} | ||
} | ||
|
||
private static Integer resolveAdType(Imp imp, WrappedImpExtBidder extBidder) { |
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.
Can return type be of primitive type?
return 5; | ||
} | ||
|
||
return -1; |
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.
Can we throw PreBidException
right here?
|
||
private static MultiMap makeHeaders(String token) { | ||
return HttpUtil.headers() | ||
.add("TOKEN", token); |
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.
Can token be 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.
From pangle.json
"required": [
"token"
]
Seems it can't be null
} | ||
|
||
private Integer getAdTypeFromBidExt(Bid bid) { | ||
if (bid == 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.
Can we add .filter(Objects::nonNull)
while looping through the bids?
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.
From Go implementation, they want to add errors about not present bids
Ported from prebid/prebid-server#1697