Skip to content

Commit

Permalink
Add mtp (maxTouchPoints) parameter to Yieldmo adapter (#5597)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitriy Labuzov <[email protected]>
  • Loading branch information
arconamagi and ym-dlabuzov authored Aug 12, 2020
1 parent 4d2b401 commit d88bd0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/yieldmoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ export const spec = {
us_privacy: utils.deepAccess(bidderRequest, 'uspConsent') || ''
};

const mtp = window.navigator.maxTouchPoints;
if (mtp) {
serverRequest.mtp = mtp;
}

bidRequests.forEach(request => {
serverRequest.p.push(addPlacement(request));
const pubcid = getId(request, 'pubcid');
Expand Down

0 comments on commit d88bd0e

Please sign in to comment.