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
14 changes: 14 additions & 0 deletions src/main/resources/bidder-config/vidazoo.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
adapters:
vidazoo:
endpoint: https://prebidsrvr.cootlogix.com/openrtb/
aliases:
progx:
enabled: false
endpoint: https://exchange.programmaticx.ai/openrtb/
meta-info:
maintainer-email: [email protected]
vendor-id: 1344
usersync:
enabled: true
cookie-family-name: progx
iframe:
url: https://sync.programmaticx.ai/api/user/html/685297194d85991a5e6e36dd?pbs=true&gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&us_privacy={{us_privacy}}&redirect={{redirect_url}}&gpp={{gpp}}&gpp_sid={{gpp_sid}}
support-cors: false
uid-macro: '${userId}'
endpoint-compression: gzip
ortb-version: "2.6"
meta-info:
Expand Down
35 changes: 35 additions & 0 deletions src/test/java/org/prebid/server/it/ProgxTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package org.prebid.server.it;

import io.restassured.response.Response;
import org.json.JSONException;
import org.junit.jupiter.api.Test;
import org.prebid.server.model.Endpoint;

import java.io.IOException;
import java.util.List;

import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
import static com.github.tomakehurst.wiremock.client.WireMock.equalToJson;
import static com.github.tomakehurst.wiremock.client.WireMock.post;
import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo;

public class ProgxTest extends IntegrationTest {

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

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

// then
assertJsonEquals("openrtb2/progx/test-auction-progx-response.json", response, List.of("progx"));
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"id": "request_id",
"imp": [
{
"id": "imp_id",
"secure": 1,
"banner": {
"w": 320,
"h": 250
},
"ext": {
"progx": {
"cId": "connectionId"
}
}
}
],
"tmax": 5000,
"regs": {
"ext": {
"gdpr": 0
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"id": "request_id",
"seatbid": [
{
"bid": [
{
"id": "bid_id",
"impid": "imp_id",
"exp": 300,
"price": 0.01,
"adid": "2068416",
"cid": "8048",
"crid": "24080",
"mtype": 1,
"ext": {
"prebid": {
"type": "banner",
"meta": {
"adaptercode": "progx"
}
},
"origbidcpm": 0.01
}
}
],
"seat": "progx",
"group": 0
}
],
"cur": "USD",
"ext": {
"responsetimemillis": {
"progx": "{{ progx.response_time_ms }}"
},
"prebid": {
"auctiontimestamp": 0
},
"tmaxrequest": 5000
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"id": "request_id",
"imp": [
{
"id": "imp_id",
"secure": 1,
"banner": {
"w": 320,
"h": 250
},
"ext": {
"tid": "${json-unit.any-string}",
"bidder": {
"cId": "connectionId"
}
}
}
],
"source": {
"tid": "${json-unit.any-string}"
},
"site": {
"domain": "www.example.com",
"page": "http://www.example.com",
"publisher": {
"domain": "example.com"
},
"ext": {
"amp": 0
}
},
"device": {
"ua": "userAgent",
"ip": "193.168.244.1"
},
"at": 1,
"tmax": "${json-unit.any-number}",
"cur": [
"USD"
],
"regs": {
"gdpr": 0
},
"ext": {
"prebid": {
"server": {
"externalurl": "http://localhost:8080",
"gvlid": 1,
"datacenter": "local",
"endpoint": "/openrtb2/auction"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "tid",
"seatbid": [
{
"bid": [
{
"crid": "24080",
"adid": "2068416",
"price": 0.01,
"id": "bid_id",
"impid": "imp_id",
"cid": "8048",
"mtype": 1
}
],
"type": "banner"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,8 @@ adapters.xeworks.aliases.connektai.enabled=true
adapters.xeworks.aliases.connektai.endpoint=http://localhost:8090/connektai-exchange
adapters.vidazoo.enabled=true
adapters.vidazoo.endpoint=http://localhost:8090/vidazoo-exchange/
adapters.vidazoo.aliases.progx.enabled=true
adapters.vidazoo.aliases.progx.endpoint=http://localhost:8090/progx-exchange/
adapters.videobyte.enabled=true
adapters.videobyte.endpoint=http://localhost:8090/videobyte-exchange
adapters.videoheroes.enabled=true
Expand Down
Loading