modules/yieldmoBidAdapter.js
function(serverResponse) {
    let bids = [];
    let data = serverResponse.body;
    if (data.length > 0) {
      data.forEach((response) => {
        if (response.cpm && response.cpm > 0) {
          bids.push(createNewBid(response));
        }
      });
    }
    return bids;
  }
function(serverResponse) {
    let bids = [];
    let data = serverResponse.body;
    if (data.length > 0) {
      data.forEach((response) => {
        if (response.cpm && response.cpm > 0) {
          bids.push(createNewBid(response));
        }
      });
    }
    return bids;
  }
function ( serverResponse ) { let bids = [ ] ; let data = serverResponse . body ; if ( data . length > 0 ) { data . forEach ( ( response ) => { if ( response . cpm && response . cpm > 0 ) { bids . push ( createNewBid ( response ) ) ; } } ) ; } return bids ; }
Makes Yieldmo Ad Server response compatible to Prebid specs
@param serverResponse successful response from Ad Server
@param bidderRequest original bidRequest
@return {Bid[]} an array of bids
Makes Yieldmo Ad Server response compatible to Prebid specs