Skip to content

Commit

Permalink
Impactify Bid Adapter: Remove use of local storage debugging flag (#8…
Browse files Browse the repository at this point in the history
…693)

* Remove use of local storage

As requested, we remove the use of local storage.
prebid/Prebid.js#8689

* Update impactifyBidAdapter.js
  • Loading branch information
thomasdseao authored and ahmadlob committed Jul 27, 2022
1 parent b0a1074 commit 3e9dc7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/impactifyBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e9dc7e

Please sign in to comment.