Client-Side EUID Integration with Prebid.js (with Google Secure Signals)

This example demonstrates how a content publisher can integrate EUID with both Prebid.js (for header bidding) and Google Secure Signals (for Google Ad Manager), using client-side token generation. Prebid manages the EUID token, and Google Secure Signals reads from Prebid's storage automatically. For documentation, see EUID Client-Side Integration Guide for Prebid.js and Google Ad Manager Secure Signals Integration Guide. [Source Code]

EUID Integration Status

Ready for Targeted Advertising:
?
Indicates whether a valid EUID token is present and can be used for personalized ad targeting.
Advertising Token:
?
The encrypted EUID token that is passed to ad systems without exposing raw user identity.
Is Login Required?
?
Indicates whether a new EUID token needs to be generated. Returns "yes" when no valid identity exists or the current identity has expired.
Has Opted Out?
?
Shows whether the user has exercised opt-out, in which case no advertising token may be generated or used.

Prebid Integration Status

Prebid.js is configured to handle the entire token lifecycle—generation, storage, and automatic refresh.

Prebid Token Storage:
?
Shows the EUID token stored by Prebid in localStorage under the key '__euid_advertising_token'. This storage is shared between Prebid and Google Secure Signals.

Google Secure Signals Status

Prebid's encryptedSignalSources config enables automatic sharing of encrypted EUID tokens with Google Ad Manager.

Secure Signals Configured?
?
Indicates whether Google Secure Signals integration is properly configured in Prebid. When "yes", encrypted EUID signals are sent to Google Ad Manager.