Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/main/resources/bidder-config/aso.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ adapters:
redirect:
url: https://track.datacygnal.io/sync/v2?gdpr={gdpr}&gdpr_consent={gdpr_consent}&usp={us_privacy}&gpp={gpp}&gpp_sid={gpp_sid}&redir={redirect_url}
uid-macro: '{uid}'
bidagency:
bidgency:
enabled: false
endpoint: https://srv.bidgx.com/pbs/bidder?zid={ZoneID}
meta-info:
maintainer-email: aso@bidgency.com
usersync:
cookie-family-name: bidagency
cookie-family-name: bidgency
redirect:
url: https://track.bidgx.com/sync/v2?gdpr={gdpr}&gdpr_consent={gdpr_consent}&usp={us_privacy}&gpp={gpp}&gpp_sid={gpp_sid}&redir={redirect_url}
uid-macro: '{uid}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@
import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo;
import static java.util.Collections.singletonList;

public class BidAgencyTest extends IntegrationTest {
public class BidGencyTest extends IntegrationTest {

@Test
public void openrtb2AuctionShouldRespondWithBidsFromBidAgency() throws IOException, JSONException {
public void openrtb2AuctionShouldRespondWithBidsFromBidGency() throws IOException, JSONException {
// given
WIRE_MOCK_RULE.stubFor(post(urlPathEqualTo("/bidagency-exchange"))
WIRE_MOCK_RULE.stubFor(post(urlPathEqualTo("/bidgency-exchange"))
.withRequestBody(equalToJson(
jsonFrom("openrtb2/bidagency/test-bidagency-bid-request.json")))
jsonFrom("openrtb2/bidgency/test-bidgency-bid-request.json")))
.willReturn(aResponse().withBody(
jsonFrom("openrtb2/bidagency/test-bidagency-bid-response.json"))));
jsonFrom("openrtb2/bidgency/test-bidgency-bid-response.json"))));

// when
final Response response = responseFor("openrtb2/bidagency/test-auction-bidagency-request.json",
final Response response = responseFor("openrtb2/bidgency/test-auction-bidgency-request.json",
Endpoint.openrtb2_auction);

// then
assertJsonEquals("openrtb2/bidagency/test-auction-bidagency-response.json", response,
singletonList("bidagency"));
assertJsonEquals("openrtb2/bidgency/test-auction-bidgency-response.json", response,
singletonList("bidgency"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"h": 250
},
"ext": {
"bidagency": {
"bidgency": {
"zone" : 1
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
"prebid": {
"type": "banner",
"meta": {
"adaptercode": "bidagency"
"adaptercode": "bidgency"
}
},
"origbidcpm": 4.7
}
}
],
"seat": "bidagency",
"seat": "bidgency",
"group": 0
}
],
"cur": "USD",
"ext": {
"responsetimemillis": {
"bidagency": "{{ bidagency.response_time_ms }}"
"bidgency": "{{ bidgency.response_time_ms }}"
},
"prebid": {
"auctiontimestamp": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ adapters.aso.enabled=true
adapters.aso.endpoint=http://localhost:8090/aso-exchange
adapters.aso.aliases.bcmint.enabled=true
adapters.aso.aliases.bcmint.endpoint=http://localhost:8090/bcmint-exchange
adapters.aso.aliases.bidagency.enabled=true
adapters.aso.aliases.bidagency.endpoint=http://localhost:8090/bidagency-exchange
adapters.aso.aliases.bidgency.enabled=true
adapters.aso.aliases.bidgency.endpoint=http://localhost:8090/bidgency-exchange
adapters.aso.aliases.kuantyx.enabled=true
adapters.aso.aliases.kuantyx.endpoint=http://localhost:8090/kuantyx-exchange
adapters.automatad.enabled=true
Expand Down
Loading