| Dec 31, 2016 | Dec 31, 2017 | Dec 31, 2018 | Dec 31, 2019 | Dec 31, 2020 | Dec 31, 2021 | Dec 31, 2022 | Dec 31, 2023 | Dec 31, 2024 |
|---|
| Net loss | - | -64 | -122 | -307 | -491 | -950 | -1,256 | -1,015 | -109 |
|---|
| Depreciation and amortization | 8 | 19 | 26 | 110 | 150 | 258 | 279 | 284 | 206 |
|---|
| Non-cash reduction to the right-of-use asset | - | - | - | - | - | - | - | 27 | 19 |
|---|
| Net amortization of investment premium and discount | - | - | 1 | 5 | -7 | -36 | -33 | 0 | 23 |
|---|
| Impairment of long-lived assets | - | - | - | - | - | - | 98 | 321 | - |
|---|
| Stock-based compensation including restructuring | 24 | 50 | 93 | 264 | 361 | 632 | 799 | 676 | 617 |
|---|
| Amortization of deferred commissions | - | - | - | - | 13 | 32 | 58 | 73 | 76 |
|---|
| Realized and unrealized losses on equity securities | - | - | - | - | - | - | - | -8 | -2 |
|---|
| Provision for doubtful accounts | 1 | 1 | - | - | 13 | - | 35 | 52 | 35 |
|---|
| Common Stock, Donor Advised Fund, Value | - | - | - | - | 19 | 31 | 10 | 5 | 6 |
|---|
| Share of losses from equity method investment | - | - | - | - | - | - | -35 | -122 | -108 |
|---|
| Impairment of strategic investments | - | - | - | - | - | - | - | 46 | 8 |
|---|
| Loss on net assets divested | - | - | - | - | - | - | - | -32 | - |
|---|
| Other adjustments | - | - | - | 8 | -0 | 12 | 5 | 15 | 5 |
|---|
| Accounts receivable | 8 | 15 | 58 | 51 | 81 | 118 | 195 | 85 | 61 |
|---|
| Prepaid expenses and other current assets | 14 | -2 | 9 | 20 | 12 | 78 | 94 | 56 | 153 |
|---|
| Other long-term assets | 0 | 2 | 5 | 18 | 82 | 121 | 146 | 2 | 47 |
|---|
| Accounts payable | 2 | 5 | 7 | 17 | 10 | 10 | 30 | 12 | -20 |
|---|
| Increase (Decrease) in Accrued Liabilities | - | - | - | 46 | 88 | 128 | 75 | -52 | 87 |
|---|
| Deferred revenue and customer deposits | - | - | - | 3 | 14 | 46 | -3 | 5 | 11 |
|---|
| Operating lease liabilities | - | - | - | -21 | -34 | -49 | -54 | -56 | -49 |
|---|
| Other long-term liabilities | 9 | -1 | -1 | -4 | -1 | -2 | -10 | 3 | -2 |
|---|
| Net cash provided by (used in) operating activities | - | -3 | 8 | 14 | 33 | -58 | -254 | 415 | 716 |
|---|
| Acquisitions, net of cash acquired and payments related to prior period acquisitions | 9 | 23 | 31 | -123 | 334 | 492 | 37 | 6 | - |
|---|
| Divestitures, net of cash divested | - | - | - | - | - | - | - | 38 | - |
|---|
| Purchases of marketable securities and other investments | - | - | - | 2,038 | 1,637 | 3,523 | 1,938 | 1,953 | 924 |
|---|
| Proceeds from sales and maturities of marketable securities | - | 116 | 195 | 697 | 1,183 | 1,615 | 1,439 | 2,200 | 2,353 |
|---|
| Capitalized software development costs | 12 | 17 | 20 | 22 | 33 | 44 | 46 | 40 | 52 |
|---|
| Purchases of long-lived and intangible assets | - | - | - | - | - | - | 34 | 11 | 7 |
|---|
| Net cash provided by (used in) investing activities | - | -224 | -139 | -1,286 | -846 | -2,490 | -616 | 229 | 1,371 |
|---|
| Payments of costs related to public offerings | 5 | 0 | - | 1 | - | - | 0 | - | - |
|---|
| Principal payments on finance leases | - | - | - | - | 11 | 8 | 13 | 16 | 13 |
|---|
| Value of equity awards withheld for tax liabilities | - | 1 | 3 | 5 | 9 | 10 | 1 | 3 | 2 |
|---|
| Repurchases of shares of Class A common stock and related costs | - | - | - | - | - | - | - | 669 | 2,334 |
|---|
| Proceeds from Stock Plans | - | 12 | 10 | - | - | - | 60 | 44 | 37 |
|---|
| Net cash (used in) provided by financing activities | - | 36 | 516 | 1,020 | 1,493 | 3,096 | 45 | -644 | -2,312 |
|---|
| Effect of exchange rate changes on cash, cash equivalents and restricted cash | - | - | 0 | - | 0 | -0 | 0 | 0 | - |
|---|
| NET DECREASE IN CASH, CASH EQUIVALENTS AND RESTRICTED CASH | - | - | 385 | -252 | 680 | 548 | -826 | -0 | -224 |
|---|
| Income Taxes Paid, Net | - | - | - | 1 | 3 | 6 | 7 | 38 | 37 |
|---|
| Cash paid for interest | - | - | - | - | - | - | - | 38 | 38 |
|---|