-
Notifications
You must be signed in to change notification settings - Fork 758
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
Bidder names should be case insensitive #2400
Comments
Discussed in committee:
|
This case-insensitive matching would work for cookie_sync as well as bidding. |
Additional details. The case of the incoming biddercode should be insensitive wherever it's used in a comparison, including:
And the request bidder code is also used in the output:
|
A question came up around metrics. Though we said that in the ORTB response the biddercode should preserve the case that came in on the request, that would change metrics cardinality. There's a proposal to lowercase the biddercodes for metrics. |
Discussed in committee and agreed that the biddercode should be normalized. Up to the developer whether this is lowercase or base adapter case. |
Done in PBS-Java 2.0 |
Discussed the scenario of multiple case structures for a single bidder in committee. The idea is that's an edge case and inconsistent input can result in inconsistent output. The code should do what's easiest. e.g.
Confirmed in the PBS-Java implmentation passing two imps, one which refers to Appnexus, the other to APPNEXUS. bid output
debug/warning output
|
@bretg Thank you for the example. What's your thoughts on what should happen if the same adapter is included twice in the same request?
|
That is invalid JSON -- the same attribute cannot be part of an object twice. |
It's actually valid JSON. JSON is case sensitive so this is seen as two distinct elements in the map. We could:
|
Maybe you meant to make the example have two different cases, but they both wound up 'APPnexus'. |
Doh! Yes. Copy/paste error. I'll go back and edit for my question to make sense.
This is the easiest, so it shall be. |
Dear community,
Right now in Prebid Server, bidder names are in mixed case.
There are many places where bidder name case appeared to be critical.
Every bidder may have different sources of configs including {bidder}.yaml, {bidder}.json, bidder related environment variables and entries in config files like pbs.json and pbs.yaml. This also applies to the
{host}/info/bidders/{bidder}
endpoint and bidder name in auction endpoint inreq.imp[].ext
.We are seeking to increase consistency and simplicity within the system.
The bigger question is if we want to allow case insensitive bidder names or keep them case dependent.
Please share your thoughts.
The text was updated successfully, but these errors were encountered: