From 47bb8ef66ed26756c3800d764b17183c380fe2d0 Mon Sep 17 00:00:00 2001 From: Hans Hjort Date: Tue, 29 Jul 2025 10:10:43 -0400 Subject: [PATCH 1/2] Initial pass on adding PBS cookiesync account parameter support --- src/params.js | 1 + test/params_spec.js | 1 + 2 files changed, 2 insertions(+) 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}"`, () => { From 541c225ae84152384a36b659527f3300f1347e0f Mon Sep 17 00:00:00 2001 From: Hans Hjort Date: Wed, 30 Jul 2025 13:39:52 -0400 Subject: [PATCH 2/2] Adding the new account parameter --- README.md | 1 + 1 file changed, 1 insertion(+) 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