Skip to content

Commit

Permalink
rename userId to eids
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisg93 committed Jul 3, 2023
1 parent c8117e8 commit 6550387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/adyoulikeBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const spec = {
payload.ortb2 = bidderRequest.ortb2;
}
if (eids) {
payload.userId = eids;
payload.eids = eids;
}

payload.pbjs_version = '$prebid.version$';
Expand Down
6 changes: 3 additions & 3 deletions test/spec/modules/adyoulikeBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ describe('Adyoulike Adapter', function () {
expect(payload.gdprConsent.consentRequired).to.be.null;
});

it('should add userid eids information to the request', function () {
it('should add eids eids information to the request', function () {
let bidRequest = bidRequestWithSinglePlacement;
bidRequest[0].userIdAsEids = [{
'source': 'pubcid.org',
Expand All @@ -720,8 +720,8 @@ describe('Adyoulike Adapter', function () {
const request = spec.buildRequests(bidRequest, bidderRequest);
const payload = JSON.parse(request.data);

expect(payload.userId).to.exist;
expect(payload.userId).to.deep.equal(bidRequest[0].userIdAsEids);
expect(payload.eids).to.exist;
expect(payload.eids).to.deep.equal(bidRequest[0].userIdAsEids);
});

it('sends bid request to endpoint with single placement', function () {
Expand Down

0 comments on commit 6550387

Please sign in to comment.