Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ private static BidderBid mapToBidderBid(HbResponseSpace hbResponseSpace, HbRespo
.price(new BigDecimal(hbResponseAd.getPrice()))
.adm(hbResponseAd.getAdM())
.crid(hbResponseAd.getCrId())
.adomain(Collections.singletonList(hbResponseAd.getAdom()))
.w(hbResponseAd.getWidth())
.h(hbResponseAd.getHeight())
.build(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public class HbResponseAd {
@JsonProperty("crid")
String crId;

String adom;

@JsonProperty("w")
Integer width;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ public void makeBidsShouldReturnBannerBidWithExpectedFields() throws JsonProcess
.price("3.3")
.adM("some-adm")
.crId("CR-ID")
.adom("test.com")
.width(500)
.height(300)
.build()))))));
Expand All @@ -632,6 +633,7 @@ public void makeBidsShouldReturnBannerBidWithExpectedFields() throws JsonProcess
.price(BigDecimal.valueOf(3.3))
.adm("some-adm")
.crid("CR-ID")
.adomain(List.of("test.com"))
.w(500)
.h(300)
.build();
Expand All @@ -653,6 +655,7 @@ public void makeBidsShouldReturnBannerBidIfMissingAdunitCode() throws JsonProces
.price("3.3")
.adM("some-adm")
.crId("CR-ID")
.adom("test.com")
.width(1)
.height(1)
.build()))))));
Expand All @@ -671,6 +674,7 @@ public void makeBidsShouldReturnBannerBidIfMissingAdunitCode() throws JsonProces
.price(BigDecimal.valueOf(3.3))
.adm("some-adm")
.crid("CR-ID")
.adomain(List.of("test.com"))
.w(1)
.h(1)
.build();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/prebid/server/it/EplanningTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class EplanningTest extends IntegrationTest {
public void openrtb2AuctionShouldRespondWithBidsFromEplanning() throws IOException, JSONException {
// given
WIRE_MOCK_RULE.stubFor(get(urlPathEqualTo("/eplanning-exchange/12345/1/www.example.com/ROS"))
.willReturn(aResponse().withBody(jsonFrom("openrtb2/eplanning/test-eplanning-bid-response-1.json"))));
.willReturn(aResponse().withBody(jsonFrom("openrtb2/eplanning/test-eplanning-bid-response.json"))));

// when
final Response response = responseFor("openrtb2/eplanning/test-auction-eplanning-request.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"adm": "<div>test</div>",
"adid": "imp_id",
"crid": "crid",
"adomain": [
"test.com"
],
"w": 600,
"h": 300,
"ext": {
Expand Down
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just noticed the name test-eplanning-bid-response-1.json ends with 1 which is confusing and weird, let's rename the file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, but this is not a file made by me. It was already like that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

"Always leave the code a little better than you found it" (c) The Boy Scout Rule

Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"adm": "<div>test</div>",
"crid": "crid",
"id": "imp_id",
"adom": "test.com",
"w": 600,
"h": 300
}
]
}
]
}
}
Loading