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

Clickonometrics: Add adapter #2166

Merged

Conversation

SeongJaeMoon92
Copy link
Contributor

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.

@markd-fs markd-fs linked an issue Feb 14, 2023 that may be closed by this pull request

@Test
public void creationShouldFailOnInvalidEndpointUrl() {
assertThatIllegalArgumentException().isThrownBy(() -> new GenericBidder("invalid_url", jacksonMapper));
Copy link
Collaborator

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()))
Copy link
Collaborator

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

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

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

@SerhiiNahornyi SerhiiNahornyi changed the title Clickonometrics add adapter Clickonometrics: Add adapter Feb 15, 2023
@SerhiiNahornyi SerhiiNahornyi merged commit 5eb7fe1 into prebid:master Feb 16, 2023
osulzhenko pushed a commit that referenced this pull request Mar 2, 2023
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.

Port clickonometrics adapter
2 participants