diff --git a/modules/impactifyBidAdapter.js b/modules/impactifyBidAdapter.js index a4010772db0..bb3ad63085c 100644 --- a/modules/impactifyBidAdapter.js +++ b/modules/impactifyBidAdapter.js @@ -37,9 +37,13 @@ const createOpenRtbRequest = (validBidRequests, bidderRequest) => { source: {tid: bidderRequest.auctionId} }; + // Get the url parameters + const queryString = window.location.search; + const urlParams = new URLSearchParams(queryString); + const checkPrebid = urlParams.get('_checkPrebid'); // Force impactify debugging parameter - if (window.localStorage.getItem('_im_db_bidder') != null) { - request.test = Number(window.localStorage.getItem('_im_db_bidder')); + if (checkPrebid != null) { + request.test = Number(checkPrebid); } // Set Schain in request