Balance Sheet Components - Schedule of Property and Equipment, Net (Details) - USD ($) $ in Thousands |
Dec. 31, 2020 |
Dec. 31, 2019 |
|---|---|---|
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | $ 201,277 | $ 135,674 |
| Accumulated depreciation and amortization | (46,080) | (32,412) |
| Property and Equipment, net | 155,197 | 103,262 |
| Computer and Equipment | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 30,859 | 23,834 |
| Leasehold Improvements | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 144,013 | 93,239 |
| Website and Internal-Use Software | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 6,744 | 6,510 |
| Office Equipment and Furniture | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | $ 19,661 | $ 12,091 |