Saving User Syncs

This endpoint is used during cookie syncs. For technical details, see the Cookie Sync developer docs.

GET /setuid

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.

Query Params

If the gdpr and gdpr_consent params are included, this endpoint will not write a cookie unless:

  1. The Vendor ID set by the Prebid Server host company has permission to save cookies for that user.
  2. 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.

Sample request