Skip to content

Commit

Permalink
VidazooBidAdapter: sending storageAllowed flag with request params (p…
Browse files Browse the repository at this point in the history
…rebid#9294)

* 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

* added bid params 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 and JacobKlein26 committed Feb 8, 2023
1 parent 809583f commit 7f05d95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/vidazooBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { _each, deepAccess, parseSizesInput, parseUrl, uniques, isFn } from '../
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
import { getStorageManager } from '../src/storageManager.js';
import { bidderSettings } from '../src/bidderSettings.js';

const GVLID = 744;
const DEFAULT_SUB_DOMAIN = 'prebid';
Expand Down Expand Up @@ -69,6 +70,7 @@ function buildRequest(bid, topWindowUrl, sizes, bidderRequest) {
const pId = extractPID(params);
const subDomain = extractSubDomain(params);
const ptrace = getCacheOpt();
const isStorageAllowed = bidderSettings.get(BIDDER_CODE, 'storageAllowed');

const gpid = deepAccess(bid, 'ortb2Imp.ext.gpid', deepAccess(bid, 'ortb2Imp.ext.data.pbadslot', ''));
const cat = deepAccess(bidderRequest, 'ortb2.site.cat', []);
Expand Down Expand Up @@ -104,6 +106,7 @@ function buildRequest(bid, topWindowUrl, sizes, bidderRequest) {
res: `${screen.width}x${screen.height}`,
schain: schain,
ptrace: ptrace,
isStorageAllowed: isStorageAllowed,
gpid: gpid,
cat: cat,
pagecat: pagecat
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/vidazooBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ describe('VidazooBidAdapter', function () {
uqs: getTopWindowQueryParams(),
'ext.param1': 'loremipsum',
'ext.param2': 'dolorsitamet',
isStorageAllowed: true,
gpid: '1234567890',
cat: ['IAB2'],
pagecat: ['IAB2-2']
Expand Down

0 comments on commit 7f05d95

Please sign in to comment.