OneKey-Network / OneKey-implementation

2 stars 1 forks source link

Prebid "bidWon" event does not contain PAF object #181

Open jwrosewell opened 2 years ago

jwrosewell commented 2 years ago

When the bidWon event is fired the bid.meta.paf property is undefined and the downstream logic to register the transmission response is not available. See the following code snippet.

            // Generate and store the PAF Audit Log
            // once the winner is elected.
            pbjs.onEvent("bidWon", bid => {
                let pafObj = bid.meta.paf;
                if (pafObj === undefined) {
                    return;
                }
                PAF.queue.push(() => {
                    PAF.registerTransmissionResponse({
                        prebidTransactionId: bid.transactionId,
                        adUnitCode: bid.adUnitCode,
                        contentId: pafObj.contentId
                    }, pafObj.transmission);
                });
            });

This might relate to the demo configuration rather than the demo code.

RomainLofaso commented 2 years ago

Hello @jwrosewell,

For now, both adapters enabled in PrebidJS (Criteo and OpenX) in the demo website don't send properly their transmission responses. That is why this handler doesn't provide the paf object. Part of the R&D of Criteo is currently finishing the integration of our pipeline to make it works.

We will keep you up to date.

Thanks, Romain