code: function(bid) {
      var isValid = true;
      if (bid.params) {
        if (!bid.params.placementId) {
          utils.logError(UOL_LOG_HEADER + 'Param placementId was not defined for bidID ' + bid.bidId);
          isValid = false;
        }
        if (typeof bid.params.cpmFactor != 'undefined' && !bid.params.test) {
          utils.logError(UOL_LOG_HEADER + 'Cannot manipulate cpmFactor outside test environment - bidID ' + bid.bidId);
          isValid = false;
        }
        if (bid.params.cpmFactor && (isNaN(bid.params.cpmFactor) || parseInt(Number(bid.params.cpmFactor)) != bid.params.cpmFactor || isNaN(parseInt(bid.params.cpmFactor, 10)))) {
          utils.logError(UOL_LOG_HEADER + 'Invalid param definition for cpmFactor on bidID ' + bid.bidId);
          isValid = false;
        }
      } else {
        isValid = false;
        utils.logError(UOL_LOG_HEADER + 'No params defined for bidID ' + bid.bidId);
      }
      if (getSizes(bid).length == 0) {
        utils.logError(UOL_LOG_HEADER + 'No sizing definition found for bidID ' + bid.bidId);
        isValid = false;
      }
      return isValid;
    }
docs: short code 
  Determines whether or not the given bid request is valid.
  
  @param {BidRequest} bid The bid params to validate.
  @return boolean True if this is a valid bid, and false otherwise.