Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ private BidRequest updateBidRequest(BidRequest bidRequest, ExtImpNextMillennium

final Imp firstImp = bidRequest.getImp().getFirst();
final ObjectNode updatedImpExt = mapper.mapper().createObjectNode();
updatedImpExt.set("bidder", mapper.mapper().valueToTree(ext));
updatedImpExt.set("nextMillennium", nextMillenniumNode);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the nextMillenniumNode should have only nmmFlags if it's an imp.ext


final ObjectNode prebidNode = mapper.mapper().createObjectNode();
prebidNode.set("storedrequest", mapper.mapper().valueToTree(storedRequest));
updatedImpExt.set("prebid", prebidNode);

final Imp updatedImp = firstImp.toBuilder()
.ext(updatedImpExt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ public class ExtRequestNextMillennium {
@JsonProperty("nmmFlags")
List<String> nmmFlags;

@JsonProperty("nmVersion")
String nmVersion;

@JsonProperty("serverVersion")
String serverVersion;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
},
"secure": 1,
"ext": {
"bidder": {
"placement_id": "placement_id"
"nextMillennium": {},
"prebid": {
"storedrequest": {
"id": "placement_id"
}
}
}
}
Expand Down Expand Up @@ -56,8 +59,8 @@
},
"nextMillennium": {
"nmmFlags": [ "1" ],
"nmVersion": "v1.0.0",
"serverVersion": "${json-unit.any-string}"
"nm_version": "v1.0.0",
"server_version": "${json-unit.any-string}"
}
}
}
Loading