Skip to content

Commit

Permalink
Rubicon Bid Adapter: bugfix for copying params.video.language (prebid…
Browse files Browse the repository at this point in the history
…#7470)

* Fixed merge branch issue

* Fixed merge branch issue

Co-authored-by: Patrick Loughrey <[email protected]>
  • Loading branch information
2 people authored and Chris Pabst committed Jan 10, 2022
1 parent 60bf931 commit fc6e7a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/rubiconBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,11 @@ function appendSiteAppDevice(data, bidRequest, bidderRequest) {
if (bidRequest.params.video.language) {
['site', 'device'].forEach(function(param) {
if (data[param]) {
data[param].content = Object.assign({language: bidRequest.params.video.language}, data[param].content)
if (param === 'site') {
data[param].content = Object.assign({language: bidRequest.params.video.language}, data[param].content)
} else {
data[param] = Object.assign({language: bidRequest.params.video.language}, data[param])
}
}
});
}
Expand Down

0 comments on commit fc6e7a3

Please sign in to comment.