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

RTB House adapter update #2708

Closed
wants to merge 2 commits into from
Closed

RTB House adapter update #2708

wants to merge 2 commits into from

Conversation

piwanczak
Copy link
Contributor

Type of change

  • Bugfix

Description of change

Add support for single bracket sizes array, ex: [300, 250]
next to canon one - [[300, 250]]

  • contact email of the adapter’s maintainer
  • official adapter submission

@bretg
Copy link
Collaborator

bretg commented Jun 11, 2018

@piwanczak - this is simple enough code-wise, but higher level question -- where is this size coming from? Is this size a custom item on your bidder.params or are you inferring that the overall AdUnit.mediaTypes.banner.sizes should display this behavior?

@bretg bretg self-requested a review June 11, 2018 15:24
@bretg bretg self-assigned this Jun 11, 2018
@piwanczak
Copy link
Contributor Author

@bretg the latter one. I'm assuming AdUnit.mediaTypes.banner.sizes should be either be single bracket, two elem array or array of two elem arrays. Fix is based on inconsistent publisher config - sizes could be either of the two.
Is there a trap I'm about to fall into that I'm not seeing? I'll be happy to fix if you think there is a better way to do this.

@bretg
Copy link
Collaborator

bretg commented Jun 18, 2018

@mkendall07 - have we heard of other cases where AdUnit.mediaTypes.banner.sizes is [w,h] rather than [[w,h]]?

The underlying suggestion here is to have the platform convert to double array if only a single array is provided. If this is a common scenario, then having just one adapter cover it doesn't do as much good as the platform converting to the expected form.

@bretg bretg requested a review from mkendall07 June 18, 2018 17:02
@mkendall07
Copy link
Member

mkendall07 commented Jun 18, 2018

The underlying suggestion here is to have the platform convert to double array if only a single array is provided.

prebid core should do this but I don't think it does.
I was going to open an issue for it but figured it take as much time to just fix it. #2738

@harpere
Copy link
Collaborator

harpere commented Jun 20, 2018

@piwanczak #2738, once merged, will fix the inconsistency and you'll be able to depend on a double array [[w,h]]

@bretg
Copy link
Collaborator

bretg commented Jun 21, 2018

So... the implication is that this change shouldn't be needed after #2738 ... would you agree @piwanczak ?

@piwanczak
Copy link
Contributor Author

@bretg Correct, once #2738 is merged my fix is unnecessary.
Thank you as well as @mkendall07 !
I'll sub the other one and close my pull once #2738 is merged

@harpere
Copy link
Collaborator

harpere commented Jun 22, 2018

@piwanczak #2738 has been merged

@bretg bretg removed their assignment Jun 22, 2018
@bretg
Copy link
Collaborator

bretg commented Jun 22, 2018

Good news. Closing.

@bretg bretg closed this Jun 22, 2018
@piwanczak
Copy link
Contributor Author

Thank you!

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.

4 participants