Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed publisherAccountId #7

Merged
merged 1 commit into from
Feb 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -448,7 +448,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