Skip to content

Commit

Permalink
Deep Intent Bid Adapter: backward compatible eids added (#7187)
Browse files Browse the repository at this point in the history
* backward compatible eids added

* eslint fixes

Co-authored-by: Sourabh Gandhe <sourabh@Sourabhs-MacBook-Pro.local>
  • Loading branch information
sourabhg and Sourabh Gandhe authored Jul 16, 2021
1 parent fba096d commit 63b8929
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/deepintentBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function injectEids(openRtbBidRequest, validBidRequests) {
const bidUserIdAsEids = utils.deepAccess(validBidRequests, '0.userIdAsEids');
if (utils.isArray(bidUserIdAsEids) && bidUserIdAsEids.length > 0) {
utils.deepSetValue(openRtbBidRequest, 'user.eids', bidUserIdAsEids);
utils.deepSetValue(openRtbBidRequest, 'user.ext.eids', bidUserIdAsEids);
}
}

Expand Down

0 comments on commit 63b8929

Please sign in to comment.