Skip to content

Commit

Permalink
bugfix - generate new qid (prebid#8578)
Browse files Browse the repository at this point in the history
Co-authored-by: m.czerwiak <[email protected]>
  • Loading branch information
adquery and m.czerwiak authored Jun 17, 2022
1 parent 072ebd3 commit d1ce984
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/adqueryBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,15 @@ export const spec = {

};
function buildRequest(validBidRequests, bidderRequest) {
let qid = Math.random().toString(36).substring(2) + Date.now().toString(36);
let gnerateQid = (Math.random().toString(36).substring(2)) + ((new Date().getTime()).toString(36));
let bid = validBidRequests;
let qid = gnerateQid;

if (storage.getDataFromLocalStorage('qid')) {
qid = storage.getDataFromLocalStorage('qid');
if (qid && qid.includes('%7B%22')) {
qid = gnerateQid;
}
} else {
storage.setDataInLocalStorage('qid', qid);
}
Expand Down

0 comments on commit d1ce984

Please sign in to comment.