Skip to main content

EUID Integration Overview for JavaScript

This guide is an overview of integration options for publishers who want to integrate with EUID and generate EUID tokens (advertising tokens) using the SDK for JavaScript.

For a summary of all web options, including Prebid.js and additional SDK options, see Web Integration Overview.

Introduction

EUID provides an SDK for JavaScript that supports the following:

For additional flexibility, EUID also provides alternative methods for some of the features and complementary products, such as a Prebid integration.

Client-Side or Server-Side Integration

The options for integrating with EUID using the SDK for JavaScript are summarized in the following table. Choose the option that's best for you.

ScenarioOptionIntegration Guide
You have access to personal data on the client side and want to do front-end development only.Client-side integrationClient-Side Integration Guide for JavaScript
You have access to personal data on the server side and can do server-side development, or you are using a Private Operator.Server-side integrationServer-Side Integration Guide for JavaScript

Generating the EUID Token

Depending on access to personal data, there are two methods to generate EUID tokens using the SDK for JavaScript: client-side or server-side.

From the table in Client-Side or Server-Side Integration, determine which option is best for you, and then follow the applicable integration guide.

Refreshing the EUID Token

The SDK for JavaScript includes automated token refresh.

Storing the EUID Token in the Browser

The client-side option stores data using local storage. The server-side option uses local storage by default, but you can also choose to use a cookie instead. For details, see EUID Storage Format in the SDK for JavaScript Reference Guide.

The cookie size can be significant, which could be a problem. However, if local storage is not an option, this is one possible approach.

Passing the EUID Token to the Bidstream

The JavaScript SDK manages generating, refreshing, and storing the EUID token, but it does not manage passing the token to the bidstream.

You can pass the token into the bidstream using any option you choose—for example, Prebid.js. For some suggestions, see Pass the Token Into the Bidstream in the Web Integration Overview.

JavaScript Integration Overview: High-Level Steps

At a high level, to integrate your site with EUID using the SDK for JavaScript, you'll need to complete the following steps:

  1. Complete EUID account setup.
  2. Add the SDK to your site.
  3. Configure the SDK.

For detailed instructions, refer to one of the following integration guides: