From 2b20c1feaf0533e4fef0b8ef80e1ad8ca54af774 Mon Sep 17 00:00:00 2001 From: Demetrio Girardi Date: Wed, 6 Jul 2022 11:02:40 -0700 Subject: [PATCH] SharedId: proper revert of https://github.com/prebid/Prebid.js/commit/5ece4bb0eeea95f09f0560cf6882af8491b30620 (#8654) --- modules/pubCommonId.js | 2 +- modules/sharedIdSystem.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/pubCommonId.js b/modules/pubCommonId.js index e3fd21e72603..faca59cce1c7 100644 --- a/modules/pubCommonId.js +++ b/modules/pubCommonId.js @@ -9,7 +9,7 @@ import * as events from '../src/events.js'; import CONSTANTS from '../src/constants.json'; import { getStorageManager } from '../src/storageManager.js'; -const storage = getStorageManager({moduleName: 'pubCommonId'}); +const storage = getStorageManager(); const ID_NAME = '_pubcid'; const OPTOUT_NAME = '_pubcid_optout'; diff --git a/modules/sharedIdSystem.js b/modules/sharedIdSystem.js index 99a34ae17f48..656b62815c75 100644 --- a/modules/sharedIdSystem.js +++ b/modules/sharedIdSystem.js @@ -10,7 +10,8 @@ import {submodule} from '../src/hook.js'; import { coppaDataHandler } from '../src/adapterManager.js'; import {getStorageManager} from '../src/storageManager.js'; -export const storage = getStorageManager({moduleName: 'pubCommonId'}); +const GVLID = 887; +export const storage = getStorageManager({gvlid: GVLID, moduleName: 'pubCommonId'}); const COOKIE = 'cookie'; const LOCAL_STORAGE = 'html5'; const OPTOUT_NAME = '_pubcid_optout'; @@ -73,6 +74,11 @@ export const sharedIdSystemSubmodule = { */ name: 'sharedId', aliasName: 'pubCommonId', + /** + * Vendor id of prebid + * @type {Number} + */ + gvlid: GVLID, /** * decode the stored id value for passing to bid requests