Skip to content

Commit

Permalink
Merge pull request #11 from harman-goei/update-examples
Browse files Browse the repository at this point in the history
fix(pgid, pageURL, refererURL): APPS-11501: Remove pgid, pageURL, ref…
  • Loading branch information
Harman Goei committed May 18, 2016
2 parents 67d423d + c7e3485 commit 5aec6e3
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/adapters/openx_neo.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,9 @@ var OpenxAdapter = function OpenxAdapter(options) {
function setGlobalOptionsFromBids(bids) {
var opts = options || {};
for (let bid of bids) {
if (bid.params.pageURL) {
opts.pageURL = bid.params.pageURL;
}

if (bid.params.refererURL) {
opts.refererURL = bid.params.refererURL;
}

if (bid.params.delDomain) {
opts.delDomain = bid.params.delDomain;
}

if (bid.params.pgid) {
opts.pgid = bid.params.pgid;
}
}
return opts;
}
Expand Down Expand Up @@ -235,8 +223,7 @@ var OpenxAdapter = function OpenxAdapter(options) {

buildRequest(bids, {
ju: currentURL,
jr: opts.refererURL && encodeURIComponent(opts.refererURL) || currentURL,
pgid: opts.pgid,
jr: currentURL,
ch: document.charSet || document.characterSet,
res: `${screen.width}x${screen.height}x${screen.colorDepth}`,
ifr: isIfr,
Expand Down

0 comments on commit 5aec6e3

Please sign in to comment.