Skip to content

Enhancement: Log matched floor rule during requestBidsHook for model training #13822

@pm-kapil-tuptewar

Description

@pm-kapil-tuptewar

Currently, the Price Floor module injects floor-specific data into the bid object using two hooks: requestBidsHook and addBidResponseHook.

On requestBidsHook,
it appends fields such as model_version, model_weight, fetch_status, floor_provider, location, and several others https://github.com/prebid/Prebid.js/blob/master/modules/priceFloors.ts#L462C7-L462C21

On addBidResponseHook,
it adds additional fields like floor_value, floor_rule, floor_rule_value, and related parameters https://github.com/prebid/Prebid.js/blob/master/modules/priceFloors.ts#L965

The challenge is that addBidResponseHook is only triggered if at least one bidder returns a bid. Since the matched rule is important for model training, it would be more reliable to log these values during requestBidsHook. This way, the model can learn which floors are being sent to SSPs and why they might not be bidding on them.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Req

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions