Balance Sheet Components - Schedule of Property and Equipment, Net (Details) - USD ($) $ in Thousands |
Mar. 31, 2020 |
Dec. 31, 2019 |
|---|---|---|
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | $ 184,878 | $ 135,674 |
| Accumulated depreciation and amortization | (36,814) | (32,412) |
| Property and Equipment, net | 148,064 | 103,262 |
| Computer and Equipment | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 27,315 | 23,834 |
| Leasehold Improvements | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 132,757 | 93,239 |
| Website and Internal-Use Software | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 6,510 | 6,510 |
| Office Equipment and Furniture | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | $ 18,296 | $ 12,091 |