Skip to content
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

Merged
merged 4 commits into from
Apr 27, 2021
Merged

Add new Pangle Bidder #1190

merged 4 commits into from
Apr 27, 2021

Conversation

SerhiiNahornyi
Copy link
Collaborator

@SerhiiNahornyi SerhiiNahornyi commented Mar 16, 2021

}

private static Integer resolveAdType(Imp imp, WrappedImpExtBidder extBidder) {

Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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;
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can token be null ?

Copy link
Collaborator Author

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) {
Copy link
Contributor

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?

Copy link
Collaborator Author

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

@rpanchyk rpanchyk merged commit 6474357 into master Apr 27, 2021
@rpanchyk rpanchyk deleted the pangle/bidder/implementing branch April 27, 2021 10:42
nickluck9 pushed a commit that referenced this pull request Aug 9, 2021
nickluck9 pushed a commit that referenced this pull request Aug 10, 2021
nickluck9 pushed a commit that referenced this pull request Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants