Skip to content

Commit

Permalink
Update server name.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhhuang-appier committed Mar 7, 2019
1 parent de0ed63 commit 768c9a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/appierAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import adapterManager from '../src/adapterManager';
const utils = require('../src/utils');
const analyticsType = 'endpoint';

const DEFAULT_SERVER = 'https://analytics.c.apx.appier.net.dummy';
const DEFAULT_SERVER = 'https://analytics.prebid.c.appier.net';
const ANALYTICS_VERSION = '0.1.0';
const SEND_TIMEOUT = 200;

Expand Down Expand Up @@ -63,10 +63,10 @@ const cacheManager = {
}
}
},
setCachedHeader(auctionId, newObject) {
setHeaderCache(auctionId, newObject) {
this.cache[auctionId].header = newObject;
},
updateCachedHeader(auctionId, newObject) {
updateHeaderCache(auctionId, newObject) {
Object.assign(this.cache[auctionId].header, newObject)
},
getBidsCache(auctionId, adUnitCode, bidderCode) {
Expand Down Expand Up @@ -145,15 +145,15 @@ const appierAnalyticsAdapter = Object.assign(adapter({DEFAULT_SERVER, analyticsT
return bidResponse.adUnitCode.toLowerCase();
},
initCommonMessageHeader(auction) {
cacheManager.setCachedHeader(auction.auctionId, {
cacheManager.setHeaderCache(auction.auctionId, {
'eventId': auction.auctionId,
'version': ANALYTICS_VERSION,
'affiliateId': analyticsOptions.affiliateId,
'configId': analyticsOptions.configId,
'referrer': window.location.href,
'device': detectDevice(), // TODO: May not need this, use UA at beacon instead?
'sampling': analyticsOptions.options.sampling,
'crSampling': analyticsOptions.options.crSampling, // TODO: need a better name OR remove
'crSampling': analyticsOptions.options.crSampling,
'prebid': '$prebid.version$',
'autoPick': analyticsOptions.options.autoPick,
'timeout': auction.timeout,
Expand Down Expand Up @@ -240,7 +240,7 @@ const appierAnalyticsAdapter = Object.assign(adapter({DEFAULT_SERVER, analyticsT
},
updateAuctionEndMessage(auction) {
// Set finished time
cacheManager.updateCachedHeader(auction.auctionId, {
cacheManager.updateHeaderCache(auction.auctionId, {
'finish': auction.auctionEnd || Date.now()
});
// Update cached auction status
Expand Down

0 comments on commit 768c9a7

Please sign in to comment.