File tree Expand file tree Collapse file tree
groovy/org/prebid/server/functional/testcontainers
java/org/prebid/server/it
resources/org/prebid/server/it Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,24 +97,6 @@ adapters:
9797 url : https://prebid.cwi.re/v1/usersync?gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&rd={{redirect_url}}
9898 support-cors : false
9999 uid-macro : ' $UID'
100- adsinteractive :
101- enabled : false
102- endpoint : http://bid.adsinteractive.com/prebid
103- modifying-vast-xml-allowed : false
104- meta-info :
105- maintainer-email : it@adsinteractive.com
106- app-media-types :
107- - banner
108- site-media-types :
109- - banner
110- supported-vendors :
111- vendor-id : 1212
112- usersync :
113- cookie-family-name : adsinteractive
114- redirect :
115- url : https://sync.adsinteractive.com/getuid?{{redirect_url}}&gpp={{gpp}}&gpp_sid={{gpp_sid}}
116- support-cors : false
117- uid-macro : ' $AUID'
118100 nativo :
119101 enabled : false
120102 endpoint : https://exchange.postrelease.com/esi?ntv_epid=7
Original file line number Diff line number Diff line change @@ -43,6 +43,23 @@ adapters:
4343 mata-info :
4444 maintainer-email : support@gravite.net
4545 vendor-id : 377
46+ adsinteractive :
47+ enabled : false
48+ endpoint : https://bntb.adsinteractive.com/pserver
49+ meta-info :
50+ maintainer-email : it@adsinteractive.com
51+ vendor-id : 1212
52+ usersync :
53+ enabled : true
54+ cookie-family-name : adsinteractive
55+ redirect :
56+ url : https://cstb.adsinteractive.com/pbserver?gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&ccpa={{us_privacy}}&gpp={{gpp}}&gpp_sid={{gpp_sid}}&redir={{redirect_url}}
57+ support-cors : false
58+ uid-macro : ' [UID]'
59+ iframe :
60+ url : https://cstb.adsinteractive.com/pbserverIframe?gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&ccpa={{us_privacy}}&gpp={{gpp}}&gpp_sid={{gpp_sid}}&pbserverUrl={{redirect_url}}
61+ support-cors : false
62+ uid-macro : ' [UID]'
4663 progx :
4764 enabled : false
4865 endpoint : https://us-east.progrtb.com/pserver
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11package org.prebid.server.functional.testcontainers
22
3- import org.testcontainers.containers.InfluxDBContainer
3+
44import org.testcontainers.containers.MySQLContainer
55import org.testcontainers.containers.PostgreSQLContainer
66
@@ -123,8 +123,6 @@ LIMIT 1
123123 " adapters.generic.aliases.cwire.meta-info.app-media-types" : " " ,
124124 " adapters.generic.aliases.blue.meta-info.app-media-types" : " " ,
125125 " adapters.generic.aliases.blue.meta-info.site-media-types" : " " ,
126- " adapters.generic.aliases.adsinteractive.meta-info.app-media-types" : " " ,
127- " adapters.generic.aliases.adsinteractive.meta-info.site-media-types" : " " ,
128126 " adapters.generic.aliases.nativo.meta-info.app-media-types" : " " ,
129127 " adapters.generic.aliases.nativo.meta-info.site-media-types" : " " ,
130128 " adapters.generic.aliases.infytv.meta-info.app-media-types" : " " ,
Original file line number Diff line number Diff line change 1+ package org .prebid .server .it ;
2+
3+ import io .restassured .response .Response ;
4+ import org .json .JSONException ;
5+ import org .junit .jupiter .api .Test ;
6+ import org .prebid .server .model .Endpoint ;
7+
8+ import java .io .IOException ;
9+
10+ import static com .github .tomakehurst .wiremock .client .WireMock .aResponse ;
11+ import static com .github .tomakehurst .wiremock .client .WireMock .equalToJson ;
12+ import static com .github .tomakehurst .wiremock .client .WireMock .post ;
13+ import static com .github .tomakehurst .wiremock .client .WireMock .urlPathEqualTo ;
14+ import static java .util .Collections .singletonList ;
15+
16+ public class AdsinteractiveTest extends IntegrationTest {
17+
18+ @ Test
19+ public void openrtb2AuctionShouldRespondWithBidsFromAdsinteractive () throws IOException , JSONException {
20+ // given
21+ WIRE_MOCK_RULE .stubFor (post (urlPathEqualTo ("/adsinteractive-exchange" ))
22+ .withRequestBody (equalToJson (jsonFrom ("openrtb2/adsinteractive/test-adsinteractive-bid-request.json" )))
23+ .willReturn (aResponse ().withBody (
24+ jsonFrom ("openrtb2/adsinteractive/test-adsinteractive-bid-response.json" ))));
25+
26+ // when
27+ final Response response = responseFor ("openrtb2/adsinteractive/test-auction-adsinteractive-request.json" ,
28+ Endpoint .openrtb2_auction );
29+
30+ // then
31+ assertJsonEquals ("openrtb2/adsinteractive/test-auction-adsinteractive-response.json" ,
32+ response , singletonList ("adsinteractive" ));
33+ }
34+ }
Original file line number Diff line number Diff line change 1+ {
2+ "id" : " request_id" ,
3+ "imp" : [
4+ {
5+ "id" : " imp_id" ,
6+ "banner" : {
7+ "w" : 300 ,
8+ "h" : 250
9+ },
10+ "secure" : 1 ,
11+ "ext" : {
12+ "bidder" : {
13+ "type" : " publisher" ,
14+ "placementId" : " testPlacementId"
15+ }
16+ }
17+ }
18+ ],
19+ "site" : {
20+ "domain" : " www.example.com" ,
21+ "page" : " http://www.example.com" ,
22+ "publisher" : {
23+ "domain" : " example.com"
24+ },
25+ "ext" : {
26+ "amp" : 0
27+ }
28+ },
29+ "device" : {
30+ "ua" : " userAgent" ,
31+ "ip" : " 193.168.244.1"
32+ },
33+ "at" : 1 ,
34+ "tmax" : " ${json-unit.any-number}" ,
35+ "cur" : [
36+ " USD"
37+ ],
38+ "source" : {
39+ "tid" : " ${json-unit.any-string}"
40+ },
41+ "regs" : {
42+ "ext" : {
43+ "gdpr" : 0
44+ }
45+ },
46+ "ext" : {
47+ "prebid" : {
48+ "server" : {
49+ "externalurl" : " http://localhost:8080" ,
50+ "gvlid" : 1 ,
51+ "datacenter" : " local" ,
52+ "endpoint" : " /openrtb2/auction"
53+ }
54+ }
55+ }
56+ }
Original file line number Diff line number Diff line change 1+ {
2+ "id" : " request_id" ,
3+ "seatbid" : [
4+ {
5+ "bid" : [
6+ {
7+ "id" : " bid_id" ,
8+ "impid" : " imp_id" ,
9+ "price" : 3.33 ,
10+ "crid" : " creativeId" ,
11+ "mtype" : 1 ,
12+ "ext" : {
13+ "prebid" : {
14+ "type" : " banner"
15+ }
16+ }
17+ }
18+ ]
19+ }
20+ ]
21+ }
Original file line number Diff line number Diff line change 1+ {
2+ "id" : " request_id" ,
3+ "imp" : [
4+ {
5+ "id" : " imp_id" ,
6+ "banner" : {
7+ "w" : 300 ,
8+ "h" : 250
9+ },
10+ "ext" : {
11+ "adsinteractive" : {
12+ "placementId" : " testPlacementId"
13+ }
14+ }
15+ }
16+ ],
17+ "tmax" : 5000 ,
18+ "regs" : {
19+ "ext" : {
20+ "gdpr" : 0
21+ }
22+ }
23+ }
Original file line number Diff line number Diff line change 1+ {
2+ "id" : " request_id" ,
3+ "seatbid" : [
4+ {
5+ "bid" : [
6+ {
7+ "id" : " bid_id" ,
8+ "impid" : " imp_id" ,
9+ "exp" : 300 ,
10+ "price" : 3.33 ,
11+ "crid" : " creativeId" ,
12+ "mtype" : 1 ,
13+ "ext" : {
14+ "origbidcpm" : 3.33 ,
15+ "prebid" : {
16+ "type" : " banner" ,
17+ "meta" : {
18+ "adaptercode" : " adsinteractive"
19+ }
20+ }
21+ }
22+ }
23+ ],
24+ "seat" : " adsinteractive" ,
25+ "group" : 0
26+ }
27+ ],
28+ "cur" : " USD" ,
29+ "ext" : {
30+ "responsetimemillis" : {
31+ "adsinteractive" : " {{ adsinteractive.response_time_ms }}"
32+ },
33+ "prebid" : {
34+ "auctiontimestamp" : 0
35+ },
36+ "tmaxrequest" : 5000
37+ }
38+ }
Original file line number Diff line number Diff line change @@ -585,6 +585,8 @@ adapters.teqblaze.aliases.appStockSSP.enabled=true
585585adapters.teqblaze.aliases.appStockSSP.endpoint =http://localhost:8090/appstockssp-exchange
586586adapters.teqblaze.aliases.gravite.enabled =true
587587adapters.teqblaze.aliases.gravite.endpoint =http://localhost:8090/gravite-exchange
588+ adapters.teqblaze.aliases.adsinteractive.enabled =true
589+ adapters.teqblaze.aliases.adsinteractive.endpoint =http://localhost:8090/adsinteractive-exchange
588590adapters.teqblaze.aliases.progx.enabled =true
589591adapters.teqblaze.aliases.progx.endpoint =http://localhost:8090/progx-exchange/
590592adapters.theadx.enabled =true
You can’t perform that action at this time.
0 commit comments