Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
from20020516 committed Feb 3, 2022
1 parent eb50ab3 commit 3123d93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/fluctAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const convertReplicatedAdUnit = (_adUnit, adUnits = cache.adUnits, slots
} catch (error) {
console.error(error, JSON.stringify({ adUnit, adUnitPath, adUnits, slots }))
}
debugger
return adUnit
}

Expand Down Expand Up @@ -108,6 +109,7 @@ let fluctAnalyticsAdapter = Object.assign(
let auctionEndEvent = args
let { adUnits, adUnitCodes, auctionId, bidsReceived, noBids } = auctionEndEvent
Object.assign(cache.auctions[auctionId], auctionEndEvent, { aidSuffix: isBrowsiId(auctionId) ? generateUUID() : undefined })
debugger
cache.adUnits.push(...adUnits.map(adUnit => convertReplicatedAdUnit(adUnit)))

let prebidWonBidRequestIds = adUnitCodes.map(adUnitCode =>
Expand Down Expand Up @@ -161,7 +163,10 @@ let fluctAnalyticsAdapter = Object.assign(
/** @type {(auctionId: string) => void} */
const sendMessage = (auctionId) => {
let { adUnitCodes, adUnits, auctionEnd, aidSuffix, auctionStatus, bids } = cache.auctions[auctionId]
debugger

adUnits = cache.adUnits.filter(adUnit => adUnitCodes.includes(adUnit.code))
debugger

const payload = {
auctionId: aidSuffix ? `${auctionId}_${aidSuffix}` : auctionId,
Expand Down

0 comments on commit 3123d93

Please sign in to comment.