Balance Sheet Components - Schedule of Accounts Receivable, Net of Allowances (Details) - USD ($) $ in Thousands |
Sep. 30, 2020 |
Jun. 30, 2020 |
Dec. 31, 2019 |
|---|---|---|---|
| Valuation And Qualifying Accounts Disclosure [Line Items] | |||
| Gross accounts receivable | $ 408,420 | $ 360,194 | |
| Allowance for accounts receivable | (17,143) | (27,521) | |
| Total Accounts Receivable—net of allowances | 391,277 | 332,673 | |
| Allowance for Sales Returns | |||
| Valuation And Qualifying Accounts Disclosure [Line Items] | |||
| Allowance for accounts receivable | (4,323) | $ (5,412) | (6,550) |
| Allowance for Sales Incentives | |||
| Valuation And Qualifying Accounts Disclosure [Line Items] | |||
| Allowance for accounts receivable | (8,066) | (8,962) | (19,476) |
| Allowance for Doubtful Accounts | |||
| Valuation And Qualifying Accounts Disclosure [Line Items] | |||
| Allowance for accounts receivable | (4,524) | $ (4,403) | (1,140) |
| Other Allowances | |||
| Valuation And Qualifying Accounts Disclosure [Line Items] | |||
| Allowance for accounts receivable | $ (230) | $ (355) |