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/endpoints/post-token-generate.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ The response body includes the properties shown in the following table.
129
129
|`advertising_token`| string | An encrypted advertising (UID2) token for the user. |
130
130
|`refresh_token`| string | An encrypted token that can be exchanged with the UID2 Service for the latest set of identity tokens. |
131
131
|`identity_expires`| number | The <ahref="../ref-info/glossary-uid#gl-unix-time">Unix</a> timestamp (in milliseconds) that indicates when the advertising token expires. |
132
-
|`refresh_from`| number | The Unix timestamp (in milliseconds) that indicates when the SDK for JavaScript (see [SDK for JavaScript Reference Guide](../sdks/sdk-ref-javascript.md)) will start refreshing the UID2 token.<br/>TIP: If you are not using the SDK, consider refreshing the UID2 token from this timestamp, too. |
132
+
|`refresh_from`| number | The Unix timestamp (in milliseconds) that indicates the point at which you should consider refreshing the UID2 token. |
133
133
|`refresh_expires`| number | The Unix timestamp (in milliseconds) that indicates when the refresh token expires. |
134
134
|`refresh_response_key`| string | A key to be used in a [POST /token/refresh](post-token-refresh.md) request for response decryption. |
Copy file name to clipboardExpand all lines: docs/guides/integration-ctv-guide.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,9 @@ If you're a Connected TV (CTV) publisher, there are several ways that you can in
20
20
At a high level, to integrate with UID2, you'll implement these three key steps:
21
21
22
22
1. Generate the UID2 token.
23
-
1. Refresh the UID2 token as needed.
23
+
1. Refresh or regenerate the UID2 token frequently to ensure the token stays current.
24
+
25
+
For details, see [Keeping the Token Current](../ref-info/ref-tokens.md#keeping-the-token-current) and [Recommended Token Refresh Frequency](../ref-info/ref-tokens.md#recommended-token-refresh-frequency).
24
26
1. Pass the UID2 token into the bidstream.
25
27
26
28
To determine how you'll implement these steps, choose from the [CTV Integration Options](#ctv-integration-options).
Copy file name to clipboardExpand all lines: docs/ref-info/ref-tokens.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,12 @@ Here are some key points about UID2 tokens:
20
20
21
21
- The UID2 token is a unique value: no two UID2 tokens are the same.
22
22
- UID2 tokens are case sensitive.
23
+
- Publishers send UID2 tokens in the bidstream.
23
24
- The token value is an <ahref="glossary-uid#gl-opaque">opaque</a> string: do not make any assumptions about the format or length of the string.
24
25
- UID2 tokens representing different instances of user activity, on browsers, CTV, and electronic devices such as phones and tablets, can still be matched to the same raw UID2.
25
26
- The token generation logic checks for user opt-out. If the user has opted out of UID2, no UID2 token is generated. For details, see [User Opt-Out](../getting-started/gs-opt-out.md).
26
27
- The token has a limited life, but can be refreshed using the refresh token.
27
28
- You can refresh many times, to get a new UID2 token and corresponding new refresh token, as long as the current UID2 token is always refreshed before the current refresh token expires.
28
-
- If the token has expired, or as an alternative to refreshing an existing token, you can generate a new UID2 token from the original hashed or unhashed email address or phone number.
29
-
- Publishers send UID2 tokens in the bidstream.
30
29
- Refreshing a UID2 token does not invalidate/expire the original or previous UID2 token. You can still use the earlier token until it expires.
31
30
32
31
For more information, see [How the UID2 Token Is Created](ref-how-uid-is-created.md).
@@ -48,6 +47,14 @@ Here are some key points about refresh tokens:
48
47
- In most cases, you can refresh tokens on the client side, even if the token was generated on the server side. For details about refresh functionality for the various SDKs, see [SDK Functionality](../sdks/summary-sdks.md#sdk-functionality) (*Refresh UID2 Token* column).
49
48
- When the UID2 <Linkhref="../ref-info/glossary-uid#gl-operator-service">Operator Service</Link> receives the refresh token with a request for a new UID2 token, it checks for user opt-out. If the user has opted out of UID2, no new UID2 token is generated. For details, see [User Opt-Out](../getting-started/gs-opt-out.md).
50
49
50
+
### Keeping the Token Current
51
+
52
+
It's very important to keep your UID2 tokens current (not expired). You get the advantages of UID2 only if the token is current.
53
+
54
+
There are two options for keeping your UID2 tokens current:
55
+
- Refresh frequently, using the [POST /token/refresh](../endpoints/post-token-refresh.md) endpoint or the token refresh feature of many UID2 SDKs. For details, see [Recommended Token Refresh Frequency](#recommended-token-refresh-frequency).
56
+
- As an alternative to refreshing an existing token, generate a new token each time, using the [POST /token/generate](../endpoints/post-token-generate.md) endpoint or the token generate feature of many UID2 SDKs.
57
+
51
58
### Recommended Token Refresh Frequency
52
59
53
60
Currently, the recommended refresh interval is hourly. An hourly interval helps ensure that the token doesn't get close to being expired, and is ready to be sent to the bidstream. In addition, since user opt-out is checked before a new token is generated, this helps ensure that user opt-out preferences are implemented promptly.
0 commit comments