v3.19.3.a.u2
Stockholders' Equity - Additional Information (Details)
$ / shares in Units, $ in Millions
12 Months Ended
Dec. 31, 2019
USD ($)
Plan
$ / shares
shares
Dec. 31, 2018
USD ($)
$ / shares
shares
Dec. 31, 2017
USD ($)
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Number of share-based employee compensation plans | Plan 3    
Weighted-average fair value of employee stock options | $ / shares $ 14.69 $ 6.99  
Fair values of options vested | $ $ 23.3 $ 24.8 $ 58.6
Intrinsic values of stock options exercised | $ $ 44.0 289.1 276.5
Maximum | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Percentage of capital stock outstanding 5.00%    
Shares reserved for issuance, automatic increase date Jan. 01, 2027    
Minimum | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Shares reserved for issuance, automatic increase date Jan. 01, 2018    
Stock Options      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Weighted average recognition period 2 years    
Unrecognized compensation cost related to stock options granted and assumed | $ $ 17.7    
Stock Options | Maximum      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Maximum term for stock options from the grant date 10 years    
RSUs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Fair value of vested shares | $ $ 937.2 $ 884.1 966.0
RSUs are vested but not settled 9,400,000 22,400,000  
Pre-2017 RSUs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock issued 26,700,000    
Unrecognized compensation cost | $ $ 34.5    
Weighted average recognition period 9 months 18 days    
Post-2017 RSUs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Unrecognized compensation cost | $ $ 1,400.0    
Weighted average recognition period 2 years 10 months 24 days    
RSAs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Fair value of vested shares | $ $ 27.5 $ 6.3 $ 1.6
Unrecognized compensation cost | $ $ 74.2    
Weighted average recognition period 3 years 3 months 18 days    
Class A Non-voting Common Stock      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock authorized to issue 3,000,000,000 3,000,000,000  
Common stock par value | $ / shares $ 0.00001 $ 0.00001  
Common stock voting rights no voting rights    
Common stock dividends declared | $ / shares $ 0    
Common stock issued 1,160,127,014 999,304,000  
Common stock outstanding 1,160,127,014 999,304,000  
Class A Non-voting Common Stock | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 87,270,108    
Class A Non-voting Common Stock | 2014 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 17,858,235    
Class A Non-voting Common Stock | 2012 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 11,004,580    
Class A Non-voting Common Stock | 2017 Employee Stock Purchase Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 16,484,690    
Number of shares issued or offered under plan 0    
Class A Non-voting Common Stock | Maximum | 2017 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Additional common stock reserved for future issuance 86,737,997    
Class A Non-voting Common Stock | Maximum | 2017 Employee Stock Purchase Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Shares reserved for issuance, automatic increase date Jan. 01, 2027    
Percentage of number of shares, common stock outstanding 1.00%    
Increase in number of shares reserved for issuance 15,000,000    
Class A Non-voting Common Stock | Minimum | 2017 Employee Stock Purchase Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Shares reserved for issuance, automatic increase date Jan. 01, 2018    
Class A Non-voting Common Stock | 2014 Equity Incentive Plan | Maximum | France      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Awards granted to employees and consultants 2,500,000    
Class A Non-voting Common Stock | Stock Options And Unvested RSUs | 2014 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 96,993,064    
Class A Non-voting Common Stock | Stock Options And Unvested RSUs | 2012 Equity Incentive Plan      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock reserved for future issuance 37,228,865    
Class A Non-voting Common Stock | RSUs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Awards granted to employees and consultants 89,582,000    
RSUs are vested but not settled 76,983,000    
Class A Non-voting Common Stock | RSAs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Awards granted to employees and consultants 3,975,000    
RSUs are vested but not settled 2,778,000    
Class B Common Stock      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock authorized to issue 700,000,000 700,000,000  
Common stock par value | $ / shares $ 0.00001 $ 0.00001  
Common stock voting rights one vote    
Common stock dividends declared | $ / shares $ 0    
Common stock issued 24,521,607 93,845,000  
Common stock outstanding 24,521,607 93,845,000  
Class B Common Stock | RSUs      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
RSUs are vested but not settled 490,000    
Class C Common Stock      
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]      
Common stock authorized to issue 260,887,848 260,888,000  
Common stock par value | $ / shares $ 0.00001 $ 0.00001  
Common stock voting rights ten votes    
Common stock dividends declared | $ / shares $ 0    
Common stock issued 231,147,476 224,611,000  
Common stock outstanding 231,147,476 224,611,000