-
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
Clickonometrics: Add adapter #2166
Clickonometrics: Add adapter #2166
Conversation
|
||
@Test | ||
public void creationShouldFailOnInvalidEndpointUrl() { | ||
assertThatIllegalArgumentException().isThrownBy(() -> new GenericBidder("invalid_url", jacksonMapper)); |
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.
not generic, but CcxBidder
.map(SeatBid::getBid) | ||
.filter(Objects::nonNull) | ||
.flatMap(Collection::stream) | ||
.map(bid -> BidderBid.of(bid, BidType.banner, bidResponse.getCur())) |
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.
For supporting video, pls check example
AndBeyondMediaBidder.getBidType
} | ||
|
||
@Test | ||
public void makeHttpRequestsShouldCreateExpectedUrl() { |
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 create test to check that incoming and outcoming bidRequest are equal
// then | ||
assertThat(result.getErrors()).isEmpty(); | ||
assertThat(result.getValue()) | ||
.containsExactly(BidderBid.of(givenBid(), banner, "USD")); |
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.
After the bidType change, pls update it to be video
In the yaml, the adapter supports both banner and video but in the code, the adapter only supports for the banner. I've followed the code to create this adapter. Please let me know if the adapter needs to be updated to support both video and banner.