From de5a8aaa98dc31a443a46b25b8b2633b3c7c1d71 Mon Sep 17 00:00:00 2001 From: SerhiiNahornyi Date: Tue, 26 Sep 2023 16:48:55 +0300 Subject: [PATCH] Engagebdr: Remove adapter (#2648) --- .../bidder/engagebdr/EngagebdrBidder.java | 141 ---------- .../request/engagebdr/ExtImpEngagebdr.java | 14 - .../config/bidder/EngagebdrConfiguration.java | 42 --- .../resources/bidder-config/engagebdr.yaml | 18 -- .../static/bidder-params/engagebdr.json | 14 - .../bidder/engagebdr/EngagebdrBidderTest.java | 261 ------------------ .../org/prebid/server/it/EngagebdrTest.java | 38 --- .../test-auction-engagebdr-request.json | 23 -- .../test-auction-engagebdr-response.json | 43 --- .../engagebdr/test-engagebdr-bid-request.json | 56 ---- .../test-engagebdr-bid-response.json | 27 -- .../server/it/test-application.properties | 2 - 12 files changed, 679 deletions(-) delete mode 100644 src/main/java/org/prebid/server/bidder/engagebdr/EngagebdrBidder.java delete mode 100644 src/main/java/org/prebid/server/proto/openrtb/ext/request/engagebdr/ExtImpEngagebdr.java delete mode 100644 src/main/java/org/prebid/server/spring/config/bidder/EngagebdrConfiguration.java delete mode 100644 src/main/resources/bidder-config/engagebdr.yaml delete mode 100644 src/main/resources/static/bidder-params/engagebdr.json delete mode 100644 src/test/java/org/prebid/server/bidder/engagebdr/EngagebdrBidderTest.java delete mode 100644 src/test/java/org/prebid/server/it/EngagebdrTest.java delete mode 100644 src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-auction-engagebdr-request.json delete mode 100644 src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-auction-engagebdr-response.json delete mode 100644 src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-engagebdr-bid-request.json delete mode 100644 src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-engagebdr-bid-response.json diff --git a/src/main/java/org/prebid/server/bidder/engagebdr/EngagebdrBidder.java b/src/main/java/org/prebid/server/bidder/engagebdr/EngagebdrBidder.java deleted file mode 100644 index 0b14daa13db..00000000000 --- a/src/main/java/org/prebid/server/bidder/engagebdr/EngagebdrBidder.java +++ /dev/null @@ -1,141 +0,0 @@ -package org.prebid.server.bidder.engagebdr; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.iab.openrtb.request.BidRequest; -import com.iab.openrtb.request.Imp; -import com.iab.openrtb.response.BidResponse; -import com.iab.openrtb.response.SeatBid; -import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.lang3.StringUtils; -import org.prebid.server.bidder.Bidder; -import org.prebid.server.bidder.model.BidderBid; -import org.prebid.server.bidder.model.BidderCall; -import org.prebid.server.bidder.model.BidderError; -import org.prebid.server.bidder.model.HttpRequest; -import org.prebid.server.bidder.model.Result; -import org.prebid.server.exception.PreBidException; -import org.prebid.server.json.DecodeException; -import org.prebid.server.json.JacksonMapper; -import org.prebid.server.proto.openrtb.ext.ExtPrebid; -import org.prebid.server.proto.openrtb.ext.request.engagebdr.ExtImpEngagebdr; -import org.prebid.server.proto.openrtb.ext.response.BidType; -import org.prebid.server.util.BidderUtil; -import org.prebid.server.util.HttpUtil; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -public class EngagebdrBidder implements Bidder { - - private static final TypeReference> ENGAGEBDR_EXT_TYPE_REFERENCE = - new TypeReference<>() { - }; - - private final String endpointUrl; - private final JacksonMapper mapper; - - public EngagebdrBidder(String endpointUrl, JacksonMapper mapper) { - this.endpointUrl = HttpUtil.validateUrl(Objects.requireNonNull(endpointUrl)); - this.mapper = Objects.requireNonNull(mapper); - } - - @Override - public Result>> makeHttpRequests(BidRequest bidRequest) { - final List errors = new ArrayList<>(); - final Map> dispatchedRequest = dispatchImpsBySspid(bidRequest, errors); - - final List> httpRequests = new ArrayList<>(); - for (Map.Entry> sspidToImpsEntry : dispatchedRequest.entrySet()) { - final BidRequest updatedBidRequest = bidRequest.toBuilder().imp(sspidToImpsEntry.getValue()).build(); - - httpRequests.add(BidderUtil.defaultRequest( - updatedBidRequest, - endpointUrl + "?zoneid=" + sspidToImpsEntry.getKey(), - mapper)); - } - - return Result.of(httpRequests, errors); - } - - private Map> dispatchImpsBySspid(BidRequest bidRequest, List errors) { - final Map> sspidToImp = new HashMap<>(); - for (Imp imp : bidRequest.getImp()) { - try { - validateImp(imp); - final String sspid = parseImpExt(imp).getSspid(); - validateSspid(sspid); - - sspidToImp.computeIfAbsent(sspid, key -> new ArrayList<>()).add(imp); - } catch (PreBidException e) { - errors.add(BidderError.badInput("Ignoring imp id=%s, %s".formatted(imp.getId(), e.getMessage()))); - } - } - return sspidToImp; - } - - private static void validateImp(Imp imp) { - if (imp.getAudio() != null) { - throw new PreBidException("invalid MediaType EngageBDR only supports Banner, Video and Native"); - } - } - - private static void validateSspid(String sspid) { - if (StringUtils.isBlank(sspid)) { - throw new PreBidException("no sspid present"); - } - } - - private ExtImpEngagebdr parseImpExt(Imp imp) { - try { - return mapper.mapper().convertValue(imp.getExt(), - ENGAGEBDR_EXT_TYPE_REFERENCE).getBidder(); - } catch (IllegalArgumentException e) { - throw new PreBidException("error while decoding impExt, err: " + e.getMessage()); - } - } - - @Override - public Result> makeBids(BidderCall httpCall, BidRequest bidRequest) { - try { - final BidResponse bidResponse = mapper.decodeValue(httpCall.getResponse().getBody(), BidResponse.class); - return Result.withValues(extractBids(bidResponse, bidRequest)); - } catch (DecodeException e) { - return Result.withError(BidderError.badServerResponse(e.getMessage())); - } - } - - private static List extractBids(BidResponse bidResponse, BidRequest bidRequest) { - return bidResponse == null || CollectionUtils.isEmpty(bidResponse.getSeatbid()) - ? Collections.emptyList() - : bidsFromResponse(bidResponse, bidRequest); - } - - private static List bidsFromResponse(BidResponse bidResponse, BidRequest bidRequest) { - return bidResponse.getSeatbid().stream() - .filter(Objects::nonNull) - .map(SeatBid::getBid) - .filter(Objects::nonNull) - .flatMap(Collection::stream) - .map(bid -> BidderBid.of(bid, getBidType(bid.getImpid(), bidRequest.getImp()), bidResponse.getCur())) - .toList(); - } - - private static BidType getBidType(String impId, List imps) { - for (Imp imp : imps) { - if (imp.getId().equals(impId)) { - if (imp.getVideo() != null) { - return BidType.video; - } else if (imp.getXNative() != null) { - return BidType.xNative; - } - } - } - return BidType.banner; - } -} - diff --git a/src/main/java/org/prebid/server/proto/openrtb/ext/request/engagebdr/ExtImpEngagebdr.java b/src/main/java/org/prebid/server/proto/openrtb/ext/request/engagebdr/ExtImpEngagebdr.java deleted file mode 100644 index 7d3dfaa5238..00000000000 --- a/src/main/java/org/prebid/server/proto/openrtb/ext/request/engagebdr/ExtImpEngagebdr.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.prebid.server.proto.openrtb.ext.request.engagebdr; - -import lombok.AllArgsConstructor; -import lombok.Value; - -/** - * Defines the contract for bidRequest.imp[i].ext.engagebdr - */ -@AllArgsConstructor(staticName = "of") -@Value -public class ExtImpEngagebdr { - - String sspid; -} diff --git a/src/main/java/org/prebid/server/spring/config/bidder/EngagebdrConfiguration.java b/src/main/java/org/prebid/server/spring/config/bidder/EngagebdrConfiguration.java deleted file mode 100644 index e18019b1a7a..00000000000 --- a/src/main/java/org/prebid/server/spring/config/bidder/EngagebdrConfiguration.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.prebid.server.spring.config.bidder; - -import org.prebid.server.bidder.BidderDeps; -import org.prebid.server.bidder.engagebdr.EngagebdrBidder; -import org.prebid.server.json.JacksonMapper; -import org.prebid.server.spring.config.bidder.model.BidderConfigurationProperties; -import org.prebid.server.spring.config.bidder.util.BidderDepsAssembler; -import org.prebid.server.spring.config.bidder.util.UsersyncerCreator; -import org.prebid.server.spring.env.YamlPropertySourceFactory; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.PropertySource; - -import javax.validation.constraints.NotBlank; - -@Configuration -@PropertySource(value = "classpath:/bidder-config/engagebdr.yaml", factory = YamlPropertySourceFactory.class) -public class EngagebdrConfiguration { - - private static final String BIDDER_NAME = "engagebdr"; - - @Bean("engagebdrConfigurationProperties") - @ConfigurationProperties("adapters.engagebdr") - BidderConfigurationProperties configurationProperties() { - return new BidderConfigurationProperties(); - } - - @Bean - BidderDeps engagebdrBidderDeps(BidderConfigurationProperties engagebdrConfigurationProperties, - @NotBlank @Value("${external-url}") String externalUrl, - JacksonMapper mapper) { - - return BidderDepsAssembler.forBidder(BIDDER_NAME) - .withConfig(engagebdrConfigurationProperties) - .usersyncerCreator(UsersyncerCreator.create(externalUrl)) - .bidderCreator(config -> new EngagebdrBidder(config.getEndpoint(), mapper)) - .assemble(); - } -} - diff --git a/src/main/resources/bidder-config/engagebdr.yaml b/src/main/resources/bidder-config/engagebdr.yaml deleted file mode 100644 index 83f00de3696..00000000000 --- a/src/main/resources/bidder-config/engagebdr.yaml +++ /dev/null @@ -1,18 +0,0 @@ -adapters: - engagebdr: - endpoint: http://dsp.bnmla.com/hb - meta-info: - maintainer-email: tech@engagebdr.com - app-media-types: - - banner - - video - - native - site-media-types: - supported-vendors: - vendor-id: 0 - usersync: - cookie-family-name: engagebdr - iframe: - url: https://match.bnmla.com/usersync?sspid=1000363&gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&us_privacy={{us_privacy}}&redir={{redirect_url}} - support-cors: false - uid-macro: '{UUID}' diff --git a/src/main/resources/static/bidder-params/engagebdr.json b/src/main/resources/static/bidder-params/engagebdr.json deleted file mode 100644 index 4f987004045..00000000000 --- a/src/main/resources/static/bidder-params/engagebdr.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "EngageBDR Adapter Params", - "description": "A schema which validates params accepted by the EngageBDR adapter", - "type": "object", - "properties": { - "sspid": { - "type": "string", - "description": "SSPID parameter", - "pattern": "^[0-9]+$" - } - }, - "required": ["sspid"] -} diff --git a/src/test/java/org/prebid/server/bidder/engagebdr/EngagebdrBidderTest.java b/src/test/java/org/prebid/server/bidder/engagebdr/EngagebdrBidderTest.java deleted file mode 100644 index a1802ee0694..00000000000 --- a/src/test/java/org/prebid/server/bidder/engagebdr/EngagebdrBidderTest.java +++ /dev/null @@ -1,261 +0,0 @@ -package org.prebid.server.bidder.engagebdr; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.iab.openrtb.request.Audio; -import com.iab.openrtb.request.BidRequest; -import com.iab.openrtb.request.Imp; -import com.iab.openrtb.request.Native; -import com.iab.openrtb.request.Video; -import com.iab.openrtb.response.Bid; -import com.iab.openrtb.response.BidResponse; -import com.iab.openrtb.response.SeatBid; -import org.junit.Test; -import org.prebid.server.VertxTest; -import org.prebid.server.bidder.model.BidderBid; -import org.prebid.server.bidder.model.BidderCall; -import org.prebid.server.bidder.model.BidderError; -import org.prebid.server.bidder.model.HttpRequest; -import org.prebid.server.bidder.model.HttpResponse; -import org.prebid.server.bidder.model.Result; -import org.prebid.server.proto.openrtb.ext.ExtPrebid; -import org.prebid.server.proto.openrtb.ext.request.engagebdr.ExtImpEngagebdr; - -import java.util.Arrays; -import java.util.List; -import java.util.function.Function; - -import static java.util.Collections.singletonList; -import static java.util.function.Function.identity; -import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; -import static org.prebid.server.proto.openrtb.ext.response.BidType.banner; -import static org.prebid.server.proto.openrtb.ext.response.BidType.video; -import static org.prebid.server.proto.openrtb.ext.response.BidType.xNative; - -public class EngagebdrBidderTest extends VertxTest { - - private static final String ENDPOINT_URL = "https://test.endpoint.com"; - - private final EngagebdrBidder target = new EngagebdrBidder(ENDPOINT_URL, jacksonMapper); - - @Test - public void creationShouldFailOnInvalidEndpointUrl() { - assertThatIllegalArgumentException().isThrownBy(() -> new EngagebdrBidder("invalid_url", jacksonMapper)); - } - - @Test - public void makeHttpRequestsShouldReturnErrorWhenImpContainsAudio() { - // given - final BidRequest bidRequest = givenBidRequest(impBuilder -> impBuilder.audio(Audio.builder().build())); - - // when - final Result>> result = target.makeHttpRequests(bidRequest); - - // then - assertThat(result.getErrors()).hasSize(1).containsOnly( - BidderError.badInput("Ignoring imp id=123, invalid MediaType EngageBDR only supports Banner, " - + "Video and Native")); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeHttpRequestsShouldReturnErrorWhenImpExtCouldNotBeParsed() { - // given - final BidRequest bidRequest = givenBidRequest(impBuilder -> impBuilder - .ext(mapper.valueToTree(ExtPrebid.of(null, mapper.createArrayNode())))); - - // when - final Result>> result = target.makeHttpRequests(bidRequest); - - // then - assertThat(result.getErrors()).hasSize(1); - assertThat(result.getErrors().get(0).getMessage()).startsWith("Ignoring imp id=123, error while decoding" - + " impExt, err"); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeHttpRequestsShouldReturnErrorWhenImpExtSspidIsBlank() { - // given - final BidRequest bidRequest = givenBidRequest(impBuilder -> impBuilder - .ext(mapper.valueToTree(ExtPrebid.of(null, ExtImpEngagebdr.of(""))))); - - // when - final Result>> result = target.makeHttpRequests(bidRequest); - - // then - assertThat(result.getErrors()).hasSize(1).containsOnly( - BidderError.badInput("Ignoring imp id=123, no sspid present")); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeHttpRequestsShouldSendImpsToUrlsBySspid() { - // given - final Imp firstimpWithSspidOne = Imp.builder() - .ext(mapper.valueToTree(ExtPrebid.of(null, ExtImpEngagebdr.of("sspid1")))) - .build(); - final Imp secondImpWithSspidOne = Imp.builder() - .ext(mapper.valueToTree(ExtPrebid.of(null, ExtImpEngagebdr.of("sspid1")))) - .build(); - final Imp impWithSspidTwo = Imp.builder() - .ext(mapper.valueToTree(ExtPrebid.of(null, ExtImpEngagebdr.of("sspid2")))) - .build(); - final BidRequest bidRequest = BidRequest.builder() - .imp(Arrays.asList(firstimpWithSspidOne, secondImpWithSspidOne, impWithSspidTwo)) - .id("request_id") - .build(); - - // when - final Result>> result = target.makeHttpRequests(bidRequest); - - // then - final BidRequest expectedSspidOneBidRequest = bidRequest.toBuilder() - .imp(Arrays.asList(firstimpWithSspidOne, secondImpWithSspidOne)) - .build(); - final BidRequest expectedSspidTwoBidRequest = bidRequest.toBuilder() - .imp(singletonList(impWithSspidTwo)) - .build(); - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()).hasSize(2) - .extracting(httpRequest -> mapper.readValue(httpRequest.getBody(), BidRequest.class)) - .containsOnly(expectedSspidOneBidRequest, expectedSspidTwoBidRequest); - assertThat(result.getValue()).hasSize(2) - .extracting(HttpRequest::getUri) - .containsOnly("https://test.endpoint.com?zoneid=sspid1", "https://test.endpoint.com?zoneid=sspid2"); - } - - @Test - public void makeBidsShouldReturnErrorWhenResponseBodyCouldNotBeParsed() { - // given - final BidderCall httpCall = givenHttpCall(null, "invalid"); - - // when - final Result> result = target.makeBids(httpCall, null); - - // then - assertThat(result.getErrors()).hasSize(1); - assertThat(result.getErrors().get(0).getMessage()).startsWith("Failed to decode: Unrecognized token"); - assertThat(result.getErrors().get(0).getType()).isEqualTo(BidderError.Type.bad_server_response); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeBidsShouldReturnEmptyListWhenBidResponseIsNull() throws JsonProcessingException { - // given - final BidderCall httpCall = givenHttpCall(null, mapper.writeValueAsString(null)); - - // when - final Result> result = target.makeBids(httpCall, null); - - // then - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeBidsShouldReturnEmptyListWhenBidResponseSeatBidIsNull() throws JsonProcessingException { - // given - final BidderCall httpCall = givenHttpCall(null, - mapper.writeValueAsString(BidResponse.builder().build())); - - // when - final Result> result = target.makeBids(httpCall, null); - - // then - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()).isEmpty(); - } - - @Test - public void makeBidsShouldReturnBannerWhenNoTypeProvided() throws JsonProcessingException { - // given - final BidRequest bidRequest = givenBidRequest(identity()); - final BidderCall httpCall = givenHttpCall( - bidRequest, - mapper.writeValueAsString( - givenBidResponse(bidBuilder -> bidBuilder.impid("123")))); - - // when - final Result> result = target.makeBids(httpCall, bidRequest); - - // then - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()) - .containsOnly(BidderBid.of(Bid.builder().impid("123").build(), banner, "USD")); - } - - @Test - public void makeBidsShouldReturnXnativeWhenXnativeProvided() throws JsonProcessingException { - // given - final BidRequest bidRequest = givenBidRequest(impBuilder -> impBuilder.xNative(Native.builder().build())); - - final BidderCall httpCall = givenHttpCall( - bidRequest, - mapper.writeValueAsString( - givenBidResponse(bidBuilder -> bidBuilder.impid("123")))); - - // when - final Result> result = target.makeBids(httpCall, bidRequest); - - // then - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()) - .containsOnly(BidderBid.of(Bid.builder().impid("123").build(), xNative, "USD")); - } - - @Test - public void makeBidsShouldReturnVideoWhenVideoProvided() throws JsonProcessingException { - // given - final BidRequest bidRequest = givenBidRequest(impBuilder -> impBuilder.video(Video.builder().build())); - - final BidderCall httpCall = givenHttpCall( - bidRequest, - mapper.writeValueAsString( - givenBidResponse(bidBuilder -> bidBuilder.impid("123")))); - - // when - final Result> result = target.makeBids(httpCall, bidRequest); - - // then - assertThat(result.getErrors()).isEmpty(); - assertThat(result.getValue()) - .containsOnly(BidderBid.of(Bid.builder().impid("123").build(), video, "USD")); - } - - private static BidRequest givenBidRequest(Function impCustomizer) { - return givenBidRequest(identity(), impCustomizer); - } - - private static BidRequest givenBidRequest( - Function bidRequestCustomizer, - Function impCustomizer) { - - return bidRequestCustomizer.apply(BidRequest.builder() - .imp(singletonList(givenImp(impCustomizer)))) - .build(); - } - - private static Imp givenImp(Function impCustomizer) { - return impCustomizer.apply(Imp.builder() - .id("123")) - .build(); - } - - private static BidResponse givenBidResponse(Function bidCustomizer) { - return BidResponse.builder() - .cur("USD") - .seatbid(singletonList(SeatBid.builder() - .bid(singletonList(bidCustomizer.apply(Bid.builder()).build())) - .build())) - .build(); - } - - private static BidderCall givenHttpCall(BidRequest bidRequest, String body) { - return BidderCall.succeededHttp( - HttpRequest.builder().payload(bidRequest).build(), - HttpResponse.of(200, null, body), - null); - } -} - diff --git a/src/test/java/org/prebid/server/it/EngagebdrTest.java b/src/test/java/org/prebid/server/it/EngagebdrTest.java deleted file mode 100644 index 9782d720fa7..00000000000 --- a/src/test/java/org/prebid/server/it/EngagebdrTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.prebid.server.it; - -import io.restassured.response.Response; -import org.json.JSONException; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.prebid.server.model.Endpoint; -import org.springframework.test.context.junit4.SpringRunner; - -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; - -@RunWith(SpringRunner.class) -public class EngagebdrTest extends IntegrationTest { - - @Test - public void openrtb2AuctionShouldRespondWithBidsFromEngagebdr() throws IOException, JSONException { - // given - WIRE_MOCK_RULE.stubFor(post(urlPathEqualTo("/engagebdr-exchange")) - .withRequestBody(equalToJson(jsonFrom("openrtb2/engagebdr/test-engagebdr-bid-request.json"))) - .willReturn(aResponse().withBody( - jsonFrom("openrtb2/engagebdr/test-engagebdr-bid-response.json")))); - - // when - final Response response = responseFor("openrtb2/engagebdr/test-auction-engagebdr-request.json", - Endpoint.openrtb2_auction); - - // then - assertJsonEquals("openrtb2/engagebdr/test-auction-engagebdr-response.json", response, - singletonList("engagebdr")); - } -} - diff --git a/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-auction-engagebdr-request.json b/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-auction-engagebdr-request.json deleted file mode 100644 index f2586598aac..00000000000 --- a/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-auction-engagebdr-request.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "id": "request_id", - "imp": [ - { - "id": "imp_id", - "banner": { - "w": 300, - "h": 250 - }, - "ext": { - "engagebdr": { - "sspid": "99999" - } - } - } - ], - "tmax": 5000, - "regs": { - "ext": { - "gdpr": 0 - } - } -} diff --git a/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-auction-engagebdr-response.json b/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-auction-engagebdr-response.json deleted file mode 100644 index 47bd208c4d2..00000000000 --- a/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-auction-engagebdr-response.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "id": "request_id", - "seatbid": [ - { - "bid": [ - { - "id": "bid_id", - "impid": "imp_id", - "price": 9.81, - "adm": "
", - "adid": "abcde-12345", - "adomain": [ - "advertiserdomain.com" - ], - "iurl": "http://match.bnmla.com/usersync?sspid=59&redir=", - "cid": "campaign1", - "crid": "abcde-12345", - "w": 300, - "h": 250, - "ext": { - "prebid": { - "type": "banner" - }, - "origbidcpm": 9.81, - "origbidcur": "USD" - } - } - ], - "seat": "engagebdr", - "group": 0 - } - ], - "cur": "USD", - "ext": { - "responsetimemillis": { - "engagebdr": "{{ engagebdr.response_time_ms }}" - }, - "prebid": { - "auctiontimestamp": 0 - }, - "tmaxrequest": 5000 - } -} diff --git a/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-engagebdr-bid-request.json b/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-engagebdr-bid-request.json deleted file mode 100644 index df77b82845b..00000000000 --- a/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-engagebdr-bid-request.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "id": "request_id", - "imp": [ - { - "id": "imp_id", - "secure": 1, - "banner": { - "w": 300, - "h": 250 - }, - "ext": { - "tid": "${json-unit.any-string}", - "bidder": { - "sspid": "99999" - } - } - } - ], - "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 - } - }, - "ext": { - "prebid": { - "server": { - "externalurl": "http://localhost:8080", - "gvlid": 1, - "datacenter": "local", - "endpoint": "/openrtb2/auction" - } - } - } -} diff --git a/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-engagebdr-bid-response.json b/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-engagebdr-bid-response.json deleted file mode 100644 index 2f0a5490540..00000000000 --- a/src/test/resources/org/prebid/server/it/openrtb2/engagebdr/test-engagebdr-bid-response.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "id": "request_id", - "seatbid": [ - { - "bid": [ - { - "id": "bid_id", - "impid": "imp_id", - "price": 9.81, - "adid": "abcde-12345", - "adm": "
", - "adomain": [ - "advertiserdomain.com" - ], - "iurl": "http://match.bnmla.com/usersync?sspid=59&redir=", - "cid": "campaign1", - "crid": "abcde-12345", - "w": 300, - "h": 250 - } - ], - "seat": "request_id" - } - ], - "bidid": "request_id", - "cur": "USD" -} diff --git a/src/test/resources/org/prebid/server/it/test-application.properties b/src/test/resources/org/prebid/server/it/test-application.properties index 79b93087825..1526a90a47f 100644 --- a/src/test/resources/org/prebid/server/it/test-application.properties +++ b/src/test/resources/org/prebid/server/it/test-application.properties @@ -152,8 +152,6 @@ adapters.emtv.enabled=true adapters.emtv.endpoint=http://localhost:8090/emtv-exchange adapters.emxdigital.enabled=true adapters.emxdigital.endpoint=http://localhost:8090/emx_digital-exchange -adapters.engagebdr.enabled=true -adapters.engagebdr.endpoint=http://localhost:8090/engagebdr-exchange adapters.eplanning.enabled=true adapters.eplanning.endpoint=http://localhost:8090/eplanning-exchange adapters.epom.enabled=true