Skip to content

Commit 25b7a77

Browse files
authored
Merge pull request #1930 from SUI-Components/XCOMP-14829--add-consent-query-param-xandr
Update URL to retrieve xandrId to specify consent
2 parents e8667d2 + 3759bd4 commit 25b7a77

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/sui-segment-wrapper/src/repositories/xandrRepository.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {readCookie, removeCookie, saveCookie} from '../utils/cookies.js'
22
import {isClient, setConfig} from '../config.js'
33
import {USER_GDPR} from '../tcf.js'
44

5-
const XANDR_ID_SERVER_URL = 'https://secure.adnxs.com/getuidj'
5+
const XANDR_ID_SERVER_URL = 'https://secure.adnxs.com/getuidj?consent=1'
66
const XANDR_ID_COOKIE = 'adit-xandr-id'
77

88
const USER_OPTED_OUT_XANDR_ID_VALUE = 0
@@ -36,7 +36,7 @@ export function getXandrId({gdprPrivacyValueAdvertising}) {
3636
return isValidXandrId ? storedXandrId : null
3737
}
3838

39-
export function getRemoteXandrId() {
39+
function getRemoteXandrId() {
4040
if (!isClient) return Promise.resolve(null)
4141

4242
return window

packages/sui-segment-wrapper/test/xandrRepositorySpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {stubDocumentCookie, stubFetch} from './stubs.js'
66
import {waitUntil} from './utils.js'
77

88
describe('xandrRepository', () => {
9-
const XANDR_ID_SERVER_URL = 'https://secure.adnxs.com/getuidj'
9+
const XANDR_ID_SERVER_URL = 'https://secure.adnxs.com/getuidj?consent=1'
1010
const XANDR_ID_COOKIE = 'adit-xandr-id'
1111

1212
const givenXandrId = 'someXandrId'

0 commit comments

Comments
 (0)