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

Set the OpenRTB device dimensions #3336

Merged
merged 4 commits into from
Dec 4, 2018
Merged

Conversation

dbemiller
Copy link
Contributor

This addresses a comment that was left in Prebid Server: prebid/prebid-server#748 (comment)

OpenRTB has a spot for the device width & height, which are useful for some people.

@dbemiller
Copy link
Contributor Author

Unfortunately I can't install the dependencies to run it locally due to #3330 :/.... I'll circle back later to fix these once it's resolved, unless someone who's already got them downloaded has cycles to take it over first :)

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

LGTM

@dbemiller
Copy link
Contributor Author

dbemiller commented Dec 4, 2018

This had a bug in it. w and h were only being added to the request if the config defined a device object already.

This last commit fixed that + added another test for it.

…late w and h even if the config doesnt have that object.
@jsnellbaker jsnellbaker merged commit 9271d36 into master Dec 4, 2018
@dbemiller dbemiller deleted the set-device-dimensions branch December 4, 2018 19:37
loic-talon pushed a commit to onfocusio/Prebid.js that referenced this pull request Dec 19, 2018
* Set the device dimensions if the config didnt do it.

* add unit tests

* Added a regresstion test to catch the bug. The code should still populate w and h even if the config doesnt have that object.
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
* Set the device dimensions if the config didnt do it.

* add unit tests

* Added a regresstion test to catch the bug. The code should still populate w and h even if the config doesnt have that object.
pedrolopezmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Mar 18, 2019
* Set the device dimensions if the config didnt do it.

* add unit tests

* Added a regresstion test to catch the bug. The code should still populate w and h even if the config doesnt have that object.
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.

3 participants