Skip to content

Commit

Permalink
Updating Auction Init Pick for timestamp + Test update (#3223)
Browse files Browse the repository at this point in the history
* Updating Auction Init Pick for timestamp + Test update

* Updating Auction Init to include  once again + Rubicon Analytics update accordingly

* Removing  from auction init events in favor of old
  • Loading branch information
Robert Ray Martinez III authored and jaiminpanchal27 committed Oct 30, 2018
1 parent 67b24c9 commit 4c085b8
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/auction.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function newAuction({adUnits, adUnitCodes, callback, cbTimeout, labels})
function getProperties() {
return {
auctionId: _auctionId,
auctionStart: _auctionStart,
timestamp: _auctionStart,
auctionEnd: _auctionEnd,
auctionStatus: _auctionStatus,
adUnits: _adUnits,
Expand Down
54 changes: 52 additions & 2 deletions test/spec/modules/rubiconAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,59 @@ const MOCK = {
[BID2.adUnitCode]: BID2.adserverTargeting
},
AUCTION_INIT: {
'timestamp': 1519767010567,
'auctionId': '25c6d7f5-699a-4bfc-87c9-996f915341fa',
'timeout': 3000
'timestamp': 1519767010567,
'auctionStatus': 'inProgress',
'adUnits': [ {
'code': '/19968336/header-bid-tag1',
'sizes': [[640, 480]],
'bids': [ {
'bidder': 'rubicon',
'params': {
'accountId': 1001, 'siteId': 113932, 'zoneId': 535512
}
} ],
'transactionId': 'ca4af27a-6d02-4f90-949d-d5541fa12014'
}
],
'adUnitCodes': ['/19968336/header-bid-tag1'],
'bidderRequests': [ {
'bidderCode': 'rubicon',
'auctionId': '25c6d7f5-699a-4bfc-87c9-996f915341fa',
'bidderRequestId': '1be65d7958826a',
'bids': [ {
'bidder': 'rubicon',
'params': {
'accountId': 1001, 'siteId': 113932, 'zoneId': 535512
},
'mediaTypes': {
'banner': {
'sizes': [[640, 480]]
}
},
'adUnitCode': '/19968336/header-bid-tag1',
'transactionId': 'ca4af27a-6d02-4f90-949d-d5541fa12014',
'sizes': [[640, 480]],
'bidId': '2ecff0db240757',
'bidderRequestId': '1be65d7958826a',
'auctionId': '25c6d7f5-699a-4bfc-87c9-996f915341fa',
'src': 'client',
'bidRequestsCount': 1
}
],
'auctionStart': 1519767010567,
'timeout': 3000,
'refererInfo': {
'referer': 'http://www.test.com/page.html', 'reachedTop': true, 'numIframes': 0, 'stack': ['http://www.test.com/page.html']
}
}
],
'bidsReceived': [],
'winningBids': [],
'timeout': 3000,
'config': {
'accountId': 1001, 'endpoint': '//localhost:9999/event'
}
},
BID_REQUESTED: {
'bidder': 'rubicon',
Expand Down

0 comments on commit 4c085b8

Please sign in to comment.