diff --git a/modules/rubiconBidAdapter.js b/modules/rubiconBidAdapter.js index 025782925ae..096d49e51a3 100644 --- a/modules/rubiconBidAdapter.js +++ b/modules/rubiconBidAdapter.js @@ -203,7 +203,7 @@ export const spec = { let modules = (getGlobal()).installedModules; if (modules && (!modules.length || modules.indexOf('rubiconAnalyticsAdapter') !== -1)) { - utils.deepSetValue(data, 'ext.prebid.analytics', [{ 'adapter': 'rubicon', 'client-analytics': true }]); + utils.deepSetValue(data, 'ext.prebid.analytics', {'rubicon': {'client-analytics': true}}); } let bidFloor; diff --git a/test/spec/modules/rubiconBidAdapter_spec.js b/test/spec/modules/rubiconBidAdapter_spec.js index 83d6f5738c2..bf6d060caee 100644 --- a/test/spec/modules/rubiconBidAdapter_spec.js +++ b/test/spec/modules/rubiconBidAdapter_spec.js @@ -1704,7 +1704,7 @@ describe('the rubicon adapter', function () { let payload = request.data; expect(payload.ext.prebid.analytics).to.not.be.undefined; - expect(payload.ext.prebid.analytics).to.deep.equal([{'adapter': 'rubicon', 'client-analytics': true}]); + expect(payload.ext.prebid.analytics).to.deep.equal({'rubicon': {'client-analytics': true}}); }); it('should pass client analytics to PBS endpoint if rubicon analytics adapter is included', function () { @@ -1714,7 +1714,7 @@ describe('the rubicon adapter', function () { let payload = request.data; expect(payload.ext.prebid.analytics).to.not.be.undefined; - expect(payload.ext.prebid.analytics).to.deep.equal([{'adapter': 'rubicon', 'client-analytics': true}]); + expect(payload.ext.prebid.analytics).to.deep.equal({'rubicon': {'client-analytics': true}}); }); it('should not pass client analytics to PBS endpoint if rubicon analytics adapter is not included', function () {