Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Adagio Bid Adapter: Add full ORTB2 device data to request payload

Open jwrosewell opened this issue 1 year ago • 3 comments

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

jwrosewell avatar Jul 19 '24 10:07 jwrosewell

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

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! 🚀

github-actions[bot] avatar Jul 19 '24 10:07 github-actions[bot]

Hi @osazos any updates on this? Thanks.

justadreamer avatar Oct 22 '24 08:10 justadreamer

@osazos would you like assistance explaining the changes?

jwrosewell avatar Oct 22 '24 08:10 jwrosewell

@osazos can be reach in prebid slack.

patmmccann avatar Dec 18 '24 18:12 patmmccann