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

Rubicon Bid Adapter : ensure all query parameters follow camelCase convention #12612

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nassimlounadi
Copy link

@nassimlounadi nassimlounadi commented Jan 3, 2025

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • Other

Description of change

Switching bidonmultiformat to bidOnMultiFormat to adhere to the camelCase convention.

@patmmccann
Copy link
Collaborator

@nassimlounadi do you work at Magnite?

Would this change break existing users?

@robertrmartinez
Copy link
Collaborator

Hey @nassimlounadi

Not sure there really is a "standard" for bidder params in prebid. I understand the idea to do so but we have a lot of users already using the other way so I do not think this is a change our company would want to make.

Maybe in a future major release - though I doubt it.

@patmmccann patmmccann closed this Jan 4, 2025
@patmmccann patmmccann reopened this Jan 4, 2025
@patmmccann
Copy link
Collaborator

@robertrmartinez would you be open to supporting either specification?

Copy link
Collaborator

@patmmccann patmmccann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently this is breaking

@@ -1107,7 +1107,7 @@ export function classifiedAsVideo(bidRequest) {
// based on whether or not there is a video object defined in the params
// Given this legacy implementation, other code depends on params.video being defined

// if it's bidonmultiformat, we don't care of the video object
// if it's bidOnMultiFormat, we don't care of the video object
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting the param below this line was already camel case, possible bug @robertrmartinez ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah its a locally declared variable so its fine

let isBidOnMultiformat = typeof deepAccess(bidRequest, `params.bidonmultiformat`) !== 'undefined';

@@ -214,7 +214,7 @@ export const converter = ortbConverter({
bidRequest.params.position === 'btf' && imp.video && (imp.video.pos = 3);
delete imp.ext?.prebid?.storedrequest;

if (bidRequest.params.bidonmultiformat === true && bidRequestType.length > 1) {
if (bidRequest.params.bidOnMultiFormat === true && bidRequestType.length > 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to change this to handle both expressions to not break other people

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants