Skip to content

Commit

Permalink
Fix request and bid id (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
raz-adroll authored and abijr committed Nov 21, 2019
1 parent d21b24c commit c180513
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/adrollBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ function _buildRequests(validBidRequests, bidderRequest) {
method: 'POST',
url: BIDDER_ENDPOINT,
data: {
id: utils.generateUUID(),
id: bidRequest.bidId,
imp: {
id: index,
id: bidRequest.bidId,
bidfloor: utils.getBidIdParameter('bidfloor', bidRequest.params),
banner: {
format: _getSizes(bidRequest)
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/adrollBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('adrollBidAdapter', function() {
it('builds a request with a complete imp object', function () {
const request = spec.buildRequests([validBid], {})[0];

expect(request.data.imp.id).to.equal(0);
expect(request.data.imp.id).to.equal('bid_id');
expect(request.data.imp.bidfloor).to.be.equal(1);
expect(request.data.imp.banner).to.exist.and.to.be.a('object');
});
Expand Down

0 comments on commit c180513

Please sign in to comment.