code: function (bidRequests, bidderRequest) {
      const topLocation = utils.getTopWindowLocation();
      const payload = {
        id: bidRequests[0].auctionId,
        site: {
          domain: window.location.protocol + '//' + topLocation.hostname,
          name: topLocation.hostname,
          page: topLocation.href,
        },
        device: {
          ua: navigator.userAgent,
          language: navigator.language,
          devicetype: isMobile() ? 1 : isConnectedTV() ? 3 : 2,
        },
        imp: bidRequests.map(mapImpression)
      };
  
      if (bidderRequest && bidderRequest.gdprConsent) {
        payload.user = {ext: {consent: bidderRequest.gdprConsent.consentString}};
        const gdpr = bidderRequest.gdprConsent.gdprApplies ? 1 : 0;
        payload.regs = {ext: {gdpr: gdpr}};
      }
  
      return {
        method: 'POST',
        url: URL,
        data: JSON.stringify(payload),
        bidderRequest
      };
    }
docs: Make a server request from the list of BidRequests.
  
  @param {BidRequest[]} bidRequests A non-empty list of bid requests which should be sent to the Server.
  @return ServerRequest Info describing the request to the server.