Skip to content

Commit

Permalink
docereeAdManager Bid Adapter : Updated bid adapter (#11996)
Browse files Browse the repository at this point in the history
* Updated docereeAdManager bid adapter

* Updated docereeAdManager bid adapter

* Updated docereeAdManager bid adapter

* Updated docereeAdManager bid adapter

* Updated docereeAdManager bid adapter

* Updated docereeAdManager bid adapter

* Update docereeAdManagerBidAdapter.js

---------

Co-authored-by: lokesh-doceree <Lokesh.Kumar@doceree.com>
Co-authored-by: Patrick McCann <patmmccann@gmail.com>
  • Loading branch information
3 people authored Jul 19, 2024
1 parent 7110bc7 commit d38a06d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 4 additions & 7 deletions modules/docereeAdManagerBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,11 @@ function getPayload(bid, userData) {
if (!userData || !bid) {
return false;
}

const { bidId, params } = bid;
const { placementId } = params;
const {
userid,
email,
firstname,
lastname,
specialization,
hcpid,
gender,
city,
state,
Expand All @@ -94,11 +89,12 @@ function getPayload(bid, userData) {
hashedmobile,
country,
organization,
dob,
platformUid,
mobile
} = userData;

const data = {
userid: userid || '',
userid: platformUid || userid || '',
email: email || '',
firstname: firstname || '',
lastname: lastname || '',
Expand All @@ -119,6 +115,7 @@ function getPayload(bid, userData) {
organization: organization || '',
dob: dob || '',
userconsent: 1,
mobile: mobile || ''
};
return {
data,
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/docereeAdManagerBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe('docereeadmanager', function () {
userid: '',
zipcode: '',
userconsent: '',
platformUid: ''
},
},
},
Expand Down

0 comments on commit d38a06d

Please sign in to comment.