Skip to content

Commit 584d59f

Browse files
committed
Add adUnitCode to the imp.ext.prebid exception list
1 parent a75e924 commit 584d59f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/java/org/prebid/server/auction/requestfactory/Ortb2ImplicitParametersResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public class Ortb2ImplicitParametersResolver {
8989
private static final String BIDDER_EXT = "bidder";
9090

9191
private static final Set<String> IMP_EXT_NON_BIDDER_FIELDS =
92-
Set.of(PREBID_EXT, "context", "all", "general", "skadn", "data", "gpid", "tid", "ae");
92+
Set.of(PREBID_EXT, "context", "all", "general", "skadn", "data", "gpid", "tid", "ae", "adunitcode");
9393
private static final String OVERRIDE_SOURCE_ID_TEMPLATE = "{{UUID}}";
9494

9595
private final boolean shouldCacheOnlyWinningBids;

src/test/java/org/prebid/server/auction/requestfactory/Ortb2ImplicitParametersResolverTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,7 @@ public void shouldNotMoveBidderParametersToImpExtPrebidBidderWhenAlreadyPresent(
10711071
.put("gpid-data", "gpid-value"))
10721072
.<ObjectNode>set("tid", mapper.createObjectNode()
10731073
.put("tid-data", "tid-value"))
1074+
.<ObjectNode>set("adunitcode", TextNode.valueOf("adunticode-value"))
10741075
.set("prebid", mapper.createObjectNode()
10751076
.<ObjectNode>set("bidder", mapper.createObjectNode()
10761077
.set("bidder2", mapper.createObjectNode().put("param22", "value22")))
@@ -1101,6 +1102,7 @@ public void shouldNotMoveBidderParametersToImpExtPrebidBidderWhenAlreadyPresent(
11011102
.put("gpid-data", "gpid-value"))
11021103
.<ObjectNode>set("tid", mapper.createObjectNode()
11031104
.put("tid-data", "tid-value"))
1105+
.<ObjectNode>set("adunitcode", TextNode.valueOf("adunticode-value"))
11041106
.set("prebid", mapper.createObjectNode()
11051107
.<ObjectNode>set("bidder", mapper.createObjectNode()
11061108
.set("bidder2", mapper.createObjectNode().put("param22", "value22")))
@@ -1133,6 +1135,7 @@ public void shouldMoveBidderParametersToImpExtPrebidBidderWhenNotPresent() {
11331135
.put("gpid-data", "gpid-value"))
11341136
.<ObjectNode>set("tid", mapper.createObjectNode()
11351137
.put("tid-data", "tid-value"))
1138+
.<ObjectNode>set("adunitcode", TextNode.valueOf("adunticode-value"))
11361139
.set("prebid", mapper.createObjectNode()
11371140
.set("storedresult", mapper.createObjectNode().put("id", "storedreq1"))))
11381141
.build());
@@ -1160,6 +1163,7 @@ public void shouldMoveBidderParametersToImpExtPrebidBidderWhenNotPresent() {
11601163
.put("gpid-data", "gpid-value"))
11611164
.<ObjectNode>set("tid", mapper.createObjectNode()
11621165
.put("tid-data", "tid-value"))
1166+
.<ObjectNode>set("adunitcode", TextNode.valueOf("adunticode-value"))
11631167
.set("prebid", mapper.createObjectNode()
11641168
.<ObjectNode>set("bidder", mapper.createObjectNode()
11651169
.<ObjectNode>set("notBidder", mapper.createObjectNode().put("param1", "value1"))

0 commit comments

Comments
 (0)