v3.22.4
Stockholders' Equity - Additional Information (Details)
$ / shares in Units, $ in Thousands
12 Months Ended
Dec. 31, 2022
USD ($)
vote
plan
$ / shares
shares
Dec. 31, 2021
USD ($)
$ / shares
shares
Dec. 31, 2020
USD ($)
shares
Oct. 31, 2022
USD ($)
Jul. 31, 2022
USD ($)
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Common stock outstanding (in shares) 1,625,398,000 1,619,283,000 1,503,333,000    
Number of share-based employee compensation plans | plan 3        
Weighted-average fair value of employee stock options (in usd per share) | $ / shares $ 8.41 $ 36.17      
Fair values of options vested | $ $ 3,200 $ 7,700 $ 11,100    
Intrinsic values of stock options exercised | $ 5,900 69,400 75,500    
Stock repurchased and retired during period | $ $ 500,500        
Stock repurchased during period (in shares) 51,300,000        
Stock repurchased during period | $ $ 500,514 0      
Maximum | 2017 Equity Incentive Plan          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Percentage of capital stock outstanding 5.00%        
Stock options          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Weighted average recognition period 1 year 2 months 12 days        
Unrecognized compensation cost | $ $ 800        
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 and RSAs          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Fair value of vested shares | $ $ 1,200,000 $ 3,600,000 $ 1,700,000    
Unrecognized compensation cost | $ $ 2,000,000        
Weighted average recognition period 1 year 9 months 18 days        
Class A          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Common stock authorized (in shares) 3,000,000,000 3,000,000,000      
Common stock par value (in usd per share) | $ / shares $ 0.00001 $ 0.00001      
Common stock dividends declared (in usd per share) | $ / shares $ 0        
Common stock issued (in shares) 1,371,241,822 1,364,887,000      
Common stock outstanding (in shares) 1,319,929,508 1,364,887,000      
Stock repurchase program, authorized amount | $       $ 500,000 $ 500,000
Stock repurchased and retired during period (in shares) 53,900,000        
Stock repurchased during period (in shares) 51,312,000        
Class A | 2017 Equity Incentive Plan          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Common stock reserved for future issuance (in shares) 87,270,108        
Class A | 2014 Equity Incentive Plan          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Common stock reserved for future issuance (in shares) 17,858,235        
Class A | 2012 Equity Incentive Plan          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Common stock reserved for future issuance (in shares) 11,004,580        
Class A | 2017 Employee Stock Purchase Plan          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Common stock reserved for future issuance (in shares) 16,484,690        
Number of shares issued or offered under plan (in shares) 0        
Percentage of number of shares, common stock outstanding 1.00%        
Class A | Maximum | 2017 Equity Incentive Plan          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Additional common stock reserved for future issuance (in shares) 86,737,997        
Class A | Maximum | 2017 Employee Stock Purchase Plan          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Increase in number of shares reserved for issuance (in shares) 15,000,000        
Class A | 2014 Equity Incentive Plan | France          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Awards granted to employees and consultants (up to) (in shares) 2,500,000        
Class A | 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 (in shares) 96,993,064        
Class A | 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 (in shares) 37,228,865        
Class A | RSUs and RSAs          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Awards granted to employees and consultants (up to) (in shares) 134,446,000        
Class B          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Common stock authorized (in shares) 700,000,000 700,000,000      
Common stock par value (in usd per share) | $ / shares $ 0.00001 $ 0.00001      
Number of votes per share | vote 1        
Common stock dividends declared (in usd per share) | $ / shares $ 0        
Common stock issued (in shares) 22,529,132 22,769,000      
Common stock outstanding (in shares) 22,529,132 22,769,000      
Class C          
Share Based Compensation Arrangement By Share Based Payment Award [Line Items]          
Common stock authorized (in shares) 260,887,848 260,888,000      
Common stock par value (in usd per share) | $ / shares $ 0.00001 $ 0.00001      
Number of votes per share | vote 10        
Common stock dividends declared (in usd per share) | $ / shares $ 0        
Common stock issued (in shares) 231,626,943 231,627,000      
Common stock outstanding (in shares) 231,626,943 231,627,000