Skip to content

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

@jwrosewell

Description

@jwrosewell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions