Skip to content

Commit

Permalink
Compass Adapter: fix validator (prebid#7931)
Browse files Browse the repository at this point in the history
* add Compass Adapter

* fix

* fix

* fix

* add endpointId

* fix
  • Loading branch information
CompassSSP authored Jan 11, 2022
1 parent 8cca19b commit 69e8195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/compassBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const spec = {

isBidRequestValid: (bid = {}) => {
const { params, bidId, mediaTypes } = bid;
let valid = Boolean(bidId && params && params.placementId);
let valid = Boolean(bidId && params && (params.placementId || params.endpointId));

if (mediaTypes && mediaTypes[BANNER]) {
valid = valid && Boolean(mediaTypes[BANNER] && mediaTypes[BANNER].sizes);
Expand Down

0 comments on commit 69e8195

Please sign in to comment.