Skip to content

Commit

Permalink
Serverbid: Updated smartsync urls, removed oft-media alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrimes committed Sep 18, 2017
1 parent 0eebe2b commit ed01ff4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions modules/serverbidBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import * as utils from 'src/utils';
import { ajax } from 'src/ajax';
import adaptermanager from 'src/adaptermanager';

const ServerBidAdapter = function ServerBidAdapter() {
var ServerBidAdapter;
ServerBidAdapter = function ServerBidAdapter() {
const baseAdapter = new Adapter('serverbid');

const CONFIG = {
Expand All @@ -15,7 +16,7 @@ const ServerBidAdapter = function ServerBidAdapter() {
},
'connectad': {
'BASE_URI': 'https://i.connectad.io/api/v2',
'SMARTSYNC_BASE_URI': 'https://s.connectad.io/ss'
'SMARTSYNC_BASE_URI': 'https://s.zkcdn.net/ss'
}
};

Expand Down Expand Up @@ -186,9 +187,10 @@ const ServerBidAdapter = function ServerBidAdapter() {

// Export the `callBids` function, so that Prebid.js can execute
// this function when the page asks to send out bid requests.
return {
callBids: baseAdapter.callBids
};
return Object.assign(this, {
callBids: baseAdapter.callBids,
setBidderCode: baseAdapter.setBidderCode
});
};

ServerBidAdapter.createNew = function() {
Expand All @@ -197,6 +199,5 @@ ServerBidAdapter.createNew = function() {

adaptermanager.registerBidAdapter(new ServerBidAdapter(), 'serverbid');
adaptermanager.aliasBidAdapter('serverbid', 'connectad');
adaptermanager.aliasBidAdapter('serverbid', 'oft-media');

module.exports = ServerBidAdapter;

0 comments on commit ed01ff4

Please sign in to comment.