Skip to content

Commit b1c2753

Browse files
authored
Send Zone ID (#6)
1 parent c180513 commit b1c2753

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

modules/adrollBidAdapter.js

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ function _buildRequests(validBidRequests, bidderRequest) {
9292
bidfloor: utils.getBidIdParameter('bidfloor', bidRequest.params),
9393
banner: {
9494
format: _getSizes(bidRequest)
95+
},
96+
ext: {
97+
zone: {
98+
id: utils.getBidIdParameter('zoneId', bidRequest.params)
99+
}
95100
}
96101
},
97102

test/spec/modules/adrollBidAdapter_spec.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ describe('adrollBidAdapter', function() {
1212
ip: 'ip',
1313
bidfloor: 1,
1414
sizes: [[300, 200]],
15-
placementId: '1',
15+
zoneId: 'zone1',
1616
publisherId: 'publisher_id'
1717
}
1818
};
1919
let bidWithoutValidId = { id: '' };
20-
let bidWithoutId = { params: { placementId: '1' } };
20+
let bidWithoutId = { params: { zoneId: 'zone1' } };
2121

2222
describe('isBidRequestValid', function() {
2323
it('validates the bids correctly when the bid has an id', function() {
@@ -63,6 +63,7 @@ describe('adrollBidAdapter', function() {
6363
expect(request.data.imp.id).to.equal('bid_id');
6464
expect(request.data.imp.bidfloor).to.be.equal(1);
6565
expect(request.data.imp.banner).to.exist.and.to.be.a('object');
66+
expect(request.data.imp.ext.zone.id).to.be.equal("zone1");
6667
});
6768

6869
it('includes the sizes into the request correctly', function () {

0 commit comments

Comments
 (0)