Rise Bid Adapter: Add ORTB2 device data to request payload #12017
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of change
Description of change
This PR enhances the Rise bid request by incorporating device data from the global ORTB2 object.
The device object has previously been populated by simplistic parsers, if at all, and was inaccurate as a result. Prebid now benefits from RTD modules such as 51Degrees that enrich all the device object fields including Apple iPhone model category and device ID. The PR enables Rise's users to benefit from the device object.
In the spirit of other "generate" functions a
generateDeviceParams
function has been introduced - it serves to encapsulate the extraction of the device data from the upstream source and any customizations that might be needed. The device data seems to be added into various parts of the request, such asrequest.data.bids[n].sua
,request.data.params.ua
,request.data.params.device_type
, and similar fields. We have consolidated all the device data under therequest.data.device
keypath. Please let us know if this keypath works or should a different one be used, s.a.request.data.params.device
, or perhaps fields of thedevice
object must be all copied underrequest.data.params
.Other information
cc: @lasloche