diff --git a/modules/equativBidAdapter.js b/modules/equativBidAdapter.js index 0f6648fc509..d1eaf9ca37e 100644 --- a/modules/equativBidAdapter.js +++ b/modules/equativBidAdapter.js @@ -339,6 +339,7 @@ export const converter = ortbConverter({ if (pid) { deepSetValue(req, 'user.buyeruid', pid); } + deepSetValue(req, 'ext.equativprebidjsversion', '$prebid.version$'); req = updateFeedbackData(req); diff --git a/test/spec/modules/equativBidAdapter_spec.js b/test/spec/modules/equativBidAdapter_spec.js index 32f5c05077f..8ff97ec606d 100644 --- a/test/spec/modules/equativBidAdapter_spec.js +++ b/test/spec/modules/equativBidAdapter_spec.js @@ -473,6 +473,14 @@ describe('Equativ bid adapter tests', () => { getDataFromLocalStorageStub.restore(); }); + it('should pass prebid version as ext.equativprebidjsversion param', () => { + const request = spec.buildRequests( + DEFAULT_BANNER_BID_REQUESTS, + DEFAULT_BANNER_BIDDER_REQUEST + )[0]; + expect(request.data.ext.equativprebidjsversion).to.equal('$prebid.version$'); + }); + it('should build a video request properly under normal circumstances', () => { // ASSEMBLE if (FEATURES.VIDEO) {