v3.19.3.a.u2
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