Skip to content

Commit

Permalink
PubMatic adapter avoiding deprecated utils APIs (prebid#4521)
Browse files Browse the repository at this point in the history
* added support for pubcommon, digitrust, id5id

* added support for IdentityLink

* changed the source for id5

* added unit test cases

* changed source param for identityLink

* stoped using getTopWindowUrl

* removed extra white space
  • Loading branch information
pm-harshad-mane authored and jsnellbaker committed Dec 2, 2019
1 parent 415c930 commit 41d1d5d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions modules/pubmaticBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,10 @@ function _parseAdSlot(bid) {
}

function _initConf(refererInfo) {
var conf = {};
conf.pageURL = utils.getTopWindowUrl();
if (refererInfo && refererInfo.referer) {
conf.refURL = refererInfo.referer;
} else {
conf.refURL = '';
}
return conf;
return {
pageURL: (refererInfo && refererInfo.referer) ? refererInfo.referer : window.location.href,
refURL: window.document.referrer
};
}

function _handleCustomParams(params, conf) {
Expand Down

0 comments on commit 41d1d5d

Please sign in to comment.