Skip to content

Commit

Permalink
YIELDONE adapter - add buildRequests payload params (prebid#3611)
Browse files Browse the repository at this point in the history
* added UserSync

* added UserSync Unit Test

* support for multi sizes

* register the adapter as supporting video

* supporting video

* change requestId acquisition method

* fix the parameter name of dealID

* update test parameters

* support instream video

* add test for bidRequest

* add test for interpretResponse

* add test params

* add note to documentaion

* add payload params

* add test

* delete tmax param
  • Loading branch information
kusapan authored and robertrmartinez committed Mar 11, 2019
1 parent c173ab2 commit 16e5e16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/yieldoneBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ export const spec = {
const cb = Math.floor(Math.random() * 99999999999);
const referrer = encodeURIComponent(utils.getTopWindowUrl());
const bidId = bidRequest.bidId;
const unitCode = bidRequest.adUnitCode;
const payload = {
v: 'hb1',
p: placementId,
cb: cb,
r: referrer,
uid: bidId,
uc: unitCode,
t: 'i'
};

Expand Down
5 changes: 5 additions & 0 deletions test/spec/modules/yieldoneBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ describe('yieldoneBidAdapter', function() {
expect(request[0].data.w).to.equal('300');
expect(request[0].data.h).to.equal('250');
});

it('adUnitCode should be sent as uc parameters on any requests', function () {
expect(request[0].data.uc).to.equal('adunit-code1');
expect(request[1].data.uc).to.equal('adunit-code2');
});
});

describe('interpretResponse', function () {
Expand Down

0 comments on commit 16e5e16

Please sign in to comment.