Skip to content

Conversation

@przemkaczmarek
Copy link
Collaborator

🔧 Type of changes

  • new bid adapter

✨ What's the context?

#4291

@osulzhenko osulzhenko linked an issue Dec 1, 2025 that may be closed by this pull request
@osulzhenko osulzhenko requested a review from CTMBNara December 1, 2025 09:31
@github-actions
Copy link

github-actions bot commented Dec 6, 2025

TestsPassed ✅Skipped ⚠️Failed
JUnit Test Report9077 ran9075 passed2 skipped0 failed

Comment on lines 159 to 161
if (bidType == null) {
throw new PreBidException("Failed to get media type");
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

can't be null

@JsonProperty("partnerId")
String partnerId;

@JsonProperty("region")
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for JsonProperty here

Comment on lines 31 to 33
BidderDeps clydoBidderDeps(BidderConfigurationProperties clydoConfigurationProperties,
@NotBlank @Value("${external-url}") String externalUrl,
JacksonMapper mapper) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Align

@osulzhenko osulzhenko requested a review from CTMBNara January 12, 2026 09:04
@osulzhenko osulzhenko requested a review from CTMBNara January 13, 2026 11:29
Comment on lines 143 to 154
@Test
public void makeBidsShouldReturnEmptyListIfBidResponseIsNull() throws JsonProcessingException {
// given
final BidderCall<BidRequest> httpCall = givenHttpCall(
mapper.writeValueAsString(null));

// when
final Result<List<BidderBid>> result = target.makeBids(httpCall, null);

// then
assertThat(result.getErrors()).isEmpty();
assertThat(result.getValue()).isEmpty();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move it to makeBids* tests

// when
final Result<List<HttpRequest<BidRequest>>> result = target.makeHttpRequests(bidRequest);

//then
Copy link
Collaborator

Choose a reason for hiding this comment

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

//then -> // then

Comment on lines 211 to 226
@Test
public void makeBidsShouldReturnErrorIfResponseBodyCouldNotBeParsed() {
// given
final BidderCall<BidRequest> httpCall = givenHttpCall("invalid");

// when
final Result<List<BidderBid>> result = target.makeBids(httpCall, null);

// then
assertThat(result.getValue()).isEmpty();
assertThat(result.getErrors()).hasSize(1)
.allSatisfy(error -> {
assertThat(error.getMessage()).startsWith("Failed to decode: Unrecognized token 'invalid':");
assertThat(error.getType()).isEqualTo(BidderError.Type.bad_server_response);
});
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port PR from PBS-Go: New Adapter: Clydo

4 participants