You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the standard. oRTB spec actually prescribes that device.(w|h) is the physical size of the screen in pixels, not browser window size
Alternative
Remove this code from the src/fpd/enrichment.js completely and let FPD module / RTD submodules take care of this.
Other considerations
(can be extracted into a separate issue)
Given oRTB spec literally says "physical size of the screen in pixels" - perhaps it makes more sense to set it in physical pixels, not logical aka CSS pixels? Then it would be:
devicePixelRatio is usually more than 1 on retina and HD displays. Thus it is desirable to either satisfy the spec or make it more precise if the industry expects device.(w|h) value to be expressed in CSS pixels.
Type of issue
enhancement
Description
The proposed change is to replace these lines in
src/fpd/enrichment.js
:with
Motivation
Alternative
Remove this code from the
src/fpd/enrichment.js
completely and let FPD module / RTD submodules take care of this.Other considerations
(can be extracted into a separate issue)
Given oRTB spec literally says "physical size of the screen in pixels" - perhaps it makes more sense to set it in physical pixels, not logical aka CSS pixels? Then it would be:
devicePixelRatio
is usually more than 1 on retina and HD displays. Thus it is desirable to either satisfy the spec or make it more precise if the industry expects device.(w|h) value to be expressed in CSS pixels.cc: thanks @patmmccann and @BohdanVV for raising this point as part of this PR review comment #12005 (comment)
The text was updated successfully, but these errors were encountered: