Skip to main content

How the EUID Token Is Created

note

This article describes how the EUID token that the publisher sends in the bidstream is created.

When a publisher sends a user's personal datahashed or unhashed email addresses or phone numbers—to the EUID Operator, and in return receives an EUID token to use for targeted advertising, there is a very specific sequence of processing steps that occurs along the way.

Some preliminary steps are taken by the publisher, but most of the processing steps are done by the EUID Operator.

It's very important that the publisher steps are performed in the correct sequence:

  • When steps are performed in sequence, the resulting value can be recognized as related to other EUID identifiers generated from online activity by the same individual: the underlying raw EUID matches the raw EUIDs generated by other EUID participants from the same personal data, and therefore the token is suitable for targeted advertising.
  • If steps are taken out of sequence, the resulting value cannot be related to other EUID identifiers generated from online activity by the same individual, and therefore the token is not suitable for targeted advertising.

For a summary, see Steps to Create an EUID Token. For an example in diagram form, see Creating an EUID Token—Example.

Steps to Create an EUID Token

The following table shows the steps for creating an EUID token from personal data, the sequence, and who performs each step.

For an example with sample values, see Creating an EUID Token—Example.

StepActionWho Does It?Documentation
1Normalize.Email: Publisher or EUID Operator
Phone number: Publisher must normalize
Email Address Normalization
Phone Number Normalization
2Apply SHA-256 hashing to the normalized email address.Publisher or EUID OperatorEmail Address Hash Encoding
Phone Number Hash Encoding
3Apply Base64 encoding to the SHA-256 hash.Publisher or EUID OperatorEmail Address Hash Encoding
Phone Number Hash Encoding
4Send value to EUID Operator via the POST /token/generate endpoint, an SDK, Prebid.js, or another supported integration.PublisherVarious: for a summary, see Implementation Resources
5Perform multiple steps including hashing and adding the secret salt value to create a raw EUID.EUID OperatorNot applicable: these steps are all performed by the EUID Operator.
6Encrypt the raw EUID to create an EUID token.EUID OperatorNot applicable: performed by the EUID Operator.

Creating an EUID Token—Example

The following diagram shows the high-level steps for creating a raw EUID (first column, second column) and then an EUID token (third column).

The publisher can send a request to the POST /token/generate endpoint or use one of the other integration options, such as an SDK or Prebid. Whatever the integration option, the result is an EUID token—an encrypted value that the publisher can send in the bidstream for targeted advertising.

Sequential steps for creating an EUID