diff --git a/src/main/java/org/prebid/server/bidder/audiencenetwork/AudienceNetworkBidder.java b/src/main/java/org/prebid/server/bidder/audiencenetwork/AudienceNetworkBidder.java index 8266b55934e..5fec6dfee79 100644 --- a/src/main/java/org/prebid/server/bidder/audiencenetwork/AudienceNetworkBidder.java +++ b/src/main/java/org/prebid/server/bidder/audiencenetwork/AudienceNetworkBidder.java @@ -117,8 +117,9 @@ private HttpRequest makeHttpRequest(Imp imp, BidRequest bidRequest, final BidRequest outgoingRequest = bidRequest.toBuilder() .imp(Collections.singletonList(modifiedImp)) .app(makeApp(bidRequest.getApp(), publisherId)) - .ext(mapper.fillExtension( - ExtRequest.empty(), AudienceNetworkExt.of(platformId, makeAuthId(bidRequest.getId())))) + .ext(mapper.fillExtension(ExtRequest.empty(), + AudienceNetworkExt.of(platformId, makeAuthId(bidRequest.getId()), + platformId))) .build(); return HttpRequest.builder() diff --git a/src/main/java/org/prebid/server/bidder/audiencenetwork/proto/AudienceNetworkExt.java b/src/main/java/org/prebid/server/bidder/audiencenetwork/proto/AudienceNetworkExt.java index 1ada0f11bf0..8b51dbac759 100644 --- a/src/main/java/org/prebid/server/bidder/audiencenetwork/proto/AudienceNetworkExt.java +++ b/src/main/java/org/prebid/server/bidder/audiencenetwork/proto/AudienceNetworkExt.java @@ -1,11 +1,17 @@ package org.prebid.server.bidder.audiencenetwork.proto; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Value; @Value(staticConstructor = "of") public class AudienceNetworkExt { + @JsonProperty("platformid") String platformid; + @JsonProperty("authentication_id") String authenticationId; + + @JsonProperty("security_app_id") + String securityAppId; } diff --git a/src/test/java/org/prebid/server/bidder/audiencenetwork/AudienceNetworkBidderTest.java b/src/test/java/org/prebid/server/bidder/audiencenetwork/AudienceNetworkBidderTest.java index 2a6081c7857..28d57b98cfd 100644 --- a/src/test/java/org/prebid/server/bidder/audiencenetwork/AudienceNetworkBidderTest.java +++ b/src/test/java/org/prebid/server/bidder/audiencenetwork/AudienceNetworkBidderTest.java @@ -483,7 +483,8 @@ public void makeHttpRequestsShouldChangeRequestExt() { .containsOnly( AudienceNetworkExt.of( "101", - "bd49902da11ce0fe6258e56baa0a69c2f1395b2ff1efb30d4879ed9e2343a3f6")); + "bd49902da11ce0fe6258e56baa0a69c2f1395b2ff1efb30d4879ed9e2343a3f6", + "101")); } @Test diff --git a/src/test/resources/org/prebid/server/it/openrtb2/audiencenetwork/test-audiencenetwork-bid-request.json b/src/test/resources/org/prebid/server/it/openrtb2/audiencenetwork/test-audiencenetwork-bid-request.json index a4d2bf884dd..7383f8f91a1 100644 --- a/src/test/resources/org/prebid/server/it/openrtb2/audiencenetwork/test-audiencenetwork-bid-request.json +++ b/src/test/resources/org/prebid/server/it/openrtb2/audiencenetwork/test-audiencenetwork-bid-request.json @@ -38,6 +38,7 @@ }, "ext": { "authentication_id": "48b7d18b921be9887a5351f31cc85f1326e3da1d8c402dec2bd338cf10bd6b43", - "platformid": "101" + "platformid": "101", + "security_app_id": "101" } }