diff --git a/modules/prebidServerBidAdapter/index.js b/modules/prebidServerBidAdapter/index.js index 151e880e985..a6061b4bad4 100644 --- a/modules/prebidServerBidAdapter/index.js +++ b/modules/prebidServerBidAdapter/index.js @@ -698,7 +698,7 @@ const OPEN_RTB_PROTOCOL = { } const bidUserId = utils.deepAccess(bidRequests, '0.bids.0.userId'); - if (bidUserId && typeof bidUserId === 'object' && (bidUserId.tdid || bidUserId.pubcid || bidUserId.parrableid || bidUserId.lipb)) { + if (bidUserId && typeof bidUserId === 'object' && (bidUserId.tdid || bidUserId.pubcid || bidUserId.parrableid || bidUserId.lipb || bidUserId.id5id)) { utils.deepSetValue(request, 'user.ext.eids', []); if (bidUserId.tdid) { @@ -746,6 +746,15 @@ const OPEN_RTB_PROTOCOL = { } request.user.ext.eids.push(liveIntent); } + + if (bidUserId.id5id) { + request.user.ext.eids.push({ + source: 'id5-sync.com', + uids: [{ + id: bidUserId.id5id, + }] + }); + } } if (bidRequests && bidRequests[0].gdprConsent) {