code: function(bid) {
      return !!(bid && bid.params && bid.params.pid && bid.params.tid);
    }
docs: Determines whether or not the given bid request is valid.
  
  @param {BidRequest} bid The bid to validate.
  @return {boolean} True if this is a valid bid, and false otherwise.