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
2 people authored and dgirardi committed Mar 20, 2024
1 parent 0cdc6ec commit 5c139d0
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 5c139d0

Please sign in to comment.