You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/33acrossIdSystem.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ pbjs.setConfig({
14
14
name:"33acrossId",
15
15
storage: {
16
16
name:"33acrossId",
17
-
type:"html5",
17
+
type:"cookie&html5",
18
18
expires:30,
19
19
refreshInSeconds:8*3600
20
20
},
@@ -40,7 +40,7 @@ The following settings are available for the `storage` property in the `userSync
40
40
| Param name | Scope | Type | Description | Example |
41
41
| --- | --- | --- | --- | --- |
42
42
| name | Required | String| Name of the cookie or HTML5 local storage where the user ID will be stored |`"33acrossId"`|
43
-
| type | Required | String |`"html5"` (preferred) or `"cookie"`|`"html5"`|
43
+
| type | Required | String |`"cookie&html5"` (preferred) or `"cookie"`or `"html5"`|`"cookie&html5"`|
44
44
| expires | Strongly Recommended | Number | How long (in days) the user ID information will be stored. 33Across recommends `30`. |`30`|
45
45
| refreshInSeconds | Strongly Recommended | Number | The interval (in seconds) for refreshing the user ID. 33Across recommends no more than 8 hours between refreshes. |`8*3600`|
Copy file name to clipboardExpand all lines: modules/consentManagementGpp.js
+4-3
Original file line number
Diff line number
Diff line change
@@ -161,8 +161,10 @@ export class GPPClient {
161
161
* This function handles interacting with an IAB compliant CMP to obtain the consent information of the user.
162
162
* Given the async nature of the CMP's API, we pass in acting success/error callback functions to exit this function
163
163
* based on the appropriate result.
164
-
* @param {function({})} onSuccess acts as a success callback when CMP returns a value; pass along consentObjectfrom CMP
165
-
* @param {function(string, ...{}?)} cmpError acts as an error callback while interacting with CMP; pass along an error message (string) and any extra error arguments (purely for logging)
164
+
* @param {Object} options - An object containing the callbacks.
165
+
* @param {function(Object): void} options.onSuccess - Acts as a success callback when CMP returns a value; pass along consentObject from CMP.
166
+
* @param {function(string, ...Object?): void} options.onError - Acts as an error callback while interacting with CMP; pass along an error message (string) and any extra error arguments (purely for logging).
167
+
* @param {function(): Object} [mkCmp=cmpClient] - A function to create the CMP client. Defaults to `cmpClient`.
Copy file name to clipboardExpand all lines: modules/consentManagementTcf.js
+7-3
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,9 @@ const cmpCallMap = {
35
35
36
36
/**
37
37
* This function reads the consent string from the config to obtain the consent information of the user.
38
-
* @param {function({})} onSuccess acts as a success callback when the value is read from config; pass along consentObject from CMP
38
+
* @param {Object} options - An object containing the callbacks.
39
+
* @param {function(Object): void} options.onSuccess - Acts as a success callback when the value is read from config; pass along consentObject from CMP.
40
+
* @param {function(string, ...Object?): void} [options.onError] - Acts as an error callback while interacting with CMP; pass along an error message (string) and any extra error arguments (purely for logging). Optional.
@@ -45,8 +47,10 @@ function lookupStaticConsentData({onSuccess, onError}) {
45
47
* This function handles interacting with an IAB compliant CMP to obtain the consent information of the user.
46
48
* Given the async nature of the CMP's API, we pass in acting success/error callback functions to exit this function
47
49
* based on the appropriate result.
48
-
* @param {function({})} onSuccess acts as a success callback when CMP returns a value; pass along consentObjectfrom CMP
49
-
* @param {function(string, ...{}?)} cmpError acts as an error callback while interacting with CMP; pass along an error message (string) and any extra error arguments (purely for logging)
50
+
* @param {Object} options - An object containing the callbacks.
51
+
* @param {function(Object): void} options.onSuccess - Acts as a success callback when CMP returns a value; pass along consentObject from CMP.
52
+
* @param {function(string, ...Object?): void} options.onError - Acts as an error callback while interacting with CMP; pass along an error message (string) and any extra error arguments (purely for logging).
53
+
* @param {function(Object): void} options.onEvent - Acts as an event callback for processing TCF data events from CMP.
* @param {function(string, ...Object?): void} callbacks.onError - Callback accepting an error message and any extra error arguments (used purely for logging).
0 commit comments