Skip to content

Commit

Permalink
add pbjs version to bid request (#6879)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rok Sušnik authored May 31, 2021
1 parent 262e27c commit 8183e85
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
8 changes: 8 additions & 0 deletions modules/outbrainBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ export const spec = {
imp: imps,
bcat: bcat,
badv: badv,
ext: {
prebid: {
channel: {
name: 'pbjs',
version: '$prebid.version$'
}
}
}
};

if (test) {
Expand Down
18 changes: 16 additions & 2 deletions test/spec/modules/outbrainBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,14 @@ describe('Outbrain Adapter', function () {
request: JSON.stringify(expectedNativeAssets)
}
}
]
],
ext: {
prebid: {
channel: {
name: 'pbjs', version: '$prebid.version$'
}
}
}
}
const res = spec.buildRequests([bidRequest], commonBidderRequest)
expect(res.url).to.equal('https://bidder-url.com')
Expand Down Expand Up @@ -244,7 +251,14 @@ describe('Outbrain Adapter', function () {
]
}
}
]
],
ext: {
prebid: {
channel: {
name: 'pbjs', version: '$prebid.version$'
}
}
}
}
const res = spec.buildRequests([bidRequest], commonBidderRequest)
expect(res.url).to.equal('https://bidder-url.com')
Expand Down

0 comments on commit 8183e85

Please sign in to comment.