v3.19.3.a.u2
Investments and Fair Value Measurement - Narrative (Details)
$ / shares in Units, $ in Millions
1 Months Ended 3 Months Ended 12 Months Ended
May 14, 2019
shares
Oct. 31, 2019
USD ($)
Aug. 31, 2016
renewal_option
$ / shares
shares
Feb. 29, 2016
warrant
$ / shares
shares
Mar. 31, 2019
USD ($)
Dec. 31, 2019
USD ($)
Dec. 31, 2018
USD ($)
Dec. 31, 2017
USD ($)
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                
Adjustment to fair value           $ 0 $ 1,984  
Number of warrants issued | warrant       2        
Exercise price of warrants (in dollars per share) | $ / shares       $ 0.01        
Other income (expense), net           722 4,993 $ (16)
Exercise of warrants             1  
Redeemable Non-Controlling Interest | Redeemable Convertible Preferred Stock                
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                
Exercise of warrants         $ 45      
Didi                
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                
Adjustment to fair value           0    
Number of securities called by warrants (in shares) | shares     4,000,000          
Exercise price of warrants (in dollars per share) | $ / shares     $ 0.00001          
Warrant, restriction term     6 years          
Warrant, restriction initial term     4 years          
Warrant, restriction renewal option | renewal_option     2          
Warrant, restriction renewal term     1 year          
Warrants           $ 37    
Other income (expense), net             $ 152  
Warrants Issued, Tranche One                
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                
Number of securities called by warrants (in shares) | shares       205,034        
Warrants Issued, Tranche Two                
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                
Number of securities called by warrants (in shares) | shares       820,138        
IPO | Holders of 2021 Convertible Notes and 2022 Convertible Notes                
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                
Conversion of Convertible Notes to common stock in connection with initial public offering (in shares) | shares 94,000,000              
Qualified Input Public Offering Rate                
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                
Convertible debt embedded derivative, rate           1    
Risk Free Interest Rate                
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                
Convertible debt embedded derivative, rate           0.083 0.065  
Cornershop                
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                
Consideration transferred   $ 459            
Tranche One | Cornershop                
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]                
Consideration transferred   $ 50