diff --git a/modules/justpremiumBidAdapter.js b/modules/justpremiumBidAdapter.js index db15598a0e6..406fc166483 100644 --- a/modules/justpremiumBidAdapter.js +++ b/modules/justpremiumBidAdapter.js @@ -3,6 +3,7 @@ import { getTopWindowLocation } from 'src/utils' const BIDDER_CODE = 'justpremium' const ENDPOINT_URL = getTopWindowLocation().protocol + '//pre.ads.justpremium.com/v/2.0/t/xhr' +const JP_ADAPTER_VERSION = '1.1' const pixels = [] export const spec = { @@ -46,6 +47,11 @@ export const spec = { }; } + payload.version = { + prebid: '$prebid.version$', + jp_adapter: JP_ADAPTER_VERSION + } + const payloadString = JSON.stringify(payload) return { diff --git a/test/spec/modules/justpremiumBidAdapter_spec.js b/test/spec/modules/justpremiumBidAdapter_spec.js index 17961f04c7b..3b74b730044 100644 --- a/test/spec/modules/justpremiumBidAdapter_spec.js +++ b/test/spec/modules/justpremiumBidAdapter_spec.js @@ -50,6 +50,8 @@ describe('justpremium adapter', () => { expect(jpxRequest.c).to.not.equal('undefined') expect(jpxRequest.id).to.equal(adUnits[0].params.zone) expect(jpxRequest.sizes).to.not.equal('undefined') + expect(jpxRequest.version.prebid).to.equal('$prebid.version$') + expect(jpxRequest.version.jp_adapter).to.equal('1.1') }) })