Skip to content

Commit

Permalink
ucfunnel support tdid (#3977)
Browse files Browse the repository at this point in the history
* ucfunnel tdid support
  • Loading branch information
ucfunnel authored and Mike Chowla committed Jul 31, 2019
1 parent 30cfb6d commit 918305f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/ucfunnelBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function getRequestData(bid, bidderRequest) {
const dnt = (navigator.doNotTrack == 'yes' || navigator.doNotTrack == '1' || navigator.msDoNotTrack == '1') ? 1 : 0;
const videoContext = utils.deepAccess(bid, 'mediaTypes.video.context');
const videoMediaType = utils.deepAccess(bid, 'mediaTypes.video');

const userIdTdid = (bid.userId && bid.userId.tdid) ? bid.userId.tdid : '';
// general bid data
let bidData = {
ver: VER,
Expand All @@ -181,7 +181,8 @@ function getRequestData(bid, bidderRequest) {
ru: ref,
adid: utils.getBidIdParameter('adid', bid.params),
w: size[0],
h: size[1]
h: size[1],
tdid: userIdTdid
};

if (bid.mediaType === 'video' || videoMediaType) {
Expand Down

0 comments on commit 918305f

Please sign in to comment.