diff --git a/src/main/java/org/prebid/server/bidder/liftoff/model/LiftoffImpressionExt.java b/src/main/java/org/prebid/server/bidder/liftoff/model/LiftoffImpressionExt.java deleted file mode 100644 index 541867ad71a..00000000000 --- a/src/main/java/org/prebid/server/bidder/liftoff/model/LiftoffImpressionExt.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.prebid.server.bidder.liftoff.model; - -import lombok.Builder; -import lombok.Getter; -import org.prebid.server.proto.openrtb.ext.request.ExtImpPrebid; -import org.prebid.server.proto.openrtb.ext.request.liftoff.ExtImpLiftoff; - -@Builder(toBuilder = true) -@Getter -public class LiftoffImpressionExt { - - ExtImpPrebid prebid; - - ExtImpLiftoff bidder; - - ExtImpLiftoff vungle; -} diff --git a/src/main/java/org/prebid/server/bidder/liftoff/LiftoffBidder.java b/src/main/java/org/prebid/server/bidder/vungle/VungleBidder.java similarity index 86% rename from src/main/java/org/prebid/server/bidder/liftoff/LiftoffBidder.java rename to src/main/java/org/prebid/server/bidder/vungle/VungleBidder.java index bba94b55f9c..f2c87bc2583 100644 --- a/src/main/java/org/prebid/server/bidder/liftoff/LiftoffBidder.java +++ b/src/main/java/org/prebid/server/bidder/vungle/VungleBidder.java @@ -1,4 +1,4 @@ -package org.prebid.server.bidder.liftoff; +package org.prebid.server.bidder.vungle; import com.fasterxml.jackson.databind.node.ObjectNode; import com.iab.openrtb.request.App; @@ -13,18 +13,18 @@ import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.prebid.server.bidder.Bidder; -import org.prebid.server.bidder.liftoff.model.LiftoffImpressionExt; 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.Price; import org.prebid.server.bidder.model.Result; +import org.prebid.server.bidder.vungle.model.VungleImpressionExt; import org.prebid.server.currency.CurrencyConversionService; 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.request.liftoff.ExtImpLiftoff; +import org.prebid.server.proto.openrtb.ext.request.vungle.ExtImpVungle; import org.prebid.server.proto.openrtb.ext.response.BidType; import org.prebid.server.util.BidderUtil; import org.prebid.server.util.HttpUtil; @@ -37,7 +37,7 @@ import java.util.List; import java.util.Objects; -public class LiftoffBidder implements Bidder { +public class VungleBidder implements Bidder { private static final String BIDDER_CURRENCY = "USD"; private static final String X_OPENRTB_VERSION = "2.5"; @@ -46,9 +46,9 @@ public class LiftoffBidder implements Bidder { private final CurrencyConversionService currencyConversionService; private final JacksonMapper mapper; - public LiftoffBidder(String endpointUrl, - CurrencyConversionService currencyConversionService, - JacksonMapper mapper) { + public VungleBidder(String endpointUrl, + CurrencyConversionService currencyConversionService, + JacksonMapper mapper) { this.endpointUrl = HttpUtil.validateUrl(Objects.requireNonNull(endpointUrl)); this.currencyConversionService = Objects.requireNonNull(currencyConversionService); @@ -63,8 +63,8 @@ public Result>> makeHttpRequests(BidRequest bidRequ for (Imp imp : bidRequest.getImp()) { try { final Price price = resolveBidFloor(imp, bidRequest); - final LiftoffImpressionExt impExt = parseImpExt(imp); - final LiftoffImpressionExt modifiedImpExt = modifyImpExt(impExt, bidRequest); + final VungleImpressionExt impExt = parseImpExt(imp); + final VungleImpressionExt modifiedImpExt = modifyImpExt(impExt, bidRequest); final Imp modifiedImp = modifyImp(imp, modifiedImpExt, price); final BidRequest modifiedRequest = modifyBidRequest( bidRequest, @@ -92,14 +92,14 @@ private Price resolveBidFloor(Imp imp, BidRequest bidRequest) { return Price.of(BIDDER_CURRENCY, bigDecimal); } - private LiftoffImpressionExt parseImpExt(Imp imp) { - return mapper.mapper().convertValue(imp.getExt(), LiftoffImpressionExt.class); + private VungleImpressionExt parseImpExt(Imp imp) { + return mapper.mapper().convertValue(imp.getExt(), VungleImpressionExt.class); } - private static LiftoffImpressionExt modifyImpExt(LiftoffImpressionExt impExt, BidRequest bidRequest) { - final ExtImpLiftoff bidder = impExt.getBidder(); + private static VungleImpressionExt modifyImpExt(VungleImpressionExt impExt, BidRequest bidRequest) { + final ExtImpVungle bidder = impExt.getBidder(); final String buyerId = ObjectUtil.getIfNotNull(bidRequest.getUser(), User::getBuyeruid); - final ExtImpLiftoff vungle = ExtImpLiftoff.of( + final ExtImpVungle vungle = ExtImpVungle.of( buyerId, bidder.getAppStoreId(), bidder.getPlacementReferenceId()); @@ -107,7 +107,7 @@ private static LiftoffImpressionExt modifyImpExt(LiftoffImpressionExt impExt, Bi return impExt.toBuilder().vungle(vungle).build(); } - private Imp modifyImp(Imp imp, LiftoffImpressionExt modifiedImpExt, Price price) { + private Imp modifyImp(Imp imp, VungleImpressionExt modifiedImpExt, Price price) { return imp.toBuilder() .tagid(modifiedImpExt.getBidder().getPlacementReferenceId()) .ext(mapper.mapper().convertValue(modifiedImpExt, ObjectNode.class)) diff --git a/src/main/java/org/prebid/server/bidder/vungle/model/VungleImpressionExt.java b/src/main/java/org/prebid/server/bidder/vungle/model/VungleImpressionExt.java new file mode 100644 index 00000000000..267d7368768 --- /dev/null +++ b/src/main/java/org/prebid/server/bidder/vungle/model/VungleImpressionExt.java @@ -0,0 +1,17 @@ +package org.prebid.server.bidder.vungle.model; + +import lombok.Builder; +import lombok.Getter; +import org.prebid.server.proto.openrtb.ext.request.ExtImpPrebid; +import org.prebid.server.proto.openrtb.ext.request.vungle.ExtImpVungle; + +@Builder(toBuilder = true) +@Getter +public class VungleImpressionExt { + + ExtImpPrebid prebid; + + ExtImpVungle bidder; + + ExtImpVungle vungle; +} diff --git a/src/main/java/org/prebid/server/proto/openrtb/ext/request/liftoff/ExtImpLiftoff.java b/src/main/java/org/prebid/server/proto/openrtb/ext/request/vungle/ExtImpVungle.java similarity index 60% rename from src/main/java/org/prebid/server/proto/openrtb/ext/request/liftoff/ExtImpLiftoff.java rename to src/main/java/org/prebid/server/proto/openrtb/ext/request/vungle/ExtImpVungle.java index 5232d38c985..2b6fdfadae4 100644 --- a/src/main/java/org/prebid/server/proto/openrtb/ext/request/liftoff/ExtImpLiftoff.java +++ b/src/main/java/org/prebid/server/proto/openrtb/ext/request/vungle/ExtImpVungle.java @@ -1,9 +1,9 @@ -package org.prebid.server.proto.openrtb.ext.request.liftoff; +package org.prebid.server.proto.openrtb.ext.request.vungle; import lombok.Value; @Value(staticConstructor = "of") -public class ExtImpLiftoff { +public class ExtImpVungle { String bidToken; diff --git a/src/main/java/org/prebid/server/spring/config/bidder/LiftoffConfiguration.java b/src/main/java/org/prebid/server/spring/config/bidder/VungleConfiguration.java similarity index 57% rename from src/main/java/org/prebid/server/spring/config/bidder/LiftoffConfiguration.java rename to src/main/java/org/prebid/server/spring/config/bidder/VungleConfiguration.java index 0111858f8e5..a2bc6bd427e 100644 --- a/src/main/java/org/prebid/server/spring/config/bidder/LiftoffConfiguration.java +++ b/src/main/java/org/prebid/server/spring/config/bidder/VungleConfiguration.java @@ -1,7 +1,7 @@ package org.prebid.server.spring.config.bidder; import org.prebid.server.bidder.BidderDeps; -import org.prebid.server.bidder.liftoff.LiftoffBidder; +import org.prebid.server.bidder.vungle.VungleBidder; import org.prebid.server.currency.CurrencyConversionService; import org.prebid.server.json.JacksonMapper; import org.prebid.server.spring.config.bidder.model.BidderConfigurationProperties; @@ -17,27 +17,27 @@ import jakarta.validation.constraints.NotBlank; @Configuration -@PropertySource(value = "classpath:/bidder-config/liftoff.yaml", factory = YamlPropertySourceFactory.class) -public class LiftoffConfiguration { +@PropertySource(value = "classpath:/bidder-config/vungle.yaml", factory = YamlPropertySourceFactory.class) +public class VungleConfiguration { - private static final String BIDDER_NAME = "liftoff"; + private static final String BIDDER_NAME = "vungle"; - @Bean("liftoffConfigurationProperties") - @ConfigurationProperties("adapters.liftoff") + @Bean("vungleConfigurationProperties") + @ConfigurationProperties("adapters.vungle") BidderConfigurationProperties configurationProperties() { return new BidderConfigurationProperties(); } @Bean - BidderDeps liftoffBidderDeps(BidderConfigurationProperties liftoffConfigurationProperties, - @NotBlank @Value("${external-url}") String externalUrl, - CurrencyConversionService currencyConversionService, - JacksonMapper mapper) { + BidderDeps vungleBidderDeps(BidderConfigurationProperties vungleConfigurationProperties, + @NotBlank @Value("${external-url}") String externalUrl, + CurrencyConversionService currencyConversionService, + JacksonMapper mapper) { return BidderDepsAssembler.forBidder(BIDDER_NAME) - .withConfig(liftoffConfigurationProperties) + .withConfig(vungleConfigurationProperties) .usersyncerCreator(UsersyncerCreator.create(externalUrl)) - .bidderCreator(config -> new LiftoffBidder(config.getEndpoint(), currencyConversionService, mapper)) + .bidderCreator(config -> new VungleBidder(config.getEndpoint(), currencyConversionService, mapper)) .assemble(); } } diff --git a/src/main/resources/bidder-config/liftoff.yaml b/src/main/resources/bidder-config/vungle.yaml similarity index 83% rename from src/main/resources/bidder-config/liftoff.yaml rename to src/main/resources/bidder-config/vungle.yaml index 5b415c8b84a..0a9baf58403 100644 --- a/src/main/resources/bidder-config/liftoff.yaml +++ b/src/main/resources/bidder-config/vungle.yaml @@ -1,6 +1,9 @@ adapters: - liftoff: + vungle: endpoint: https://rtb.ads.vungle.com/bid/t/c770f32 + aliases: + liftoff: + enabled: false modifying-vast-xml-allowed: true endpoint-compression: gzip meta-info: diff --git a/src/main/resources/static/bidder-params/liftoff.json b/src/main/resources/static/bidder-params/vungle.json similarity index 89% rename from src/main/resources/static/bidder-params/liftoff.json rename to src/main/resources/static/bidder-params/vungle.json index 5664a883b9e..e2d4dddffdc 100644 --- a/src/main/resources/static/bidder-params/liftoff.json +++ b/src/main/resources/static/bidder-params/vungle.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Liftoff Adapter Params", - "description": "A schema which validates params accepted by the Liftoff adapter", + "title": "Vungle Adapter Params", + "description": "A schema which validates params accepted by the Vungle adapter", "type": "object", "properties": { "app_store_id": { diff --git a/src/test/java/org/prebid/server/bidder/liftoff/LiftoffBidderTest.java b/src/test/java/org/prebid/server/bidder/vungle/VungleBidderTest.java similarity index 91% rename from src/test/java/org/prebid/server/bidder/liftoff/LiftoffBidderTest.java rename to src/test/java/org/prebid/server/bidder/vungle/VungleBidderTest.java index 84e06443cad..e609e2055f8 100644 --- a/src/test/java/org/prebid/server/bidder/liftoff/LiftoffBidderTest.java +++ b/src/test/java/org/prebid/server/bidder/vungle/VungleBidderTest.java @@ -1,4 +1,4 @@ -package org.prebid.server.bidder.liftoff; +package org.prebid.server.bidder.vungle; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -18,17 +18,17 @@ import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import org.prebid.server.VertxTest; -import org.prebid.server.bidder.liftoff.model.LiftoffImpressionExt; 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.bidder.vungle.model.VungleImpressionExt; import org.prebid.server.currency.CurrencyConversionService; import org.prebid.server.exception.PreBidException; import org.prebid.server.proto.openrtb.ext.ExtPrebid; -import org.prebid.server.proto.openrtb.ext.request.liftoff.ExtImpLiftoff; +import org.prebid.server.proto.openrtb.ext.request.vungle.ExtImpVungle; import java.math.BigDecimal; import java.util.Arrays; @@ -48,23 +48,23 @@ import static org.prebid.server.proto.openrtb.ext.response.BidType.video; @ExtendWith(MockitoExtension.class) -public class LiftoffBidderTest extends VertxTest { +public class VungleBidderTest extends VertxTest { private static final String ENDPOINT_URL = "https://test.endpoint.com"; @Mock(strictness = LENIENT) private CurrencyConversionService currencyConversionService; - private LiftoffBidder target; + private VungleBidder target; @BeforeEach public void setUp() { - target = new LiftoffBidder(ENDPOINT_URL, currencyConversionService, jacksonMapper); + target = new VungleBidder(ENDPOINT_URL, currencyConversionService, jacksonMapper); } @Test public void creationShouldFailOnInvalidEndpointUrl() { - assertThatIllegalArgumentException().isThrownBy(() -> new LiftoffBidder( + assertThatIllegalArgumentException().isThrownBy(() -> new VungleBidder( "invalid_url", currencyConversionService, jacksonMapper)); @@ -176,7 +176,7 @@ public void makeHttpRequestsShouldThrowErrorWhenCurrencyConvertCannotConvertInAn } @Test - public void makeHttpRequestShouldUpdateExtImpLiftoffWhenUserBuyeruidPresent() { + public void makeHttpRequestShouldUpdateExtImpVungleWhenUserBuyeruidPresent() { // given final BidRequest bidRequest = givenBidRequest( bidRequestBuilder -> bidRequestBuilder.user(User.builder().buyeruid("123").build()), identity()); @@ -190,12 +190,12 @@ public void makeHttpRequestShouldUpdateExtImpLiftoffWhenUserBuyeruidPresent() { .extracting(HttpRequest::getPayload) .flatExtracting(BidRequest::getImp) .extracting(Imp::getExt) - .containsExactly(mapper.convertValue(LiftoffImpressionExt.builder() - .bidder(ExtImpLiftoff.of( + .containsExactly(mapper.convertValue(VungleImpressionExt.builder() + .bidder(ExtImpVungle.of( "any-bid-token", "any-app-store-id", "any-placement-reference-id")) - .vungle(ExtImpLiftoff.of( + .vungle(ExtImpVungle.of( "123", "any-app-store-id", "any-placement-reference-id")) @@ -203,7 +203,7 @@ public void makeHttpRequestShouldUpdateExtImpLiftoffWhenUserBuyeruidPresent() { } @Test - public void makeHttpRequestShouldUpdateAppIdWhenExtImpLiftoffContainAppStoreId() { + public void makeHttpRequestShouldUpdateAppIdWhenExtImpVungleContainAppStoreId() { // given final App givenApp = App.builder().name("appName").build(); final BidRequest bidRequest = givenBidRequest(bidRequestBuilder -> bidRequestBuilder.app(givenApp), identity()); @@ -220,7 +220,7 @@ public void makeHttpRequestShouldUpdateAppIdWhenExtImpLiftoffContainAppStoreId() } @Test - public void makeHttpRequestShouldCreateAppWithIdWhenExtImpLiftoffContainAppStoreIdAndAppIsAbsentAndSiteIsPresent() { + public void makeHttpRequestShouldCreateAppWithIdWhenExtImpVungleContainAppStoreIdAndAppIsAbsentAndSiteIsPresent() { // given final BidRequest bidRequest = givenBidRequest(bidRequestBuilder -> bidRequestBuilder .site(Site.builder().build()) @@ -258,7 +258,7 @@ public void makeHttpRequestShouldReturnErrorWhenAppAndSiteAreAbsent() { } @Test - public void makeHttpRequestShouldUpdateImpTagidWhenExtImpLiftoffContainPlacementReferenceId() { + public void makeHttpRequestShouldUpdateImpTagidWhenExtImpVungleContainPlacementReferenceId() { // given final BidRequest bidRequest = givenBidRequest(identity(), identity()); @@ -275,7 +275,7 @@ public void makeHttpRequestShouldUpdateImpTagidWhenExtImpLiftoffContainPlacement } @Test - public void makeHttpRequestShouldUpdateExtImpLiftoffBidTokenWhenInRequestPresentUserBuyeruid() { + public void makeHttpRequestShouldUpdateExtImpVungleBidTokenWhenInRequestPresentUserBuyeruid() { // given final BidRequest bidRequest = givenBidRequest(bidRequestBuilder -> bidRequestBuilder.user(User.builder().buyeruid("Came-from-request").build()), identity()); @@ -289,11 +289,11 @@ public void makeHttpRequestShouldUpdateExtImpLiftoffBidTokenWhenInRequestPresent .extracting(HttpRequest::getPayload) .flatExtracting(BidRequest::getImp) .extracting(Imp::getExt) - .containsExactly(mapper.convertValue(LiftoffImpressionExt.builder() - .bidder(ExtImpLiftoff.of("any-bid-token", + .containsExactly(mapper.convertValue(VungleImpressionExt.builder() + .bidder(ExtImpVungle.of("any-bid-token", "any-app-store-id", "any-placement-reference-id")) - .vungle(ExtImpLiftoff.of( + .vungle(ExtImpVungle.of( "Came-from-request", "any-app-store-id", "any-placement-reference-id")) @@ -386,7 +386,7 @@ private static BidRequest givenBidRequest( return bidRequestCustomizer.apply(BidRequest.builder() .app(App.builder().build()) - .imp(Arrays.stream(impCustomizer).map(LiftoffBidderTest::givenImp).toList())) + .imp(Arrays.stream(impCustomizer).map(VungleBidderTest::givenImp).toList())) .build(); } @@ -395,7 +395,7 @@ private static Imp givenImp(UnaryOperator impCustomizer) { .id("123") .banner(Banner.builder().w(23).h(25).build()) .ext(mapper.valueToTree(ExtPrebid.of(null, - ExtImpLiftoff.of("any-bid-token", + ExtImpVungle.of("any-bid-token", "any-app-store-id", "any-placement-reference-id"))))) .build(); diff --git a/src/test/java/org/prebid/server/it/LiftoffTest.java b/src/test/java/org/prebid/server/it/LiftoffTest.java index 83ce56922c0..921ce6806f2 100644 --- a/src/test/java/org/prebid/server/it/LiftoffTest.java +++ b/src/test/java/org/prebid/server/it/LiftoffTest.java @@ -13,7 +13,7 @@ public class LiftoffTest extends IntegrationTest { @Test - public void openrtb2AuctionShouldRespondWithBidsFromliftoff() throws IOException, JSONException { + public void openrtb2AuctionShouldRespondWithBidsFromLiftoff() throws IOException, JSONException { // given WIRE_MOCK_RULE.stubFor(WireMock.post(WireMock.urlPathEqualTo("/liftoff-exchange")) .withRequestBody(WireMock.equalToJson( diff --git a/src/test/java/org/prebid/server/it/VungleTest.java b/src/test/java/org/prebid/server/it/VungleTest.java new file mode 100644 index 00000000000..9cdd8511ce3 --- /dev/null +++ b/src/test/java/org/prebid/server/it/VungleTest.java @@ -0,0 +1,31 @@ +package org.prebid.server.it; + +import com.github.tomakehurst.wiremock.client.WireMock; +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 java.util.Collections.singletonList; + +public class VungleTest extends IntegrationTest { + + @Test + public void openrtb2AuctionShouldRespondWithBidsFromVungle() throws IOException, JSONException { + // given + WIRE_MOCK_RULE.stubFor(WireMock.post(WireMock.urlPathEqualTo("/vungle-exchange")) + .withRequestBody(WireMock.equalToJson( + jsonFrom("openrtb2/vungle/test-vungle-bid-request.json"))) + .willReturn(WireMock.aResponse().withBody( + jsonFrom("openrtb2/vungle/test-vungle-bid-response.json")))); + + // when + final Response response = responseFor("openrtb2/vungle/test-auction-vungle-request.json", + Endpoint.openrtb2_auction); + + // then + assertJsonEquals("openrtb2/vungle/test-auction-vungle-response.json", response, singletonList("vungle")); + } +} diff --git a/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-auction-vungle-request.json b/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-auction-vungle-request.json new file mode 100644 index 00000000000..d4a33b89ed4 --- /dev/null +++ b/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-auction-vungle-request.json @@ -0,0 +1,28 @@ +{ + "id": "request_id", + "imp": [ + { + "id": "imp_id", + "video": { + "mimes": [ + "video/mp4" + ], + "w": 800, + "h": 600 + }, + "ext": { + "vungle": { + "bid_token": "bid_token", + "app_store_id": "app_store_id", + "placement_reference_id": "placement_reference_id" + } + } + } + ], + "tmax": 5000, + "regs": { + "ext": { + "gdpr": 0 + } + } +} diff --git a/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-auction-vungle-response.json b/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-auction-vungle-response.json new file mode 100644 index 00000000000..fa3a8579909 --- /dev/null +++ b/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-auction-vungle-response.json @@ -0,0 +1,38 @@ +{ + "id": "request_id", + "seatbid": [ + { + "bid": [ + { + "id": "bid_id", + "impid": "imp_id", + "price": 3.33, + "adid": "adid001", + "adm": "", + "cid": "cid001", + "crid": "crid001", + "w": 300, + "h": 250, + "ext": { + "prebid": { + "type": "video" + }, + "origbidcpm": 3.33 + } + } + ], + "seat": "vungle", + "group": 0 + } + ], + "cur": "USD", + "ext": { + "responsetimemillis": { + "vungle": "{{ vungle.response_time_ms }}" + }, + "prebid": { + "auctiontimestamp": 0 + }, + "tmaxrequest": 5000 + } +} diff --git a/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-vungle-bid-request.json b/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-vungle-bid-request.json new file mode 100644 index 00000000000..efaca813ee6 --- /dev/null +++ b/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-vungle-bid-request.json @@ -0,0 +1,58 @@ +{ + "id": "request_id", + "imp": [ + { + "id": "imp_id", + "tagid" : "placement_reference_id", + "secure": 1, + "video": { + "mimes": [ + "video/mp4" + ], + "w": 800, + "h": 600 + }, + "ext": { + "bidder" : { + "bid_token" : "bid_token", + "app_store_id" : "app_store_id", + "placement_reference_id" : "placement_reference_id" + }, + "vungle" : { + "app_store_id" : "app_store_id", + "placement_reference_id" : "placement_reference_id" + } + } + } + ], + "source": { + "tid": "${json-unit.any-string}" + }, + "app": { + "id": "app_store_id" + }, + "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/vungle/test-vungle-bid-response.json b/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-vungle-bid-response.json new file mode 100644 index 00000000000..92033dd4355 --- /dev/null +++ b/src/test/resources/org/prebid/server/it/openrtb2/vungle/test-vungle-bid-response.json @@ -0,0 +1,20 @@ +{ + "id": "request_id", + "seatbid": [ + { + "bid": [ + { + "id": "bid_id", + "impid": "imp_id", + "price": 3.33, + "adid": "adid001", + "adm": "", + "crid": "crid001", + "cid": "cid001", + "h": 250, + "w": 300 + } + ] + } + ] +} 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 be7834af223..9996bae99ac 100644 --- a/src/test/resources/org/prebid/server/it/test-application.properties +++ b/src/test/resources/org/prebid/server/it/test-application.properties @@ -251,8 +251,10 @@ adapters.krushmedia.enabled=true adapters.krushmedia.endpoint=http://localhost:8090/krushmedia-exchange adapters.lemmadigital.enabled=true adapters.lemmadigital.endpoint=http://localhost:8090/lemmadigital-exchange/{{PublisherID}}/{{AdUnit}} -adapters.liftoff.enabled=true -adapters.liftoff.endpoint=http://localhost:8090/liftoff-exchange +adapters.vungle.enabled=true +adapters.vungle.endpoint=http://localhost:8090/vungle-exchange +adapters.vungle.aliases.liftoff.enabled=true +adapters.vungle.aliases.liftoff.endpoint=http://localhost:8090/liftoff-exchange adapters.kargo.enabled=true adapters.kargo.endpoint=http://localhost:8090/kargo-exchange adapters.kayzen.enabled=true