Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
1 change: 1 addition & 0 deletions src/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}

Expand Down
1 change: 1 addition & 0 deletions test/params_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ describe('Query parameters', () => {
}
}
},
account: simpleStringParam('account'),

}).forEach(([outParam, {param, cases}]) => {
describe(`"${outParam}"`, () => {
Expand Down