File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/main/java/org/prebid/server/bidder/mobilefuse Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,14 @@ private static boolean isValidImp(Imp imp) {
7878 return imp .getBanner () != null || imp .getVideo () != null || imp .getXNative () != null ;
7979 }
8080
81+ private ExtImpMobilefuse parseImpExt (Imp imp ) {
82+ try {
83+ return mapper .mapper ().convertValue (imp .getExt (), MOBILEFUSE_EXT_TYPE_REFERENCE ).getBidder ();
84+ } catch (IllegalArgumentException e ) {
85+ throw new PreBidException ("Error parsing ExtImpMobilefuse value: %s" .formatted (e .getMessage ()));
86+ }
87+ }
88+
8189 private Imp modifyImp (Imp imp , ExtImpMobilefuse extImp ) {
8290 final ObjectNode skadn = parseSkadn (imp .getExt ());
8391 return imp .toBuilder ()
@@ -86,15 +94,7 @@ private Imp modifyImp(Imp imp, ExtImpMobilefuse extImp) {
8694 .build ();
8795 }
8896
89- private ExtImpMobilefuse parseImpExt (Imp imp ) throws PreBidException {
90- try {
91- return mapper .mapper ().convertValue (imp .getExt (), MOBILEFUSE_EXT_TYPE_REFERENCE ).getBidder ();
92- } catch (IllegalArgumentException e ) {
93- throw new PreBidException ("Error parsing ExtImpMobilefuse value: %s" .formatted (e .getMessage ()));
94- }
95- }
96-
97- private ObjectNode parseSkadn (ObjectNode impExt ) throws PreBidException {
97+ private ObjectNode parseSkadn (ObjectNode impExt ) {
9898 try {
9999 return mapper .mapper ().convertValue (impExt .get (SKADN_PROPERTY_NAME ), ObjectNode .class );
100100 } catch (IllegalArgumentException e ) {
You can’t perform that action at this time.
0 commit comments