diff --git a/README.md b/README.md index ed1adfc..301563c 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,4 @@ Both pages accept the following query string parameters: | gpp | optional | string | Global Privacy Platform string | | | timeout | optional | integer | Timeout (in milliseconds) to wait for consent data from AMP. Defaults to 10000. | 500 | | args | optional | string | Passed through to the /cookie_sync call query string. Used by some host companies. | | +| account | optional | string | Passed through to the cookie_sync call query string. Used by PBS cookie sync to refine the selection of bidders to sync. | MyAccountID1234 | \ No newline at end of file diff --git a/src/params.js b/src/params.js index f205752..01532dd 100644 --- a/src/params.js +++ b/src/params.js @@ -28,6 +28,7 @@ export function parseParams(params = new URLSearchParams(window.location.search) gpp_sid: params.get('gpp_sid') || null, gpp: params.get('gpp') || null, timeout: toInt(params.get('timeout')) || 10000, + account: params.get('account') || null, }; } diff --git a/test/params_spec.js b/test/params_spec.js index 3327709..7502087 100644 --- a/test/params_spec.js +++ b/test/params_spec.js @@ -189,6 +189,7 @@ describe('Query parameters', () => { } } }, + account: simpleStringParam('account'), }).forEach(([outParam, {param, cases}]) => { describe(`"${outParam}"`, () => {