Skip to content

Commit

Permalink
tappxBidAdapter: update eids array
Browse files Browse the repository at this point in the history
  • Loading branch information
marc_tappx committed Mar 31, 2021
1 parent 919c2f2 commit 37d9f96
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions modules/tappxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,22 +266,11 @@ function buildOneRequest(validBidRequests, bidderRequest) {

// Universal ID
const eidsArr = utils.deepAccess(validBidRequests, 'userIdAsEids');

let eids = [];
eidsArr.forEach(eidsElement => {
if (eidsElement.source && eidsElement.uids[0].id) {
eids.push({
source: eidsElement.source,
userId: eidsElement.uids[0].id
});
payload.user = {
ext: {
eids: eidsArr
}
});

let user = {};
user.ext = {};
user.ext.eids = eidsArr;
payload.user = user;

};
// < GDPR

// > Payload
Expand Down

0 comments on commit 37d9f96

Please sign in to comment.