Skip to content

Commit

Permalink
Fix bidRequest validation (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
abijr authored Jan 14, 2020
1 parent 17af86c commit a77c8c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion modules/adrollBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const spec = {
* @return boolean True if this is a valid bid, and false otherwise.
*/
isBidRequestValid: function (bidRequest) {
return bidRequest !== undefined && !!bidRequest.params && !!bidRequest.id;
return bidRequest !== undefined && !!bidRequest.params && !!bidRequest.bidId;
},

/**
Expand Down
1 change: 0 additions & 1 deletion test/spec/modules/adrollBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { spec } from 'modules/adrollBidAdapter';

describe('adrollBidAdapter', function() {
let validBid = {
id: 'id',
bidder: 'adroll',
adUnitCode: 'adunit-code',
bidId: 'bid_id',
Expand Down

0 comments on commit a77c8c9

Please sign in to comment.