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

Support bidder-specific device data #4197

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lucor
Copy link

@lucor lucor commented Feb 7, 2025

This PR introduces support for bidder-specific device data.
It merges bidderconfig.ortb2.device fields into request.device, with bidderconfig.ortb2.device taking precedence.
Fixes #4147

This PR introduces support for bidder-specific device data. It merges
bidderconfig.ortb2.device fields into request.device, with
bidderconfig.ortb2.device taking precedence.
Fixes prebid#4147
@lucor lucor marked this pull request as ready for review February 7, 2025 15:15
}

return newDevice, nil
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add device validation before returning it?
Logic should be the same as in func validateDevice(device *openrtb2.Device).
This function is not available here, so copying it is ok.
Also please add a unit test for this.

Copy link
Author

Choose a reason for hiding this comment

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

Added in 7abb2a8

This commit adds device validation logic ported from
endpoints/openrtb2/auction.go
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.

Support bidder-specific device data
2 participants