Adagio Bid Adapter: Add full ORTB2 device data to request payload
Type of change
- [x] Feature
- [x] Updated bidder adapter
Description of change
This PR enhances the Adagio bid request by incorporating device data from the global ORTB2 object. Existing values in the Adagio device object won't be replaced (e.g. language, userAgent, js).
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 Adagio’s users to benefit from device object improvements.
Other information
cc: @osazos
Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:
-
modules/adagioBidAdapter.jshas 9 duplicated lines withmodules/insticatorBidAdapter.js -
modules/adagioBidAdapter.jshas 18 duplicated lines withmodules/mediakeysBidAdapter.js -
modules/adagioBidAdapter.jshas 18 duplicated lines withmodules/mediakeysBidAdapter.js -
modules/adagioBidAdapter.jshas 25 duplicated lines withmodules/mediakeysBidAdapter.js
Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀
Hi @osazos any updates on this? Thanks.
@osazos would you like assistance explaining the changes?
@osazos can be reach in prebid slack.