Skip to content

Commit

Permalink
Merge pull request prebid#10 from PubMatic-OpenWrap/DynamicNamespace
Browse files Browse the repository at this point in the history
Merging DynamicNamespace branch into
  • Loading branch information
PubMatic-OpenWrap authored Dec 13, 2017
2 parents dac1582 + c52ad07 commit e741527
Show file tree
Hide file tree
Showing 70 changed files with 1,481 additions and 1,271 deletions.
10 changes: 10 additions & 0 deletions modules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
"appnexusBidAdapter",
"sekindoUMBidAdapter",
"pulsepointBidAdapter",
"audienceNetworkBidAdapter",
"openxBidAdapter",
"rubiconBidAdapter",
"sovrnBidAdapter",
"pubmaticBidAdapter"
]
2 changes: 1 addition & 1 deletion modules/aardvarkBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function requestBids(bidderCode, callbackName, bidReqs) {

adloader.loadScript([
'//' + endpoint + '/', ai, '/', scs.join('_'),
'/aardvark/?jsonp=$$PREBID_GLOBAL$$.', callbackName,
'/aardvark/?jsonp=' + preBidNameSpace + '.', callbackName,
'&rtkreferer=', ref, '&', bidIds.join('&')
].join(''));
}
Expand Down
2 changes: 1 addition & 1 deletion modules/adbladeBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var AdbladeAdapter = function AdbladeAdapter() {
utils.tryAppendQueryString(
BASE_URI,
'callback',
'$$PREBID_GLOBAL$$.adbladeResponse'
preBidNameSpace + '.adbladeResponse'
),
'json',
JSON.stringify(
Expand Down
2 changes: 1 addition & 1 deletion modules/adbundBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function AdBundAdapter() {
};
var param = Object.assign({}, bid.params, info);
param.sizes = JSON.stringify(param.sizes || bid.sizes);
param.callback = '$$PREBID_GLOBAL$$.adbundResponse';
param.callback = preBidNameSpace + '.adbundResponse';
$$PREBID_GLOBAL$$.adbundResponse = _createCallback(bid);
adloader.loadScript(bidAPI + '?' + _stringify(param));
}
Expand Down
2 changes: 1 addition & 1 deletion modules/adformBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function AdformAdapter() {
var bids = params.bids;
var request = [];
var callbackName = '_adf_' + utils.getUniqueIdentifierStr();
var globalParams = [ [ 'adxDomain', 'adx.adform.net' ], ['fd', 1], [ 'url', null ], [ 'tid', null ], [ 'callback', '$$PREBID_GLOBAL$$.' + callbackName ] ];
var globalParams = [ [ 'adxDomain', 'adx.adform.net' ], ['fd', 1], [ 'url', null ], [ 'tid', null ], [ 'callback', preBidNameSpace + '.' + callbackName ] ];

for (i = 0, l = bids.length; i < l; i++) {
bid = bids[i];
Expand Down
2 changes: 1 addition & 1 deletion modules/admediaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var AdmediaAdapter = function AdmediaAdapter() {
request_obj.siteRef = document.referrer;
request_obj.topUrl = utils.getTopWindowUrl();

request_obj.callback = '$$PREBID_GLOBAL$$';
request_obj.callback = preBidNameSpace;
request_obj.callbackId = bid.bidId;

var endpoint = bidderUrl + utils.parseQueryStringParameters(request_obj);
Expand Down
Loading

0 comments on commit e741527

Please sign in to comment.