prebid-server icon indicating copy to clipboard operation
prebid-server copied to clipboard

ORTB Blocking module: lack of media type strictness configuration for `battr`

Open Net-burst opened this issue 1 year ago • 7 comments

There seems to be a design flaw with the blocking module. It was there from the moment the blocking module was initially released, but it became apparent only after we added video and audio support.

The issue lies in the fact that the blocking module doesn't care whether there is a media type object present for the purposes of adding battr. If an account has a configuration for banner/video/audio battr, the module will populate imp[].banner/video/audio.battr even if imp[].banner/video/audio doesn't exist. This would result in the impression potentially having multiple (basically bogus) media types.

OpenRTB blocking module should inject battr only if the media type object (imp[].banner/video/audio) exists. If the object is null, the module shouldn’t create an empty one to house the battr.

Net-burst avatar Oct 22 '24 17:10 Net-burst

Why introduce another config option and not simply fix it? i.e.: if imp[].MEDIA_TYPE is null skip this MEDIA_TYPE and don't inject battr;

justadreamer avatar Oct 23 '24 14:10 justadreamer

Discussed in committee. @bretg do you recall why this module was designed this way? The general opinion here is that this a bug but there is some concern as to whether we should consider this a breaking change such that backwards compatibility should be considered.

bsardo avatar Oct 23 '24 14:10 bsardo

Updated the issue description to reflect that this is indeed a bug.

Net-burst avatar Nov 04 '24 22:11 Net-burst

PBS-Java PR: https://github.com/prebid/prebid-server-java/pull/3538

Net-burst avatar Nov 05 '24 03:11 Net-burst

done in PBS-Java 3.15

bretg avatar Nov 19 '24 21:11 bretg

This is only a priority because supporting video battr was something publishers care about and this issue goes hand-in-hand with that one.

bretg avatar Dec 11 '24 19:12 bretg

PR

postindustria-code avatar Sep 29 '25 11:09 postindustria-code