From fc6e7a3ae566a4dbd17f6670ef76af3dafd33efe Mon Sep 17 00:00:00 2001 From: Patrick Loughrey Date: Wed, 29 Sep 2021 10:26:25 -0400 Subject: [PATCH] Rubicon Bid Adapter: bugfix for copying params.video.language (#7470) * Fixed merge branch issue * Fixed merge branch issue Co-authored-by: Patrick Loughrey --- modules/rubiconBidAdapter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/rubiconBidAdapter.js b/modules/rubiconBidAdapter.js index 8e3733af947..501ccc98e33 100644 --- a/modules/rubiconBidAdapter.js +++ b/modules/rubiconBidAdapter.js @@ -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]) + } } }); }