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

Ensure width and height are integers #3674

Merged
merged 6 commits into from
Mar 26, 2019

Conversation

benjaminclot
Copy link
Contributor

Type of change

  • Bugfix
  • Feature
  • New 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

Some bid responses return width and height as strings. Let's follow the docs and ensure that they indeed are integers, avoiding some strict comparison surprises.

Some bidders (like OpenX) return bid responses with width and height as strings. Let's follow the docs and ensure that they indeed are integers, avoiding some strict comparison surprises.
Copy link
Member

@mkendall07 mkendall07 left a comment

Choose a reason for hiding this comment

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

Need to allow 0x0 or explanation on why it needs to change.

@mkendall07 mkendall07 self-assigned this Mar 25, 2019
@mkendall07 mkendall07 added the needs 2nd review Core module updates require two approvals from the core team label Mar 26, 2019
@jaiminpanchal27 jaiminpanchal27 merged commit cce5b6e into prebid:master Mar 26, 2019
pycnvr pushed a commit to conversant/Prebid.js that referenced this pull request Apr 4, 2019
* Ensure width and height are integers

Some bidders (like OpenX) return bid responses with width and height as strings. Let's follow the docs and ensure that they indeed are integers, avoiding some strict comparison surprises.

* lint

* typo

* Update bidderFactory.js

* Update bidderFactory.js

* Update bidderFactory.js
jacekburys-quantcast pushed a commit to jacekburys-quantcast/Prebid.js that referenced this pull request May 15, 2019
* Ensure width and height are integers

Some bidders (like OpenX) return bid responses with width and height as strings. Let's follow the docs and ensure that they indeed are integers, avoiding some strict comparison surprises.

* lint

* typo

* Update bidderFactory.js

* Update bidderFactory.js

* Update bidderFactory.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants