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

Sovrn Adapter has a type mismatch with the bidfloor parameter #3514

Open
premesh opened this issue Feb 20, 2024 · 11 comments
Open

Sovrn Adapter has a type mismatch with the bidfloor parameter #3514

premesh opened this issue Feb 20, 2024 · 11 comments

Comments

@premesh
Copy link

premesh commented Feb 20, 2024

If the bidfloor parameter is used as defined in the prebid.js docs but sent to PBS you get the following error message
image

Looks like the PBS Java Sovrn Adapter is looking for a number
https://github.com/prebid/prebid-server-java/blob/70f5b9ad65796559d3ff884fe917dd41bfaa786b/src/main/resources/static/bidder-params/sovrn.json#L15

While the PBJS Sovrn Adapter expects a string
https://docs.prebid.org/dev-docs/bidders/sovrn.html
image

@bretg
Copy link
Contributor

bretg commented Feb 20, 2024

@ikagotso - can you take a look at this? The best solution, IMO, is to remove the bidfloor parameter entirely. Your adapter should be using the Prebid Server-wide floors feature.

@bretg
Copy link
Contributor

bretg commented Feb 23, 2024

@bretg bretg moved this from Triage to Research in Prebid Server Prioritization Feb 23, 2024
@SyntaxNode
Copy link
Contributor

Friendly ping @ikagotso, have you had time to look at this issue?

@ikagotso
Copy link
Contributor

@SyntaxNode
We have started discussions around this.

@ikagotso
Copy link
Contributor

We have opened a PR with a fix.

@ikagotso
Copy link
Contributor

PR to fix this is already merged.

@bretg
Copy link
Contributor

bretg commented Mar 18, 2024

Which PR was is @ikagotso ? I don't see it either PBS-Go or PBS-Java repo

@ikagotso
Copy link
Contributor

@bretg
Copy link
Contributor

bretg commented Mar 18, 2024

Thanks @ikagotso -- that may be helpful in the long run, but publishers don't upgrade Prebid.js often so the mismatch is going to persist for years in the wild. You're going to want to update your server-side adapter accept either string or number since Prebid Servers are upgraded much more frequently by host companies.

This can be done in in the JSON file https://github.com/prebid/prebid-server/blob/master/static/bidder-params/sovrn.json and by writing a unit test to make sure the adapter itself handles the scenario.

@bretg
Copy link
Contributor

bretg commented Aug 23, 2024

@ikagotso - this is still an issue in both PBS-Go and PBS-Java. Please fix your adapter:

  1. Remove the bidfloor parameter entirely.

OR

  1. Update the parameter schema to accept bidfloor as either string or number
  2. Update adapter to convert the bidfloor to whatever your endpoint expects

@bretg bretg moved this from Research to Ready for Dev - maintainer in Prebid Server Prioritization Aug 23, 2024
@ikagotso
Copy link
Contributor

@bretg
Sorry for delay. We will start working on the fix in a short while.

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

No branches or pull requests

4 participants