Skip to content

Commit

Permalink
use auctionId instead of requestId (#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiminpanchal27 authored and Matt Kendall committed Dec 19, 2017
1 parent 6b21369 commit a936adb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/adomikAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let adomikAdapter = Object.assign(adapter({}),
track({ eventType, args }) {
switch (eventType) {
case auctionInit:
adomikAdapter.currentContext.id = args.requestId
adomikAdapter.currentContext.id = args.auctionId
adomikAdapter.currentContext.timeout = args.timeout
if (args.config.bidwonTimeout !== undefined && typeof args.config.bidwonTimeout === 'number') {
bidwonTimeout = args.config.bidwonTimeout;
Expand Down
4 changes: 2 additions & 2 deletions test/spec/modules/adomikAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Adomik Prebid Analytic', function () {
height: 10,
statusMessage: 'Bid available',
adId: '1234',
requestId: '',
auctionId: '',
responseTimestamp: 1496410856397,
requestTimestamp: 1496410856295,
cpm: 0.1,
Expand All @@ -58,7 +58,7 @@ describe('Adomik Prebid Analytic', function () {
});

// Step 1: Send init auction event
events.emit(constants.EVENTS.AUCTION_INIT, {config: initOptions, requestId: 'test-test-test', timeout: 3000});
events.emit(constants.EVENTS.AUCTION_INIT, {config: initOptions, auctionId: 'test-test-test', timeout: 3000});

expect(adomikAnalytics.currentContext).to.deep.equal({
uid: '123456',
Expand Down

0 comments on commit a936adb

Please sign in to comment.