From 092ce0dcc346e2209553ed7640d1b6f6949487c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Wi=C4=85ckiewicz?= Date: Mon, 18 Mar 2024 13:32:09 +0100 Subject: [PATCH 1/2] removed ad data from bidWon event handler --- modules/adqueryBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/adqueryBidAdapter.js b/modules/adqueryBidAdapter.js index bfcc56050fb..fba1e3cd30a 100644 --- a/modules/adqueryBidAdapter.js +++ b/modules/adqueryBidAdapter.js @@ -137,7 +137,7 @@ export const spec = { const bidString = JSON.stringify(bid); let copyOfBid = JSON.parse(bidString); delete copyOfBid.ad; - const shortBidString = JSON.stringify(bid); + const shortBidString = JSON.stringify(copyOfBid); const encodedBuf = window.btoa(shortBidString); let params = { From 7677891cfd18cde8e25407be6e06b7c892f96c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Wi=C4=85ckiewicz?= Date: Tue, 19 Mar 2024 09:57:47 +0100 Subject: [PATCH 2/2] removed ad data from bidWon event handler --- modules/adqueryBidAdapter.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/adqueryBidAdapter.js b/modules/adqueryBidAdapter.js index fba1e3cd30a..f19cf020ca8 100644 --- a/modules/adqueryBidAdapter.js +++ b/modules/adqueryBidAdapter.js @@ -134,9 +134,8 @@ export const spec = { */ onBidWon: (bid) => { logInfo('onBidWon', bid); - const bidString = JSON.stringify(bid); - let copyOfBid = JSON.parse(bidString); - delete copyOfBid.ad; + let copyOfBid = { ...bid } + delete copyOfBid.ad const shortBidString = JSON.stringify(copyOfBid); const encodedBuf = window.btoa(shortBidString);