v3.24.0.1
Net Income (Loss) per Share - Schedule of Computation of Basic and Diluted Net Loss Per Share Attributable to Common Stockholders (Details) - USD ($)
$ / shares in Units, shares in Millions, $ in Millions
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Earnings Per Share [Abstract]      
Net income (loss) $ 4,792 $ 1,893 $ (352)
Add: convertible notes interest expense, net of tax 3 4 0
Net income (loss) - diluted $ 4,795 $ 1,897 $ (352)
Weighted-average shares in computing net income (loss) per share attributable to Class A and Class B common stockholders:      
Weighted-average shares in computing net income (loss) per share attributable to Class A and Class B common stockholders, basic (in shares) 637 637 616
Weighted-average shares in computing net income (loss) per share attributable to Class A and Class B common stockholders, effect of dilutive securities (in shares) 25 43 0
Weighted-average shares in computing net income (loss) per share attributable to Class A and Class B common stockholders, diluted (in shares) 662 680 616
Net income (loss) per share attributable to Class A and Class B common stockholders:      
Net income (loss) per share attributable to Class A and Class B common stockholders, basic (in USD per share) $ 7.52 $ 2.97 $ (0.57)
Net income (loss) per share attributable to Class A and Class B common stockholders, diluted (in USD per share) $ 7.24 $ 2.79 $ (0.57)