Skip to content

Commit

Permalink
Anonymised RTD: Added Global Vendor List ID (prebid#11919)
Browse files Browse the repository at this point in the history
* adding gvlid during submodule registration

* updated docs

* review comment: import type to prevent warning

---------

Co-authored-by: Pavlo <pavlo@id-ward.com>
  • Loading branch information
2 people authored and DecayConstant committed Jul 18, 2024
1 parent 266a377 commit 9571b26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion modules/anonymisedRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ import {getStorageManager} from '../src/storageManager.js';
import {submodule} from '../src/hook.js';
import {isPlainObject, mergeDeep, logMessage, logError} from '../src/utils.js';
import {MODULE_TYPE_RTD} from '../src/activities/modules.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/
export function createRtdProvider(moduleName) {
const MODULE_NAME = 'realTimeData';
const SUBMODULE_NAME = moduleName;
const GVLID = 1116;

const storage = getStorageManager({ moduleType: MODULE_TYPE_RTD, moduleName: SUBMODULE_NAME });
/**
Expand Down Expand Up @@ -106,6 +109,7 @@ export function createRtdProvider(moduleName) {
/** @type {RtdSubmodule} */
const rtdSubmodule = {
name: SUBMODULE_NAME,
gvlid: GVLID,
getBidRequestData: getRealTimeData,
init: init
};
Expand Down
2 changes: 1 addition & 1 deletion modules/anonymisedRtdProvider.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Anonymised’s Real-time Data Provider automatically obtains segment IDs from th
- Build the anonymisedRtd module into the Prebid.js package with:

```bash
gulp build --modules=anonymisedRtdProvider,...
gulp build --modules=rtdModule,anonymisedRtdProvider,...
```

- Use `setConfig` to instruct Prebid.js to initilaize the anonymisedRtdProvider module, as specified below.
Expand Down

0 comments on commit 9571b26

Please sign in to comment.