| Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | December 31, 2024 | | December 31, 2023 | | | Fair Value | | Level I | | Level II | | Level III | | Fair Value | | Level I | | Level II | | Level III | | Certificates of deposit and time deposits | $ | 12,767 | | | $ | — | | | $ | 12,767 | | | $ | — | | | $ | 6,996 | | | $ | — | | | $ | 6,996 | | | $ | — | | | Commercial paper | 3,919 | | | — | | | 3,919 | | | — | | | 470 | | | — | | | 470 | | | — | | | U.S. government securities | 3,620 | | | — | | | 3,620 | | | — | | | 5,136 | | | — | | | 5,136 | | | — | | | Corporate debt securities | 118 | | | — | | | 118 | | | — | | | 480 | | | — | | | 480 | | | — | | | Money market funds | 1,753 | | | 1,753 | | | — | | | — | | | 109 | | | 109 | | | — | | | — | | | Digital assets | 1,076 | | | 1,076 | | | — | | | — | | | Not applicable | | Total | $ | 23,253 | | | $ | 2,829 | | | $ | 20,424 | | | $ | — | | | $ | 13,191 | | | $ | 109 | | | $ | 13,082 | | | $ | — | |
|
| Unrealized Gain (Loss) on Investments |
Our cash, cash equivalents and investments classified by security type as of December 31, 2024 and 2023 consisted of the following (in millions): | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | December 31, 2024 | | | Adjusted Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Fair Value | | Cash and Cash Equivalents | | Short-Term Investments | | Cash | $ | 14,386 | | | $ | — | | | $ | — | | | $ | 14,386 | | | $ | 14,386 | | | $ | — | | | Certificates of deposit and time deposits | 12,767 | | | — | | | — | | | 12,767 | | | — | | | 12,767 | | | Commercial paper | 3,908 | | | 11 | | | — | | | 3,919 | | | — | | | 3,919 | | | U.S. government securities | 3,618 | | | 3 | | | (1) | | | 3,620 | | | — | | | 3,620 | | | Corporate debt securities | 117 | | | 1 | | | — | | | 118 | | | — | | | 118 | | | Money market funds | 1,753 | | | — | | | — | | | 1,753 | | | 1,753 | | | — | | | Total cash, cash equivalents and short-term investments | $ | 36,549 | | | $ | 15 | | | $ | (1) | | | $ | 36,563 | | | $ | 16,139 | | | $ | 20,424 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | December 31, 2023 | | | Adjusted Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Fair Value | | Cash and Cash Equivalents | | Short-Term Investments | | Cash | $ | 15,903 | | | $ | — | | | $ | — | | | $ | 15,903 | | | $ | 15,903 | | | $ | — | | | Certificates of deposit and time deposits | 6,995 | | | 1 | | | — | | | 6,996 | | | — | | | 6,996 | | | U.S. government securities | 5,136 | | | 1 | | | (1) | | | 5,136 | | | 277 | | | 4,859 | | | Corporate debt securities | 485 | | | 1 | | | (6) | | | 480 | | | — | | | 480 | | | Commercial paper | 470 | | | — | | | — | | | 470 | | | 109 | | | 361 | | | Money market funds | 109 | | | — | | | — | | | 109 | | | 109 | | | — | | | Total cash, cash equivalents and short-term investments | $ | 29,098 | | | $ | 3 | | | $ | (7) | | | $ | 29,094 | | | $ | 16,398 | | | $ | 12,696 | |
|