Balance Sheet Components - Schedule of Accounts Receivable, Net of Allowances (Details) - USD ($) $ in Thousands |
Mar. 31, 2020 |
Dec. 31, 2019 |
|---|---|---|
| Valuation And Qualifying Accounts Disclosure [Line Items] | ||
| Gross accounts receivable | $ 314,580 | $ 360,194 |
| Allowance for accounts receivable | (19,219) | (27,521) |
| Total Accounts Receivable—net of allowances | 295,361 | 332,673 |
| Allowance for Sales Returns | ||
| Valuation And Qualifying Accounts Disclosure [Line Items] | ||
| Allowance for accounts receivable | (4,668) | (6,550) |
| Allowance for Sales Incentives | ||
| Valuation And Qualifying Accounts Disclosure [Line Items] | ||
| Allowance for accounts receivable | (9,273) | (19,476) |
| Allowance for Doubtful Accounts | ||
| Valuation And Qualifying Accounts Disclosure [Line Items] | ||
| Allowance for accounts receivable | (4,959) | (1,140) |
| Other Allowances | ||
| Valuation And Qualifying Accounts Disclosure [Line Items] | ||
| Allowance for accounts receivable | $ (319) | $ (355) |