Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Net-burst opened this issue Oct 22, 2024 · 6 comments

Comments

@Net-burst
Copy link

Net-burst commented Oct 22, 2024

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.

@justadreamer
Copy link
Contributor

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;

@bsardo
Copy link
Collaborator

bsardo commented Oct 23, 2024

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 bsardo moved this from Triage to Research in Prebid Server Prioritization Nov 1, 2024
@Net-burst
Copy link
Author

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

@Net-burst
Copy link
Author

PBS-Java PR: prebid/prebid-server-java#3538

@bretg
Copy link
Contributor

bretg commented Nov 19, 2024

done in PBS-Java 3.15

@bretg bretg added the PBS-Go label Nov 19, 2024
@bretg bretg moved this from Research to Ready for Dev in Prebid Server Prioritization Nov 19, 2024
@bretg
Copy link
Contributor

bretg commented Dec 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for Dev
Development

No branches or pull requests

4 participants