code: function newBid(serverBid) {
    const bid = {
      ad: serverBid.seatbid[0].bid[0].adm,
      cpm: serverBid.seatbid[0].bid[0].price,
      creativeId: serverBid.seatbid[0].bid[0].adid,
      currency: serverBid.cur,
      dealId: serverBid.seatbid[0].bid[0].dealid,
      width: serverBid.seatbid[0].bid[0].w,
      height: serverBid.seatbid[0].bid[0].h,
      mediaType: serverBid.type,
      netRevenue: true,
      requestId: serverBid.id,
      ttl: serverBid.seatbid[0].bid[0].ttl || 300
    };
  
    if (serverBid.type == 'video') {
      Object.assign(bid, {
        vastXml: serverBid.seatbid[0].bid[0].vastXml,
        vastUrl: serverBid.seatbid[0].bid[0].vastUrl,
        ttl: 3600
      });
    }
  
    return bid;
  }
docs: Unpack the Server's Bid into a Prebid-compatible one.
  @param serverBid
  @return Bid