diff --git a/modules/pubmaticAnalyticsAdapter.js b/modules/pubmaticAnalyticsAdapter.js index 8389a96812c..09a9d033e9d 100755 --- a/modules/pubmaticAnalyticsAdapter.js +++ b/modules/pubmaticAnalyticsAdapter.js @@ -210,14 +210,16 @@ function getUpdatedKGPVForVideo(kgpv, bidResponse) { if (bidResponse && bidResponse.mediaType && bidResponse.mediaType == 'video') { var videoKgpv = ['', '0x0']; var splitKgpv = kgpv.split('@'); - if (splitKgpv.length == 2) { - if (splitKgpv[1].indexOf(':') > -1) { - var kgpvIndex = splitKgpv[1].split(':'); - videoKgpv[1] = videoKgpv[1] + ':' + kgpvIndex[1]; + if (splitKgpv.length > 1) { + if (splitKgpv.length == 2) { + if (splitKgpv[1].indexOf(':') > -1) { + var kgpvIndex = splitKgpv[1].split(':'); + videoKgpv[1] = videoKgpv[1] + ':' + kgpvIndex[1]; + } + videoKgpv[0] = splitKgpv[0]; } - videoKgpv[0] = splitKgpv[0]; + kgpv = videoKgpv.join('@'); } - kgpv = videoKgpv.join('@'); } return kgpv; } diff --git a/modules/userId/eids.js b/modules/userId/eids.js index 27665de4136..e28e62a4582 100644 --- a/modules/userId/eids.js +++ b/modules/userId/eids.js @@ -8,7 +8,10 @@ const USER_IDS_CONFIG = { // intentIqId 'intentIqId': { source: 'intentiq.com', - atype: 1 + atype: 1, + getValue: function(data) { + return data.RESULT; + } }, // pubCommonId @@ -137,7 +140,10 @@ const USER_IDS_CONFIG = { // zeotapIdPlus 'IDP': { source: 'zeotap.com', - atype: 1 + atype: 1, + getValue: function getValue(data) { + return data.id; + } }, // haloId