prebid / prebid-server

Open-source solution for running real-time advertising auctions in the cloud.
https://prebid.org/product-suite/prebid-server/
Apache License 2.0
433 stars 742 forks source link

Server-side Bidder Parameter Types #2100

Closed bretg closed 2 years ago

bretg commented 2 years ago

Several bidders have made use of a Prebid.js feature called "transformBidParams" that maps client-side datatypes to server-side datatypes. This was useful because javascript is more forgiving about datatypes than the server-side adapters.

For example, at one point a couple years ago, the rubicon client-side adapter docs asked for strings, but the server-side adapter wanted integers. The docs were updated, but there may still be publishers using old params. Other bidders that do similar things include: ix, openx, openweb, and pubmatic.

I believe that the JSON schema can be made to allow multiple datatypes. If it does, then the easy solution here is to just update the server-side bid adapters to do any necessary conversions. I see evidence in PBS-Java that multiple datatypes are supported, but would like to confirm.

bretg commented 2 years ago

closing this in preference to https://github.com/prebid/prebid-server/issues/2106