v3.22.0.1
Summary of Significant Accounting Policies - Narrative (Details)
$ / shares in Units, $ in Millions
12 Months Ended
Dec. 31, 2021
USD ($)
reportable_segment
unit
$ / shares
Dec. 31, 2020
USD ($)
$ / shares
Dec. 31, 2019
USD ($)
$ / shares
Summary of Accounting Policies      
Number of reporting segments (in segments) | reportable_segment 2    
Depreciation $ (7,560) $ (6,390) $ (5,180)
Net income $ 39,370 $ 29,146 $ 18,485
Diluted (in dollars per share) | $ / shares $ 13.77 $ 10.09 $ 6.43
Advertising expense $ 2,990 $ 2,260 $ 1,570
Accounts receivable $ 14,039 11,335  
Number of reporting units (in reporting units) | unit 2    
Cumulative translation gain (loss), net of tax $ (677) 439  
Foreign currency exchange losses, net (140) $ (129) (105)
Change in Accounting Method Accounted for as Change in Estimate      
Summary of Accounting Policies      
Depreciation 620    
Net income $ 516    
Diluted (in dollars per share) | $ / shares $ 0.18    
Restricted Stock Units (RSUs)      
Summary of Accounting Policies      
Share-based compensation arrangement by share-based payment award, award vesting period 4 years    
Servers and network assets      
Summary of Accounting Policies      
Useful life of property and equipment 4 years 3 years  
Depreciation $ (4,940) $ (4,380) $ (3,690)
Buildings | Minimum      
Summary of Accounting Policies      
Useful life of property and equipment 25 years    
Buildings | Maximum      
Summary of Accounting Policies      
Useful life of property and equipment 30 years    
Equipment and other | Minimum      
Summary of Accounting Policies      
Useful life of property and equipment 1 year    
Equipment and other | Maximum      
Summary of Accounting Policies      
Useful life of property and equipment 25 years    
Finance lease right-of-use assets | Minimum      
Summary of Accounting Policies      
Useful life of property and equipment 3 years    
Finance lease right-of-use assets | Maximum      
Summary of Accounting Policies      
Useful life of property and equipment 20 years    
Revenue from contract with customer benchmark | Geographic concentration risk | United States      
Summary of Accounting Policies      
Concentration risk percentage (in percentage) 41.00% 42.00% 43.00%