From 6fd8462520844c79255e9bfdc673159e7198af6d Mon Sep 17 00:00:00 2001 From: Michele Nasti Date: Mon, 4 Jul 2022 17:44:01 +0200 Subject: [PATCH 1/2] remove fpd warning --- modules/rubiconBidAdapter.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/rubiconBidAdapter.js b/modules/rubiconBidAdapter.js index c551f8909cf..469f1fbdebf 100644 --- a/modules/rubiconBidAdapter.js +++ b/modules/rubiconBidAdapter.js @@ -1026,8 +1026,6 @@ function applyFPD(bidRequest, mediaType, data) { }, []); if (segments.length > 0) return segments.toString(); }).toString(); - } else if (typeof prop === 'object' && !Array.isArray(prop)) { - logWarn('Rubicon: Filtered FPD key: ', key, ': Expected value to be string, integer, or an array of strings/ints'); } else if (typeof prop !== 'undefined') { return (Array.isArray(prop)) ? prop.filter(value => { if (typeof value !== 'object' && typeof value !== 'undefined') return value.toString(); From 5748684d8f196ac2c9ee649e06249a2bbbb1229d Mon Sep 17 00:00:00 2001 From: Michele Nasti Date: Mon, 18 Jul 2022 14:31:28 +0200 Subject: [PATCH 2/2] return undefined instead of skipping the if --- modules/rubiconBidAdapter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/rubiconBidAdapter.js b/modules/rubiconBidAdapter.js index 469f1fbdebf..90d4b7fa280 100644 --- a/modules/rubiconBidAdapter.js +++ b/modules/rubiconBidAdapter.js @@ -1026,6 +1026,8 @@ function applyFPD(bidRequest, mediaType, data) { }, []); if (segments.length > 0) return segments.toString(); }).toString(); + } else if (typeof prop === 'object' && !Array.isArray(prop)) { + return undefined; } else if (typeof prop !== 'undefined') { return (Array.isArray(prop)) ? prop.filter(value => { if (typeof value !== 'object' && typeof value !== 'undefined') return value.toString();