Skip to content

Commit

Permalink
SharedId: proper revert of prebid@5ece4bb (prebid#8654)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi authored and RomainLofaso committed Aug 8, 2022
1 parent 968c59e commit 2b20c1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/pubCommonId.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
8 changes: 7 additions & 1 deletion modules/sharedIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2b20c1f

Please sign in to comment.