Skip to content

Commit

Permalink
Added gptSlotCode field to the auction logs object. Updated master fr…
Browse files Browse the repository at this point in the history
…om the upstream (#7257)

Co-authored-by: Phaneendra Hegde <[email protected]>
  • Loading branch information
pnh-pubx and pnhegde authored Aug 3, 2021
1 parent 9eed220 commit 369f1d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/pubxaiAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function mapBidResponse(bidResponse, status) {
if (typeof bidResponse !== 'undefined') {
let bid = {
adUnitCode: bidResponse.adUnitCode,
gptSlotCode: utils.getGptSlotInfoForAdUnitCode(bidResponse.adUnitCode).gptSlot || null,
auctionId: bidResponse.auctionId,
bidderCode: bidResponse.bidder,
cpm: bidResponse.cpm,
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/pubxaiAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ describe('pubxai analytics adapter', function() {
'bidderCode': 'appnexus',
'bidId': '248f9a4489835e',
'adUnitCode': '/19968336/header-bid-tag-1',
'gptSlotCode': utils.getGptSlotInfoForAdUnitCode('/19968336/header-bid-tag-1').gptSlot || null,
'auctionId': 'bc3806e4-873e-453c-8ae5-204f35e923b4',
'sizes': '300x250',
'renderStatus': 2,
Expand Down Expand Up @@ -582,6 +583,7 @@ describe('pubxai analytics adapter', function() {
let expectedAfterBidWon = {
'winningBid': {
'adUnitCode': '/19968336/header-bid-tag-1',
'gptSlotCode': utils.getGptSlotInfoForAdUnitCode('/19968336/header-bid-tag-1').gptSlot || null,
'auctionId': 'bc3806e4-873e-453c-8ae5-204f35e923b4',
'bidderCode': 'appnexus',
'bidId': '248f9a4489835e',
Expand Down

0 comments on commit 369f1d3

Please sign in to comment.