Skip to content

Commit

Permalink
Merge pull request prebid#15 from tej656/master
Browse files Browse the repository at this point in the history
add source field
  • Loading branch information
pnhegde authored Jun 11, 2024
2 parents b973cd5 + 6490a99 commit f0ab6c0
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 @@ -164,6 +164,7 @@ const extractBid = (bidResponse) => {
placementId: bidResponse.params
? deepAccess(bidResponse, 'params.0.placementId')
: null,
source: bidResponse.source || 'null',
};
};

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 @@ -565,6 +565,7 @@ describe('pubxai analytics adapter', () => {
},
placementId: null,
timeToRespond: 267,
source: 'client',
responseTimestamp: 1616654313071,
},
],
Expand Down Expand Up @@ -660,6 +661,7 @@ describe('pubxai analytics adapter', () => {
status: 'rendered',
statusMessage: 'Bid available',
timeToRespond: 267,
source: 'client',
},
auctionDetail: {
adUnitCodes: ['/19968336/header-bid-tag-1'],
Expand Down

0 comments on commit f0ab6c0

Please sign in to comment.