Skip to content

Commit

Permalink
Adquery Bid Adapter: bidWon bugfix (prebid#11227)
Browse files Browse the repository at this point in the history
* removed ad data from bidWon event handler

* removed ad data from bidWon event handler

---------

Co-authored-by: Adam Wiąckiewicz <[email protected]>
  • Loading branch information
awiackiewicz and Adam Wiąckiewicz authored Mar 20, 2024
1 parent 075abb7 commit 91512b9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/adqueryBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ export const spec = {
*/
onBidWon: (bid) => {
logInfo('onBidWon', bid);
const bidString = JSON.stringify(bid);
let copyOfBid = JSON.parse(bidString);
delete copyOfBid.ad;
const shortBidString = JSON.stringify(bid);
let copyOfBid = { ...bid }
delete copyOfBid.ad
const shortBidString = JSON.stringify(copyOfBid);
const encodedBuf = window.btoa(shortBidString);

let params = {
Expand Down

0 comments on commit 91512b9

Please sign in to comment.