Skip to content

Commit 50c96ca

Browse files
authored
Marsmedia: Update zoneId acceptable types (prebid#1628)
1 parent 8367558 commit 50c96ca

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/main/resources/static/bidder-params/marsmedia.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
"type": "object",
66
"properties": {
77
"zoneId": {
8-
"type": "string",
9-
"description": "Zone ID to use."
8+
"type": [
9+
"integer",
10+
"string"
11+
],
12+
"description": "The zone ID from Mars Media Group."
1013
}
1114
}
1215
}

src/test/java/org/prebid/server/it/MarsmediaTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import java.io.IOException;
1111

1212
import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
13+
import static com.github.tomakehurst.wiremock.client.WireMock.equalTo;
1314
import static com.github.tomakehurst.wiremock.client.WireMock.equalToJson;
1415
import static com.github.tomakehurst.wiremock.client.WireMock.post;
1516
import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo;
@@ -22,6 +23,8 @@ public class MarsmediaTest extends IntegrationTest {
2223
public void openrtb2AuctionShouldRespondWithBidsFromMarsmedia() throws IOException, JSONException {
2324
// given
2425
WIRE_MOCK_RULE.stubFor(post(urlPathEqualTo("/marsmedia-exchange"))
26+
.withQueryParam("param", equalTo("testParam"))
27+
.withQueryParam("zone", equalTo("999"))
2528
.withRequestBody(equalToJson(jsonFrom("openrtb2/marsmedia/test-marsmedia-bid-request.json")))
2629
.willReturn(aResponse().withBody(jsonFrom("openrtb2/marsmedia/test-marsmedia-bid-response.json"))));
2730

src/test/resources/org/prebid/server/it/openrtb2/marsmedia/test-auction-marsmedia-request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"ext": {
1111
"marsmedia": {
12-
"zoneId": "zone_1"
12+
"zoneId": 999
1313
}
1414
}
1515
}

src/test/resources/org/prebid/server/it/openrtb2/marsmedia/test-marsmedia-bid-request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"ext": {
1111
"bidder": {
12-
"zoneId": "zone_1"
12+
"zoneId": 999
1313
}
1414
}
1515
}

0 commit comments

Comments
 (0)