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
3 changes: 3 additions & 0 deletions src/main/resources/bidder-config/limelightDigital.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ adapters:
adtg_org:
enabled: false
endpoint: http://ads-pbs.rtb.adtarget.org/openrtb/{{PublisherID}}?host={{Host}}
performist:
enabled: false
endpoint: http://ads-pbs.performserv.com/openrtb/{{PublisherID}}
meta-info:
maintainer-email: engineering@project-limelight.com
app-media-types:
Expand Down
35 changes: 35 additions & 0 deletions src/test/java/org/prebid/server/it/PerformistTest.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 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;
import static java.util.Collections.singletonList;

public class PerformistTest extends IntegrationTest {

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

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

// then
assertJsonEquals("openrtb2/performist/test-auction-performist-response.json", response,
singletonList("performist"));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"id": "request_id",
"imp": [
{
"id": "imp_id",
"banner": {
"w": 300,
"h": 250
},
"ext": {
"performist": {
"host": "test.host",
"publisherId": "123456"
}
}
}
],
"tmax": 5000,
"regs": {
"ext": {
"gdpr": 0
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"id": "request_id",
"seatbid": [
{
"bid": [
{
"id": "bid_id",
"impid": "imp_id",
"exp": 300,
"price": 3.33,
"crid": "creativeId",
"ext": {
"origbidcpm": 3.33,
"prebid": {
"type": "banner",
"meta": {
"adaptercode": "performist"
}
}
}
}
],
"seat": "performist",
"group": 0
}
],
"cur": "USD",
"ext": {
"responsetimemillis": {
"performist": "{{ performist.response_time_ms }}"
},
"prebid": {
"auctiontimestamp": 0
},
"tmaxrequest": 5000
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"id": "request_id-imp_id",
"imp": [
{
"id": "imp_id",
"secure": 1,
"banner": {
"w": 300,
"h": 250
}
}
],
"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": {
"ext": {
"gdpr": 0
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"id": "request_id",
"seatbid": [
{
"bid": [
{
"id": "bid_id",
"impid": "imp_id",
"price": 3.33,
"crid": "creativeId"
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ adapters.limelightDigital.aliases.velonium.enabled=true
adapters.limelightDigital.aliases.velonium.endpoint=http://localhost:8090/velonium-exchange/
adapters.limelightDigital.aliases.adtg_org.enabled=true
adapters.limelightDigital.aliases.adtg_org.endpoint=http://localhost:8090/adtg_org-exchange/
adapters.limelightDigital.aliases.performist.enabled=true
adapters.limelightDigital.aliases.performist.endpoint=http://localhost:8090/performist-exchange/
adapters.lmkiviads.enabled=true
adapters.lmkiviads.endpoint=http://localhost:8090/lm-kiviads-exchange/{{SourceId}}/{{Host}}
adapters.lockerdome.enabled=true
Expand Down
Loading