Skip to content

Commit

Permalink
Merge pull request #969 from PubMatic-OpenWrap/hotfix_9.6
Browse files Browse the repository at this point in the history
Hotfix 9.6 - 11 Nov release
  • Loading branch information
kapil-tuptewar authored Nov 11, 2024
2 parents 96aed8e + 87c90cb commit 8432b48
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/pubmaticAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ function gatherPartnerBidsForAdUnitForLogger(adUnit, adUnitId, highestBid, e) {
partnerBids.push({
'pn': adapterName,
'bc': bid.bidderCode || bid.bidder,
'bidid': bid.bidId || bidId,
'origbidid': bid?.bidResponse?.partnerImpId || prebidBidId || bid.bidId || bidId,
'bidid': prebidBidId || bid.bidId || bidId,
'origbidid': bid?.bidResponse?.partnerImpId || bid.bidId || bidId,
'db': bid.bidResponse ? 0 : 1,
'kgpv': getValueForKgpv(bid, adUnitId),
'kgpsv': bid.params && bid.params.kgpv ? getUpdatedKGPVForVideo(bid.params.kgpv, bid.bidResponse) : adUnitId,
Expand Down Expand Up @@ -667,7 +667,6 @@ function executeBidWonLoggerCall(auctionId, adUnitId, isIma) {
pixelURL += '&tst=' + Math.round((new window.Date()).getTime() / 1000);
pixelURL += '&iid=' + enc(wiid);
pixelURL += '&bidid=' + (generatedBidId ? enc(generatedBidId) : enc(winningBidId));
pixelURL += '&origbidid=' + enc(winningBidId);
pixelURL += '&pid=' + enc(profileId);
pixelURL += '&pdvid=' + enc(profileVersionId);
pixelURL += '&slot=' + enc(adUnitId);
Expand All @@ -678,7 +677,7 @@ function executeBidWonLoggerCall(auctionId, adUnitId, isIma) {
pixelURL += '&eg=' + enc(winningBid.bidResponse.bidGrossCpmUSD);
pixelURL += '&kgpv=' + enc(getValueForKgpv(winningBid, adUnitId));
pixelURL += '&rf=' + enc(origAdUnit?.pubmaticAutoRefresh?.isRefreshed ? 1 : 0);
pixelURL += '&origbidid=' + enc(winningBid?.bidResponse?.partnerImpId || winningBid?.bidResponse?.prebidBidId || winningBid.bidId);
pixelURL += '&origbidid=' + enc(winningBid?.bidResponse?.partnerImpId || winningBidId);
pixelURL += '&di=' + enc(winningBid?.bidResponse?.dealId || OPEN_AUCTION_DEAL_ID);
pg && (pixelURL += '&pb=' + enc(pg));

Expand Down

0 comments on commit 8432b48

Please sign in to comment.