v3.10.0.1
The Company and Summary of Significant Accounting Policies - New Accounting Standards (Details) - USD ($)
$ / shares in Units, $ in Millions
3 Months Ended 9 Months Ended
Sep. 30, 2018
Sep. 30, 2017
Sep. 30, 2018
Sep. 30, 2017
Dec. 31, 2017
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Allowance for doubtful accounts and authorized credits $ 95   $ 95   $ 102
Deferred revenue 95   95    
Net revenues 2,649 $ 2,498 7,869 $ 7,220  
Cost of net revenues 608   1,764    
Sales and marketing 852   2,446    
Net income $ 721   $ 1,770    
Net income per share - basic (in usd per share) $ 0.74 $ 0.49 $ 1.78 $ 1.48  
Net income per share - diluted (in usd per share) $ 0.73 $ 0.48 $ 1.76 $ 1.45  
ASU 2014-09 | Difference between Revenue Guidance in Effect before and after Topic 606          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Deferred revenue         $ 20
Sales and marketing   $ 92   $ 268  
Warrant          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Maximum percentage of shares acquirable 5.00%   5.00%    
As Reported          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Net revenues   2,498   7,220  
Cost of net revenues   557   1,631  
Sales and marketing   719   2,094  
Net income   $ 520   $ 1,584  
Net income per share - basic (in usd per share)   $ 0.49   $ 1.48  
Net income per share - diluted (in usd per share)   $ 0.48   $ 1.45  
As Reported | ASU 2014-09          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Net revenues   $ 2,409   $ 6,954  
Cost of net revenues   556   1,632  
Sales and marketing   627   1,826  
Net income   $ 523   $ 1,585  
Net income per share - basic (in usd per share)   $ 0.49   $ 1.48  
Net income per share - diluted (in usd per share)   $ 0.48   $ 1.45