Skip to content

Commit

Permalink
JustPremium: fix for endpoint url (prebid#3078)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlosinski authored and Pedro López Jiménez committed Mar 18, 2019
1 parent 94455db commit 15f40c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions modules/justpremiumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { registerBidder } from 'src/adapters/bidderFactory'
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.2'
const ENDPOINT_URL = '//pre.ads.justpremium.com/v/2.0/t/xhr'
const JP_ADAPTER_VERSION = '1.3'
const pixels = []
const TRACK_START_TIME = Date.now()
let LAST_PAYLOAD = {}
Expand Down Expand Up @@ -142,7 +142,7 @@ function track (data, payload, type) {

let duration = Date.now() - TRACK_START_TIME

const pixelUrl = `${getTopWindowLocation().protocol}//emea-v3.tracking.justpremium.com/tracking.gif?rid=&sid=&uid=&vr=&
const pixelUrl = `//emea-v3.tracking.justpremium.com/tracking.gif?rid=&sid=&uid=&vr=&
ru=${encodeURIComponent(pubUrl)}&tt=&siw=&sh=${payload.sh}&sw=${payload.sw}&wh=${payload.wh}&ww=${payload.ww}&an=&vn=&
sd=&_c=&et=&aid=&said=&ei=&fc=&sp=&at=bidder&cid=&ist=&mg=&dl=&dlt=&ev=&vt=&zid=${payload.id}&dr=${duration}&di=&pr=&
cw=&ch=&nt=&st=&jp=${encodeURIComponent(JSON.stringify(jp))}&ty=${type}`
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/justpremiumBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('justpremium adapter', function () {
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.2')
expect(jpxRequest.version.jp_adapter).to.equal('1.3')
})
})

Expand Down

0 comments on commit 15f40c4

Please sign in to comment.