Skip to content

Commit

Permalink
Improve Piximedia Adapter (prebid#4026)
Browse files Browse the repository at this point in the history
* Add Piximedia adapter

* Add piximediaBidAdapter.md

* Improve protocol of Piximedia bidder

* Add Piximedia adapter

* Fix piximediaBidAdapter_spec.js style

* Fix Piximedia adapter

* Revert "Fix Piximedia adapter"

This reverts commit 10a10d6.

* Impprove Piximedia adapter

* Remove CR at end of file

* Add test for pbsizes in Piximedia adapter
  • Loading branch information
christopher-allene-piximedia authored and sa1omon committed Nov 28, 2019
1 parent 8c8cf32 commit d813087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/piximediaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const spec = {
timestamp: utils.timestamp(),
pver: '1.0',
pbparams: JSON.stringify(bidRequest.params),
pbsizes: JSON.stringify(parseSized),
pbwidth: arrSize[0],
pbheight: arrSize[1],
pbbidid: bidRequest.bidId,
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/piximediaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe('piximediaAdapterTest', function() {
it('bidRequest data', function() {
const requests = spec.buildRequests(bidRequests);
expect(typeof requests[0].data.timestamp).to.equal('number');
expect(requests[0].data.pbsizes).to.equal('["300x250"]');
expect(requests[0].data.pver).to.equal('1.0');
expect(requests[0].data.pbparams).to.equal(JSON.stringify(bidRequests[0].params));
expect(requests[0].data.pbwidth).to.equal('300');
Expand Down

0 comments on commit d813087

Please sign in to comment.