From 838ede577cd6de17b1f7ed8faac673331ecb32c9 Mon Sep 17 00:00:00 2001 From: lksharma Date: Wed, 17 Feb 2021 02:05:06 -0500 Subject: [PATCH] added prebid version support to ixdiag (#6292) --- modules/ixBidAdapter.js | 3 ++- test/spec/modules/ixBidAdapter_spec.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ixBidAdapter.js b/modules/ixBidAdapter.js index 48a2e741c5a..699209a12e9 100644 --- a/modules/ixBidAdapter.js +++ b/modules/ixBidAdapter.js @@ -511,7 +511,8 @@ function buildIXDiag(validBidRequests) { nu: 0, ou: 0, allU: 0, - ren: false + ren: false, + version: '$prebid.version$' }; // create ad unit map and collect the required diag properties diff --git a/test/spec/modules/ixBidAdapter_spec.js b/test/spec/modules/ixBidAdapter_spec.js index fca3f8f992e..354898207a5 100644 --- a/test/spec/modules/ixBidAdapter_spec.js +++ b/test/spec/modules/ixBidAdapter_spec.js @@ -1496,6 +1496,7 @@ describe('IndexexchangeAdapter', function () { expect(diagObj.ren).to.equal(false); expect(diagObj.mfu).to.equal(1); expect(diagObj.allU).to.equal(1); + expect(diagObj.version).to.equal('$prebid.version$'); }); }); });