Skip to content

Commit

Permalink
IX Bid Adapter: propagate atype in uids (prebid#12050)
Browse files Browse the repository at this point in the history
Co-authored-by: Sajid Mahmood <[email protected]>
  • Loading branch information
sajidbsk and Sajid Mahmood authored Jul 31, 2024
1 parent aa4d430 commit b98353b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion modules/ixBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,6 @@ function getEidInfo(allEids) {
rtiPartner: SOURCE_RTI_MAPPING[eid.source]
};
}
delete eid.uids[0].atype;
toSend.push(eid);
if (toSend.length >= MAX_EID_SOURCES) {
break;
Expand Down
9 changes: 8 additions & 1 deletion test/spec/modules/ixBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,8 @@ describe('IndexexchangeAdapter', function () {
source: 'identityinc.com',
uids: [
{
id: 'identityid'
id: 'identityid',
atype: 1
}
]
}
Expand Down Expand Up @@ -1383,8 +1384,14 @@ describe('IndexexchangeAdapter', function () {

it('identity data in impression should have correct format and value (single identity partner)', function () {
const impression = payload.user.eids;
expect(impression).to.be.an('array');
expect(impression).to.have.lengthOf(1);
expect(impression[0].source).to.equal(testCopy.IdentityIp.data.source);
expect(impression[0].uids).to.be.an('array');
expect(impression[0].uids).to.have.lengthOf(1);
expect(impression[0].uids[0].id).to.equal(testCopy.IdentityIp.data.uids[0].id);
expect(impression[0].uids[0].atype).to.exist;
expect(impression[0].uids[0].atype).to.equal(testCopy.IdentityIp.data.uids[0].atype);
});
});

Expand Down

0 comments on commit b98353b

Please sign in to comment.