Skip to content

Conversation

@swibi-ttd
Copy link

  • Remove optout_check from JSON body parameters
  • Remove deprecated optout_check functions from Python/Java SDK examples


- --> Always apply `doNotGenerateTokensForOptedOut()`. This applies a parameter similar to setting `optout_check=1` in the call to the POST /token/generate endpoint (see [Unencrypted JSON Body Parameters](../endpoints/post-token-generate.md#unencrypted-json-body-parameters)).
:::
<!-- :::important
Copy link
Collaborator

@genwhittTTD genwhittTTD Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why we are keeping this but commented out?

Copy link
Author

@swibi-ttd swibi-ttd Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No particular reason, I just left it in case it was important to keep track of the UID2 vs EUID diffs.

Edit: I've removed the comments

:::
::: -->

<!-- uid2_euid_diff re legal basis for admonition above (not in UID2) -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still a difference between UID2 and EUID? Or are they now the same? If so we could make them the same and remove this comment (in both).

Copy link
Author

@swibi-ttd swibi-ttd Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be sure to call this endpoint only when you have a legal basis to convert the user’s personal data to an EUID token for targeted advertising.

^ This part is still only in the EUID docs
EDIT: I've removed the comments indicating EUID diff

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to identify differences... it just needs to be clear.

Copy link
Collaborator

@genwhittTTD genwhittTTD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Couple of comments.

The `optout_check` parameter, required with a value of `1`, checks whether the user has opted out.
:::

<!-- uid2_euid_diff re legal basis for admonition above -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swibi-ttd is there no longer a difference between UID2 and EUID WRT the optout check?

This comment, line 19, relates to the admonition ("important" tag) which you've removed -- so it doesn't make sense to leave the comment there.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep there's no difference WRT the optout check. I've removed the admonition comment


The following documents were released in the first quarter of 2026.

<CustomTagsContainer tags="Endpoints, SDKs">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also a tag "Opt-Out" (see APIDOCS-1739 in the file) so use that one as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the "Opt-Out" tag

- Be sure to call the POST&nbsp;/token/generate endpoint only when you have a legal basis to convert the user’s <Link href="../ref-info/glossary-uid#gl-dii">directly identifying information (DII)</Link> to UID2 tokens for targeted advertising.
::: -->

<!-- uid2_euid_diff re legal basis for admonition above (first bullet not in UID2) -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment wording needs update to be clear, since there is now one bullet (bullet not needed but no worries). Suggest:

As background... UID2 and EUID are different repos, and since they use a lot of the same technology, with some key differences, it's really important to keep them in sync but it isn't a simple copy/paste. I'll send you a link.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Be sure to call the..." part has since been removed, and I've also removed the uid2_euid_diff comment as this section now only exists in the EUID docs. Is that fine?

Copy link
Collaborator

@genwhittTTD genwhittTTD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just needed to update the comments rather than remove them. Sorry I didn't make an exact suggestion but I didn't have both repos in front of me to see the picture clearly.

With that it's good to go. The rest is great. Just one empty line before and after comments please.

swibi-ttd and others added 4 commits February 13, 2026 13:20
Reinstate uid2_euid_diff comment

Co-authored-by: Gen Whitt <107279666+genwhittTTD@users.noreply.github.com>
Reinstate uid2_euid_diff comment

Co-authored-by: Gen Whitt <107279666+genwhittTTD@users.noreply.github.com>
Copy link
Collaborator

@genwhittTTD genwhittTTD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- Thanks much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants