Skip to content

Commit 16e5e16

Browse files
kusapanrobertrmartinez
authored andcommitted
YIELDONE adapter - add buildRequests payload params (#3611)
* 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
1 parent c173ab2 commit 16e5e16

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

modules/yieldoneBidAdapter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ export const spec = {
2121
const cb = Math.floor(Math.random() * 99999999999);
2222
const referrer = encodeURIComponent(utils.getTopWindowUrl());
2323
const bidId = bidRequest.bidId;
24+
const unitCode = bidRequest.adUnitCode;
2425
const payload = {
2526
v: 'hb1',
2627
p: placementId,
2728
cb: cb,
2829
r: referrer,
2930
uid: bidId,
31+
uc: unitCode,
3032
t: 'i'
3133
};
3234

test/spec/modules/yieldoneBidAdapter_spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ describe('yieldoneBidAdapter', function() {
8888
expect(request[0].data.w).to.equal('300');
8989
expect(request[0].data.h).to.equal('250');
9090
});
91+
92+
it('adUnitCode should be sent as uc parameters on any requests', function () {
93+
expect(request[0].data.uc).to.equal('adunit-code1');
94+
expect(request[1].data.uc).to.equal('adunit-code2');
95+
});
9196
});
9297

9398
describe('interpretResponse', function () {

0 commit comments

Comments
 (0)