This endpoint is used during cookie syncs. For technical details, see the Cookie Sync developer docs.
This endpoint saves a UserID for a Bidder in the Cookie. Saved IDs will be recognized for 7 days before being considered "stale" and being re-synced.
bidder
: The FamilyName of the Usersyncer which is being synced.uid
: The ID which the Bidder uses to recognize this user. If undefined, the UID forbidder
will be deleted.gdpr
: This should be1
if GDPR is in effect,0
if not, and undefined if the caller isn't suregdpr_consent
: This is required ifgdpr
is one, and optional (but encouraged) otherwise. If present, it should be an unpadded base64-URL encoded Vendor Consent String.
If the gdpr
and gdpr_consent
params are included, this endpoint will not write a cookie unless:
- The Vendor ID set by the Prebid Server host company has permission to save cookies for that user.
- The Prebid Server host company did not configure it to run with GDPR support.
If in doubt, contact the company hosting Prebid Server and ask if they're GDPR-ready.
GET http://prebid.site.com/setuid?bidder=adnxs&uid=12345&gdpr=1&gdpr_consent=BONciguONcjGKADACHENAOLS1rAHDAFAAEAASABQAMwAeACEAFw