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: docs/sdks/sdk-ref-javascript-v2.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ As part of the SDK [initialization](#initopts-object-void), a token auto-refresh
100
100
Here's what you need to know about the token auto-refresh:
101
101
102
102
- Only one call to the [POST /token/refresh](../endpoints/post-token-refresh.md) endpoint call can be active at a time.
103
-
- If the [POST /token/refresh](../endpoints/post-token-refresh.md) response is unsuccessful because the user has opted out, or because the refresh token has expired, this suspends the background auto-refresh process. To use UID2-based targeted advertising again, you must obtain the email or phone number from the consumer ([isLoginRequired()](#isloginrequired-boolean) returns `true`). In all other cases, auto-refresh attempts continue in the background.
103
+
- If the [POST /token/refresh](../endpoints/post-token-refresh.md) response is unsuccessful because the user has opted out, or because the refresh token has expired, this suspends the background auto-refresh process. To use UID2-based targeted advertising again if the refresh token has expired, you must obtain the email or phone number from the consumer ([isLoginRequired()](#isloginrequired-boolean) returns `true`). If the user has opted out, take no further steps. In all other cases, auto-refresh attempts continue in the background.
104
104
- The [callback function](#callback-function) specified during the SDK initialization is invoked in the following cases:
105
105
- After each successful refresh attempt.
106
106
- After an initial failure to refresh an expired advertising token.
@@ -282,7 +282,7 @@ This function can also provide additional context for handling missing identitie
282
282
283
283
| Value | Description |
284
284
| :--- | :--- |
285
-
|`true`| The identity is not available. This value indicates any of the following:<br/>- The user has opted out.<br/>- The refresh token has expired.<br/>- A first-party cookie is not available and no server-generated identity has been supplied. |
285
+
|`true`| The identity is not available. This value indicates one of the following:<br/>- The refresh token has expired.<br/>- A first-party cookie is not available and no server-generated identity has been supplied. |
286
286
|`false`| This value indicates one of the following:<br/>- The identity is present and valid.<br/>- The identity has expired, and the token was not refreshed due to an intermittent error. The identity might be restored after a successful auto-refresh attempt. |
287
287
|`undefined`| The SDK initialization is not yet complete. |
Copy file name to clipboardExpand all lines: docs/sdks/sdk-ref-javascript-v3.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ As part of the SDK [initialization](#initopts-object-void), a token auto-refresh
158
158
Here's what you need to know about the token auto-refresh:
159
159
160
160
- Only one token refresh call can be active at a time.
161
-
- If the [POST /token/refresh](../endpoints/post-token-refresh.md) response is unsuccessful because the user has opted out, or because the refresh token has expired, this suspends the background auto-refresh process. To use UID2-based targeted advertising again, you must obtain the email or phone number from the consumer. In all other cases, auto-refresh attempts continue in the background.
161
+
- If the [POST /token/refresh](../endpoints/post-token-refresh.md) response is unsuccessful because the user has opted out, or because the refresh token has expired, this suspends the background auto-refresh process. To use UID2-based targeted advertising again if the refresh token has expired, you must obtain the email or phone number from the consumer. If the user has opted out, take no further steps. In all other cases, auto-refresh attempts continue in the background.
162
162
- All [callback functions](#callback-function) provided using the [Array Push Pattern](#array-push-pattern) are invoked in the following cases:
163
163
- After each successful refresh attempt.
164
164
- When identity has become invalid—for example, because the user has opted out.<br/>NOTE: The callback is *not* invoked when identity is temporarily unavailable and the auto-refresh keeps failing. In this case, the SDK continues using the existing advertising token as long as it hasn't expired.
@@ -438,8 +438,8 @@ Specifies whether a UID2 [POST /token/generate](../endpoints/post-token-gen
438
438
439
439
| Value | Description |
440
440
| :--- | :--- |
441
-
|`true`| The identity is not available. This value indicates any of the following:<ul><li>The user has opted out.</li><li>The refresh token has expired.</li><li>A first-party cookie is not available and no server-generated identity has been supplied.</li></ul> |
442
-
|`false`| This value indicates one of the following:<ul><li>The identity is present and valid.</li><li>The identity has expired (but the refresh token has not expired), and the token was not refreshed due to an intermittent error. The identity might be restored after a successful auto-refresh attempt.</li></ul> |
441
+
|`true`| The identity is not available. This value indicates one of the following:<ul><li>The refresh token has expired.</li><li>A first-party cookie is not available and no server-generated identity has been supplied.</li></ul> |
442
+
|`false`| This value indicates one of the following:<ul><li>The identity is present and valid.</li><li>The identity is present, but cannot be used for UID2 because the user has opted out.</li><li>The identity has expired (but the refresh token has not expired), and the token was not refreshed due to an intermittent error. The identity might be restored after a successful auto-refresh attempt.</li></ul> |
443
443
444
444
### isIdentityAvailable(): boolean
445
445
@@ -458,8 +458,8 @@ If false, a UID2 [POST /token/generate](../endpoints/post-token-generate.md
458
458
459
459
| Value | Description |
460
460
| :--- | :--- |
461
-
|`true`| This value indicates one of the following:<ul><li>The identity is present and valid in a first-party cookie or local storage.</li><li>The identity has expired, and the token was not refreshed due to an intermittent error. The identity might be restored after a successful auto-refresh attempt.</li></ul> |
462
-
|`false`| This value indicates any of the following:<ul><li>The user has opted out.</li><li> The identity is present, but the refresh token has expired.</li><li>The identity has expired, even if the refresh token is still valid.</li><li>A first-party cookie is not available and no server-generated identity has been supplied. </li></ul> |
461
+
|`true`| This value indicates one of the following:<ul><li>The identity is present and valid in a first-party cookie or local storage.</li><li>The identity is present, but cannot be used for UID2 because the user has opted out.</li><li>The identity has expired, and the token was not refreshed due to an intermittent error. The identity might be restored after a successful auto-refresh attempt.</li></ul> |
462
+
|`false`| This value indicates any of the following:<ul><li>The identity is present, but the refresh token has expired.</li><li>The identity has expired, even if the refresh token is still valid.</li><li>A first-party cookie is not available and no server-generated identity has been supplied. </li></ul> |
Copy file name to clipboardExpand all lines: docs/sdks/sdk-ref-javascript.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,7 @@ As part of the SDK [initialization](#initopts-object-void), a token auto-refresh
157
157
Here's what you need to know about the token auto-refresh:
158
158
159
159
- Only one token refresh call can be active at a time.
160
-
- If the [POST /token/refresh](../endpoints/post-token-refresh.md) response is unsuccessful because the user has opted out, or because the refresh token has expired, this suspends the background auto-refresh process. To use UID2-based targeted advertising again, you must obtain the email or phone number from the consumer. In all other cases, auto-refresh attempts continue in the background.
160
+
- If the [POST /token/refresh](../endpoints/post-token-refresh.md) response is unsuccessful because the user has opted out, or because the refresh token has expired, this suspends the background auto-refresh process. To use UID2-based targeted advertising again if the refresh token has expired, you must obtain the email or phone number from the consumer. If the user has opted out, take no further steps. In all other cases, auto-refresh attempts continue in the background.
161
161
- All [callback functions](#callback-function) provided using the [Array Push Pattern](#array-push-pattern) are invoked in the following cases:
162
162
- After each successful refresh attempt.
163
163
- When identity has become invalid—for example, because the user has opted out.<br/>NOTE: The callback is *not* invoked when identity is temporarily unavailable and the auto-refresh keeps failing. In this case, the SDK continues using the existing advertising token as long as it hasn't expired.
@@ -421,8 +421,8 @@ Specifies whether a UID2 [POST /token/generate](../endpoints/post-token-gen
421
421
422
422
| Value | Description |
423
423
| :--- | :--- |
424
-
|`true`| The identity is not available. This value indicates any of the following:<ul><li>The user has opted out.</li><li>The refresh token has expired.</li><li>A first-party cookie is not available and no server-generated identity has been supplied.</li></ul> |
425
-
|`false`| This value indicates one of the following:<ul><li>The identity is present and valid.</li><li>The identity has expired (but the refresh token has not expired), and the token was not refreshed due to an intermittent error. The identity might be restored after a successful auto-refresh attempt.</li></ul> |
424
+
|`true`| The identity is not available. This value indicates one of the following:<ul><li>The refresh token has expired.</li><li>A first-party cookie is not available and no server-generated identity has been supplied.</li></ul> |
425
+
|`false`| This value indicates one of the following:<ul><li>The identity is present and valid.</li><li>The identity is present, but cannot be used for UID2 because the user has opted out.</li><li>The identity has expired (but the refresh token has not expired), and the token was not refreshed due to an intermittent error. The identity might be restored after a successful auto-refresh attempt.</li></ul> |
426
426
427
427
### isIdentityAvailable(): boolean
428
428
@@ -439,8 +439,8 @@ If false, a UID2 [POST /token/generate](../endpoints/post-token-generate.md
439
439
440
440
| Value | Description |
441
441
| :--- | :--- |
442
-
|`true`| This value indicates one of the following:<ul><li>The identity is present and valid in a first-party cookie or local storage.</li><li>The identity has expired, and the token was not refreshed due to an intermittent error. The identity might be restored after a successful auto-refresh attempt.</li></ul> |
443
-
|`false`| This value indicates any of the following:<ul><li>The user has opted out.</li><li> The identity is present, but the refresh token has expired.</li><li>The identity has expired, even if the refresh token is still valid.</li><li>A first-party cookie is not available and no server-generated identity has been supplied. </li></ul> |
442
+
|`true`| This value indicates one of the following:<ul><li>The identity is present and valid in a first-party cookie or local storage.</li><li>The identity is present, but cannot be used for UID2 because the user has opted out.</li><li>The identity has expired, and the token was not refreshed due to an intermittent error. The identity might be restored after a successful auto-refresh attempt.</li></ul> |
443
+
|`false`| This value indicates any of the following:<ul><li>The identity is present, but the refresh token has expired.</li><li>The identity has expired, even if the refresh token is still valid.</li><li>A first-party cookie is not available and no server-generated identity has been supplied. </li></ul> |
|`true`| ID が利用できません。この値は以下のいずれかを示します:<ul><li>ユーザーがオプトアウトした。</li><li>Refresh token の有効期限が切れた。</li><li>ファーストパーティクッキーは利用できず、サーバーで生成した ID も提供されていません。</li></ul> |
432
+
|`true`| ID が利用できません。この値は以下のいずれかを示します:<ul><li>Refresh token の有効期限が切れた。</li><li>ファーストパーティクッキーは利用できず、サーバーで生成した ID も提供されていません。</li></ul> |
|`true`| ID が利用できません。この値は以下のいずれかを示します:<ul><li>ユーザーがオプトアウトした。</li><li>Refresh token の有効期限が切れた。</li><li>ファーストパーティクッキーは利用できず、サーバーで生成した ID も提供されていません。</li></ul> |
424
+
|`true`| ID が利用できません。この値は以下のいずれかを示します:<ul><li>Refresh token の有効期限が切れた。</li><li>ファーストパーティクッキーは利用できず、サーバーで生成した ID も提供されていません。</li></ul> |
0 commit comments