Skip to content

Commit

Permalink
Merge pull request #7 from openx/fix-publisher-account-id
Browse files Browse the repository at this point in the history
fixed publisherAccountId
  • Loading branch information
hrgui authored Feb 27, 2020
2 parents 82df8e2 + 1a65ea1 commit f0d9abf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/openxAnalyticsAdapter.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import includes from 'core-js/library/fn/array/includes';
import adapter from '../src/AnalyticsAdapter';
import includes from 'core-js/library/fn/array/includes.js';
import adapter from '../src/AnalyticsAdapter.js';
import CONSTANTS from '../src/constants.json';
import adapterManager from '../src/adapterManager';
import adapterManager from '../src/adapterManager.js';

const zlib = require('zlib');
const utils = require('../src/utils');
const utils = require('../src/utils.js');

const urlParam = '';
const analyticsType = 'endpoint';
Expand Down Expand Up @@ -252,7 +252,7 @@ let openxAdapter = Object.assign(adapter({ urlParam, analyticsType }), {
if (eventType === auctionInitConst) {
eventStack[auctionId] = { options: {}, events: [] };
// utils.logInfo('OX: Event Stack updated after AuctionInit', eventStack);
}
}
else if (eventType === bidWonConst) { // && auctionStatus[auctionId] !== 'started'
pushEvent(eventType, info, auctionId);
// utils.logInfo('OX: Bid won called for', auctionId);
Expand Down Expand Up @@ -280,7 +280,7 @@ let openxAdapter = Object.assign(adapter({ urlParam, analyticsType }), {
// utils.logInfo('OX: Deleted Auction Info for auctionId', auctionId);
}, AUCTION_END_WAIT_TIME);
}
}
}
else if (eventType === bidTimeoutConst) {
// utils.logInfo('SA: Bid Timedout for', auctionId);
pushEvent(eventType, info, auctionId);
Expand Down Expand Up @@ -453,7 +453,7 @@ function send(eventType, eventStack, auctionId) {
// utils.logInfo('OX: AuctionId', auctionId);
var data = eventStack[auctionId];
var publisherPlatformId = eventStack[auctionId].options.publisherPlatformId;
var publisherAccountId = eventStack[auctionId].options.publisherPlatformId;
var publisherAccountId = eventStack[auctionId].options.publisherAccountId;
var testCode = eventStack[auctionId].options.testCode;
data['user_agent'] = ua;
data['source_url'] = sourceUrl;
Expand Down

0 comments on commit f0d9abf

Please sign in to comment.