code: function (bidRequests, bidderRequest) {
      const payload = {
        Version: VERSION,
        Bids: bidRequests.reduce((accumulator, bid) => {
          let size = getSize(bid.sizes);
          accumulator[bid.bidId] = {};
          accumulator[bid.bidId].PlacementID = bid.params.placement;
          accumulator[bid.bidId].TransactionID = bid.transactionId;
          accumulator[bid.bidId].Width = size.width;
          accumulator[bid.bidId].Height = size.height;
          return accumulator;
        }, {}),
        PageRefreshed: getPageRefreshed()
      };
  
      if (bidderRequest && bidderRequest.gdprConsent) {
        payload.gdprConsent = {
          consentString: bidderRequest.gdprConsent.consentString,
          consentRequired: (typeof bidderRequest.gdprConsent.gdprApplies === 'boolean') ? bidderRequest.gdprConsent.gdprApplies : true
        };
      }
  
      const data = JSON.stringify(payload);
      const options = {
        withCredentials: true
      };
  
      return {
        method: 'POST',
        url: createEndpoint(bidRequests, bidderRequest),
        data,
        options
      };
    }
docs: Make a server request from the list of BidRequests.
  
  @param {bidRequests} - bidRequests.bids[] is an array of AdUnits and bids
  @return ServerRequest Info describing the request to the server.