bidResponseFilter: read mediaType from bid, not bid.meta#14415
bidResponseFilter: read mediaType from bid, not bid.meta#14415anastasiiapankivFS wants to merge 2 commits intoprebid:masterfrom
Conversation
Pull Request Test Coverage Report for Build 21707090861Details
💛 - Coveralls |
|
docs fix addressed in prebid/prebid.github.io#6426 |
patmmccann
left a comment
There was a problem hiding this comment.
I'm confused here, doesn't core just already filter on response mediatype matching the ad unit? I thought the goal was to allow pubs to filter IBV, which should have meta.mediaType as video and regular mediaType as banner
|
marking do not merge so we can discuss; i am not clear on the intention here |
|
Hello @patmmccann I am attempting to utilize We currently receive approximately 0.05% of total daily bid responses with a The objective is to filter out bid responses that contain media types not defined in the ad unit configuration. During testing, we discovered that enabling media type filtering in If this is not a use case this module is intended for, could you please advice what is the right place for such logic. |
|
The initial behavior was specifically designed to address the IBV scenario, where a banner request returns a video creative but the bid is still classified as mediaType: banner. The bidResponseFilter module compares bid.mediaType against bid.meta.mediaType, which in the case of an IBV bid would be video while bid.mediaType remains banner. Not all adapters support this, but appears to be a standard pattern looking at a few of them. I might be wrong here, but from what I can see, core does validate whether a bid is well-formed but doesn't actually validate it against the ad unit's declared mediaTypes. Maybe that could be the right place to do such check. |
|
Thanks for the clarification @antoine-ga. I will open a separate PR with mediaType enforcement incorporated in the core logic. If we wanted to disable in-banner video ads as well using bidResponseFilter, how would we do that? We are currently facing a situation that valid banner bids that do not have bid.meta.mediaType are rejected (Please see screen recording mentioned above for more details). Could you please advice what needs to be changed in configuration to only reject in-banner video but keep valid banner bids? |
|
@anastasiiapankivFS we agree that the scenario you describe, " If a bid with mediaType = video wins, it triggers an adRenderFailed event with the message Cannot render video ad without a renderer." should be possible to filter out easily, but should actually be in core, as no one wants to let something win that prebid should easily be able to detect will fail in this way. in addition we don't want to get rid of the ibv filtering capability based on the meta mediatype |
|
@patmmccann @antoine-ga Would you be able to take a look #14468? Thanks |
|
@anastasiiapankivFS Sure, should we close this one now that we have the Core PR opened? |
Type of change
Description of change
bidResponseFilterreadsmediaTypefrombid.meta, butmediaTypeis defined onbidlevel. As result valid bids are rejected when mediaType enforcement is enabled.Note: Documentation suggest that it's possible to configure enforcement per mediaType with is not true.