What exactly is Prebid "userSync"?
- User
What exactly is Prebid "userSync"?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
What exactly is Prebid "userSync"?
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Prebid.js userSync is a mechanism that allows demand partners (bidders) to synchronize user identification data (e.g., cookies, IDs) with the user's browser after an ad auction. This ensures bidders can recognize users in future auctions, improving targeting and bid accuracy. Here's a detailed breakdown:
tdid for The Trade Desk).sharedId).Configured in Prebid.js via setConfig:
pbjs.setConfig({
userSync: {
syncEnabled: true, // Master switch
syncDelay: 3000, // Delay (ms) before syncing
auctionDelay: 100, // Max auction delay (ms) if syncs are needed
enableOverride: false, // Allow bidders to force syncs
syncsPerBidder: 5, // Max syncs per bidder
filterSettings: { // Filter syncs by type
iframe: {
bidders: ['bidderA'], // Only allow these bidders for iframes
filter: 'include'
}
},
userIds: [ // User ID modules (separate from bidder syncs)
{ name: 'sharedId' }
]
}
});
noBid but requests a sync.gdpr, usp consent strings).adnxs.com cookies).ortb2.user.data.
userSync to set their own cookies.syncEnabled: true and no typos in bidder names.*sync.* endpoints.pbjs_debug=true to log sync activity.example.com.https://biddera.com/sync?gdpr=1&....In short: Prebid userSync is the behind-the-scenes process that lets bidders "remember" users across sessions, enabling better ad targeting while respecting privacy rules.
what's a userSync in relation to an identity module?
Here's the relationship between Prebid userSync and User ID modules, explained clearly:
userSync: A mechanism for bidders to set/resync their own user IDs (cookies) in the browser.ortb2.user.data.userSyncsharedId, pubCommonId) use userSync under the hood to set their own cookies.sharedId module fires a pixel/iframe via userSync to store its ID in a first-party cookie.graph LR
A[Identity Module] -->|Generates ID| B(Stores ID via userSync)
B --> C[ID added to ortb2.user.data]
C --> D[Bidders use ID in auction]
D --> E[Post-auction: Bidders sync their own IDs via userSync]
| Step | Identity Module | userSync |
|---|---|---|
| Storage | Sets a shared ID (e.g., _pubcid cookie) | Sets bidder-specific IDs (e.g., adnxs cookie) |
| Data Location | In Prebid's ortb2.user.data object | In bidder's own cookies |
| Usage in Auction | Passed to all bidders in the bid request | Used by bidders internally for recognition |
ID Module Initialization:
When an ID module (e.g., sharedId) runs, it:
userSync pixel to fetch/set the ID.Bidder Recognition:
ortb2.user.data (via ID modules) to recognize users.userSync) for internal tracking.Consent Handling:
Both systems respect the same GDPR/CCPA signals. If consent is missing, neither fires.
pbjs.setConfig({
userSync: {
syncEnabled: true,
userIds: [{
name: 'sharedId', // Identity module
params: {
syncTime: 3000 // Uses userSync internally
}
}]
}
});
Here, the sharedId module leverages userSync to set its cookie.
sharedId instead of 10 separate cookies).noBid rates (bidders recognize users faster via ortb2.user.data).First Visit:
userSync to set _sharedid=ABC.ABC in ortb2.user.data but lacks its own cookie → bids low + requests a sync.userSync.Subsequent Visit:
ortb2.user.data (shared ID) and its own cookie → bids accurately.
userSyncis the delivery truck that transports IDs (both shared and bidder-specific) to the browser.
Identity modules are the factories producing shared IDs – but they needuserSyncto store them.
Both systems work together to balance user recognition, performance, and privacy compliance.