From 7f05d958b121b20fab49c82c0762b72b5c829730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Udi=20Talias=20=E2=9A=9B=EF=B8=8F?= Date: Wed, 30 Nov 2022 19:11:23 +0200 Subject: [PATCH] VidazooBidAdapter: sending storageAllowed flag with request params (#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 Co-authored-by: Saar Amrani <89377180+saar120@users.noreply.github.com> Co-authored-by: Saar Amrani --- modules/vidazooBidAdapter.js | 3 +++ test/spec/modules/vidazooBidAdapter_spec.js | 1 + 2 files changed, 4 insertions(+) diff --git a/modules/vidazooBidAdapter.js b/modules/vidazooBidAdapter.js index 39c407ae8a6..e79835b39c0 100644 --- a/modules/vidazooBidAdapter.js +++ b/modules/vidazooBidAdapter.js @@ -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'; @@ -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', []); @@ -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 diff --git a/test/spec/modules/vidazooBidAdapter_spec.js b/test/spec/modules/vidazooBidAdapter_spec.js index 7c7f27a830b..9c22b41968f 100644 --- a/test/spec/modules/vidazooBidAdapter_spec.js +++ b/test/spec/modules/vidazooBidAdapter_spec.js @@ -198,6 +198,7 @@ describe('VidazooBidAdapter', function () { uqs: getTopWindowQueryParams(), 'ext.param1': 'loremipsum', 'ext.param2': 'dolorsitamet', + isStorageAllowed: true, gpid: '1234567890', cat: ['IAB2'], pagecat: ['IAB2-2']