code: function(bid) {
      if (!bid.params) {
        utils.logError(`${BIDDER_CODE} : Missing bid parameters`);
        return false;
      }
  
      if (!bid.params.cid || !utils.isStr(bid.params.cid) || utils.isEmptyStr(bid.params.cid)) {
        utils.logError(`${BIDDER_CODE} : cid should be a string`);
        return false;
      }
  
      Object.assign($$PREBID_GLOBAL$$.medianetGlobals, !$$PREBID_GLOBAL$$.medianetGlobals.cid && {cid: bid.params.cid});
  
      return true;
    }
docs: Determines whether or not the given bid request is valid.
  
  @param {object} bid The bid to validate.
  @return boolean True if this is a valid bid (if cid is present), and false otherwise.