Skip to content

Commit

Permalink
Vidazoo Bid Adapter - webSessionId request param (#9504)
Browse files Browse the repository at this point in the history
* feat(module): multi size request

* fix getUserSyncs
added tests

* update(module): package-lock.json from master

* feat(module): VidazooBidAdapter - send top query params to server

* Vidazoo Bid Adapter - added webSessionId to request

---------

Co-authored-by: roman <shmoop207@gmail.com>
Co-authored-by: Saar Amrani <89377180+saar120@users.noreply.github.com>
Co-authored-by: Saar Amrani <saar120@gmail.com>
  • Loading branch information
4 people authored Feb 6, 2023
1 parent 3d3b0d7 commit d694fe0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/vidazooBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const SUPPORTED_ID_SYSTEMS = {
'tdid': 1,
'pubProvidedId': 1
};
export const webSessionId = 'wsid_' + parseInt(Date.now() * Math.random());
const storage = getStorageManager({gvlid: GVLID, bidderCode: BIDDER_CODE});

function getTopWindowQueryParams() {
Expand Down Expand Up @@ -131,7 +132,8 @@ function buildRequest(bid, topWindowUrl, sizes, bidderRequest, bidderTimeout) {
bidRequestsCount: bidRequestsCount,
bidderRequestsCount: bidderRequestsCount,
bidderWinsCount: bidderWinsCount,
bidderTimeout: bidderTimeout
bidderTimeout: bidderTimeout,
webSessionId: webSessionId
};

appendUserIdsToRequestPayload(data, userId);
Expand Down
5 changes: 4 additions & 1 deletion test/spec/modules/vidazooBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
getUniqueDealId,
getNextDealId,
getVidazooSessionId,
webSessionId
} from 'modules/vidazooBidAdapter.js';
import * as utils from 'src/utils.js';
import {version} from 'package.json';
Expand Down Expand Up @@ -283,6 +284,7 @@ describe('VidazooBidAdapter', function () {
uniqueDealId: `${hashUrl}_${Date.now().toString()}`,
uqs: getTopWindowQueryParams(),
isStorageAllowed: true,
webSessionId: webSessionId,
mediaTypes: {
video: {
api: [2],
Expand Down Expand Up @@ -350,7 +352,8 @@ describe('VidazooBidAdapter', function () {
isStorageAllowed: true,
gpid: '1234567890',
cat: ['IAB2'],
pagecat: ['IAB2-2']
pagecat: ['IAB2-2'],
webSessionId: webSessionId
}
});
});
Expand Down

0 comments on commit d694fe0

Please sign in to comment.