Skip to content

Commit

Permalink
Gamoshi Bidder updating cookie (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriyPavlyuk authored and rpanchyk committed Jan 16, 2020
1 parent 0d2835e commit f9b0c17
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public Result<List<HttpRequest<BidRequest>>> makeHttpRequests(BidRequest request
final BidRequest outgoingRequest = request.toBuilder().imp(validImps).build();
final String body = Json.encode(outgoingRequest);

final String requestUrl = endpointUrl + "/r/" + firstImpExt.getSupplyPartnerId() + "/bidr?reqformat=RTB_JSON";
final String requestUrl = endpointUrl + "/r/" + firstImpExt.getSupplyPartnerId() + "/bidr?bidder=prebid-server";
final MultiMap headers = resolveHeaders(request.getDevice());

return Result.of(Collections.singletonList(
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/bidder-config/gamoshi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ adapters:
supported-vendors:
vendor-id: 644
usersync:
url: https://rtb.gamoshi.io/pix/0000/scm?gdpr={{gdpr}}&consent={{gdpr_consent}}&us_privacy={{us_privacy}}&rurl=
url: https://rtb.gamoshi.io/user_sync_prebid?gdpr={{gdpr}}&consent={{gdpr_consent}}&us_privacy={{us_privacy}}&rurl=
redirect-url: /setuid?bidder=gamoshi&gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&us_privacy={{us_privacy}}&uid=[gusr]
cookie-family-name: gamoshi
type: redirect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void makeHttpRequestsShouldSetExpectedRequestUrlAndDefaultHeaders() {
assertThat(result.getErrors()).isEmpty();
assertThat(result.getValue()).hasSize(1)
.extracting(HttpRequest::getUri)
.containsOnly("https://test.endpoint.com/r/supply/bidr?reqformat=RTB_JSON");
.containsOnly("https://test.endpoint.com/r/supply/bidr?bidder=prebid-server");
assertThat(result.getValue().get(0).getHeaders()).isNotNull()
.extracting(Map.Entry::getKey, Map.Entry::getValue)
.containsOnly(tuple("x-openrtb-version", "2.4"),
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/prebid/server/it/GamoshiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void openrtb2AuctionShouldRespondWithBidsFromGamoshi() throws IOException
// given
// Gamoshi bid response for imp 001 and 002
wireMockRule.stubFor(post(urlPathEqualTo("/gamoshi-exchange/r/1701/bidr"))
.withQueryParam("reqformat", equalTo("RTB_JSON"))
.withQueryParam("bidder", equalTo("prebid-server"))
.withHeader("Accept", equalTo("application/json"))
.withHeader("Content-Type", equalTo("application/json;charset=UTF-8"))
.withHeader("User-Agent", equalTo("userAgent"))
Expand Down

0 comments on commit f9b0c17

Please sign in to comment.