Skip to content

Commit 284058f

Browse files
authored
update configuration example (#12109)
1 parent 776b7fd commit 284058f

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

modules/intentIqIdSystem.md

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -44,49 +44,24 @@ Please find below list of paramters that could be used in configuring Intent IQ
4444

4545
### Configuration example
4646

47-
```javascript
48-
pbjs.setConfig({
49-
userSync: {
50-
userIds: [
51-
{
52-
name: "intentIqId",
53-
params: {
54-
partner: 123456, // valid partner id
55-
callback: (data, group) => window.pbjs.requestBids(),
56-
},
57-
storage: {
58-
type: "html5",
59-
name: "intentIqId", // set localstorage with this name
60-
expires: 60,
61-
refreshInSeconds: 4 * 3600, // refresh ID every 4 hours to ensure it's fresh
62-
},
63-
},
64-
],
65-
syncDelay: 3000,
66-
},
67-
});
68-
```
69-
7047
```javascript
7148
pbjs.setConfig({
7249
userSync: {
7350
userIds: [{
7451
name: "intentIqId",
7552
params: {
76-
partner: 123456 // valid partner id
77-
pcid: PCID_VARIABLE, // string value, dynamically loaded into a variable before setting the configuration
78-
pai: PAI_VARIABLE , // string value, dynamically loaded into a variable before setting the configuration
53+
partner: 123456, // valid partner id
7954
timeoutInMillis: 500,
8055
browserBlackList: "chrome",
8156
callback: (data, group) => window.pbjs.requestBids()
8257
},
8358
storage: {
8459
type: "html5",
8560
name: "intentIqId", // set localstorage with this name
86-
expires: 60
61+
expires: 0,
62+
refreshInSeconds: 0
8763
}
88-
}],
89-
syncDelay: 3000
64+
}]
9065
}
9166
});
9267
```

0 commit comments

Comments
 (0)