Segment and Geographic Information - Reconciliation of Net Loss to Total Segment Profitability (Details) - USD ($) $ in Thousands |
3 Months Ended | 12 Months Ended | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Dec. 31, 2019 |
Sep. 30, 2019 |
Jun. 30, 2019 |
Mar. 31, 2019 |
Dec. 31, 2018 |
Sep. 30, 2018 |
Jun. 30, 2018 |
Mar. 31, 2018 |
Dec. 31, 2019 |
Dec. 31, 2018 |
Dec. 31, 2017 |
|
| Segment Reporting [Abstract] | |||||||||||
| Net loss | $ (44,584) | $ (141,112) | $ (27,972) | $ (21,554) | $ 4,832 | $ (9,944) | $ (18,347) | $ (14,871) | $ (235,222) | $ (38,330) | $ (29,423) |
| Interest income | (713) | (924) | (1,814) | (2,349) | (2,120) | (1,799) | (912) | (342) | (5,800) | (5,173) | (371) |
| Interest expense | 5,289 | 5,651 | 2,424 | 55 | 27 | 27 | 27 | 27 | 13,419 | 108 | 87 |
| Foreign currency loss | 707 | 1,722 | 866 | ||||||||
| Income tax benefit | (942) | 714 | (18,691) | (941) | $ 340 | $ (414) | $ (3,565) | $ (1,228) | (19,860) | (4,867) | (1,297) |
| Depreciation and amortization expense | 69,843 | 32,785 | 19,624 | ||||||||
| Deferred revenue fair value adjustment | 11,175 | 0 | 0 | ||||||||
| Transaction costs | 4,786 | 0 | 0 | ||||||||
| Integration costs | 3,255 | 0 | 0 | ||||||||
| Restructuring-related costs | 10,826 | 0 | 0 | ||||||||
| Shareholder activism costs | 1,042 | 0 | 0 | ||||||||
| Impairment charge | $ 0 | $ 70,379 | $ 0 | $ 0 | 70,379 | 0 | 0 | ||||
| Stock-based compensation expense | 51,504 | 31,410 | 21,930 | ||||||||
| Total adjustments | 211,276 | 55,985 | 40,839 | ||||||||
| Total segment profitability | $ (23,946) | $ 17,655 | $ 11,416 | ||||||||
| X | ||||||||||
- Definition The amount of adjustments related to net income (loss). No definition available.
|
| X | ||||||||||
- Definition Contract with Customer, Liability, Increase (Decrease) for Fair Value Adjustment No definition available.
|
| X | ||||||||||
- Definition The consolidated profit or loss for the period from segment operations. No definition available.
|
| X | ||||||||||
- Definition Shareholder Activism Costs No definition available.
|
| X | ||||||||||
- Definition Transaction Costs No definition available.
|
| X | ||||||||||
- Definition Costs incurred to effect a business combination which have been expensed during the period. Such costs could include business integration costs, systems integration and conversion costs, and severance and other employee-related costs. No definition available.
|
| X | ||||||||||
- Definition The aggregate expense recognized in the current period that allocates the cost of tangible assets, intangible assets, or depleting assets to periods that benefit from use of the assets. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount before tax of foreign currency transaction realized and unrealized loss recognized in the income statement. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of loss from the write-down of an asset representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of the cost of borrowed funds accounted for as interest expense. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount before accretion (amortization) of purchase discount (premium) of interest income on nonoperating securities. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition The portion of profit or loss for the period, net of income taxes, which is attributable to the parent. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of expenses associated with exit or disposal activities pursuant to an authorized plan. Excludes expenses related to a discontinued operation or an asset retirement obligation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of noncash expense for share-based payment arrangement. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|