| Dec 31, 2014 | Dec 31, 2015 | 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 income (loss) | - | - | - | - | -64 | -54 | -85 | -78 | -113 | -176 | 5 |
|---|
| Depreciation and amortization | 6 | 7 | 11 | 16 | 23 | 29 | 37 | 45 | 58 | 73 | 97 |
|---|
| Stock-based compensation | - | 21 | 33 | 47 | 76 | 98 | 121 | 167 | 276 | 432 | 505 |
|---|
| Restructuring Costs | - | - | - | - | - | - | - | - | - | 67 | - |
|---|
| Loss on early extinguishment of 2022 Convertible Notes | - | - | - | - | - | - | -11 | -5 | - | - | - |
|---|
| Repayment of 2022 Convertible Notes attributable to the debt discount | - | - | - | - | - | - | 49 | 26 | - | - | - |
|---|
| Gain on termination of operating leases | - | - | - | - | - | - | - | 4 | - | - | - |
|---|
| Loss on disposal of fixed assets | - | - | - | - | - | - | - | -6 | - | - | - |
|---|
| Gain on strategic investments | - | - | - | - | - | - | - | 12 | 4 | - | 21 |
|---|
| Impairment of strategic investments | - | - | - | - | - | - | - | - | 6 | 2 | 5 |
|---|
| Deferred Income Tax Expense (Benefit) | - | - | - | - | - | -1 | -2 | -3 | -2 | 5 | 3 |
|---|
| Amortization of debt discount and issuance costs | - | - | - | 12 | 20 | 22 | 25 | 24 | 2 | 2 | 2 |
|---|
| Accretion of bond discount | - | - | - | 2 | 7 | 14 | 4 | -4 | 9 | 43 | 52 |
|---|
| Unrealized currency translation | 0 | 0 | -0 | 0 | -0 | 0 | 1 | -1 | -1 | 0 | 2 |
|---|
| Accounts receivable | 8 | 11 | 14 | 20 | 18 | 15 | 30 | 34 | 74 | 58 | 48 |
|---|
| Prepaid expenses and other assets | 1 | 3 | 6 | 6 | -4 | 3 | 17 | 1 | 6 | 47 | 4 |
|---|
| Deferred commission expense | -2 | -2 | -0 | -4 | -24 | -10 | -19 | -33 | -38 | -81 | -97 |
|---|
| Right-of-use assets | - | - | - | - | - | 23 | 31 | 31 | 30 | 29 | 32 |
|---|
| Accounts payable | 0 | -1 | 1 | 1 | 3 | 4 | 4 | -11 | 18 | -14 | -5 |
|---|
| Accrued expenses and other current liabilities | - | - | - | - | 12 | 8 | 26 | 58 | 32 | 87 | 89 |
|---|
| Operating lease liabilities | - | - | - | - | - | - | 32 | 29 | 21 | 37 | 42 |
|---|
| Deferred revenue | - | - | - | - | 49 | 49 | 73 | 128 | 117 | 110 | 131 |
|---|
| Net cash and cash equivalents provided by operating activities | - | - | - | - | 85 | 119 | 89 | 239 | 273 | 351 | 599 |
|---|
| Purchases of investments | - | 114 | 52 | 890 | 682 | 1,305 | 1,517 | 1,485 | 1,508 | 1,581 | 1,994 |
|---|
| Maturities of investments | - | - | - | - | - | - | 1,352 | 1,387 | 1,185 | 1,503 | 1,659 |
|---|
| Sale of investments | - | - | - | - | - | - | 11 | - | 125 | - | 2 |
|---|
| Purchases of property and equipment | 7 | 8 | 16 | 20 | 22 | 40 | 37 | 29 | 37 | 34 | 38 |
|---|
| Capitalization of software development costs | 5 | 4 | 6 | 7 | 11 | 13 | 22 | 33 | 44 | 66 | 90 |
|---|
| Purchases of intangible assets | 0 | - | - | - | - | - | - | - | 10 | 0 | 1 |
|---|
| Acquisition of a business, net of cash acquired | - | - | - | - | - | 23 | - | 17 | - | 142 | 40 |
|---|
| Payments for equity method investments | - | - | - | - | - | - | - | 3 | 3 | 2 | - |
|---|
| Proceeds from net working capital settlement | - | - | - | - | - | - | - | - | - | - | 2 |
|---|
| Purchases of strategic investments | - | - | - | 4 | 1 | 1 | 3 | 13 | 26 | 12 | 16 |
|---|
| Net cash and cash equivalents used in investing activities | - | - | - | - | -71 | -316 | -216 | -180 | -320 | -335 | -516 |
|---|
| Proceeds from Issuance of Long-Term Debt | - | - | - | 389 | - | - | 450 | - | - | - | - |
|---|
| Proceeds From Settlement Of Convertible Notes | - | - | - | - | - | - | 364 | 9 | 60 | - | - |
|---|
| Payments for settlement of Warrants related to the 2022 Convertible Notes | - | - | - | - | - | - | 328 | - | 0 | - | - |
|---|
| Payment for settlement of 2022 convertible notes | - | - | - | - | - | - | - | - | 80 | - | - |
|---|
| Repayment of 2025 Convertible Notes attributable to the principal | - | - | - | - | - | - | 236 | 90 | 2 | 0 | 0 |
|---|
| Payments for Capped Call Options related to the 2025 Convertible Notes | - | - | - | - | - | - | 51 | - | - | - | - |
|---|
| Proceeds from Issuance of Common Stock | - | 34 | - | - | - | 343 | - | - | - | - | - |
|---|
| Repayment of debt | - | - | - | - | - | 0 | - | - | - | - | - |
|---|
| Employee taxes paid related to the net share settlement of stock-based awards | - | 9 | 2 | 4 | 8 | 6 | 7 | 17 | 12 | 11 | 22 |
|---|
| Proceeds related to the issuance of common stock under stock plans | - | 12 | 12 | 13 | 22 | 24 | 30 | 47 | 40 | 48 | 76 |
|---|
| Repayment of finance lease obligations | - | - | - | - | - | 0 | 0 | - | - | - | - |
|---|
| Net cash and cash equivalents provided by financing activities | - | - | - | - | 13 | 359 | 222 | -51 | 7 | 37 | 53 |
|---|
| Effect on exchange rate changes on cash and cash equivalents | - | - | - | - | -2 | -1 | 7 | -9 | -7 | 5 | -12 |
|---|
| Net increase (decrease) in cash, cash equivalents and restricted cash | - | - | - | - | 24 | 161 | 103 | -1 | -46 | 58 | 125 |
|---|
| Cash paid for interest | - | - | - | - | 1 | 1 | 2 | 2 | 2 | 2 | 2 |
|---|
| Income Taxes Paid | - | 0 | 1 | 1 | 2 | 3 | 2 | 7 | 5 | 13 | 12 |
|---|
| Right-of-Use Asset Obtained in Exchange for Operating Lease Liability | - | - | - | - | - | 105 | 65 | 92 | 75 | 7 | 3 |
|---|
| Right-of-use asset reductions related to operating lease terminations | - | - | - | - | - | - | - | -47 | - | -7 | - |
|---|
| Capital expenditures incurred but not yet paid | 0 | 0 | 1 | 1 | 1 | 5 | 1 | 0 | 0 | 1 | 2 |
|---|
| Asset retirement obligations | - | - | 1 | 1 | 0 | 2 | 1 | 0 | 1 | - | - |
|---|
| Asset retirement obligations | - | - | - | - | - | - | - | - | - | -0 | - |
|---|
| Issuance Of Common Stock For Repayment Of Convertible Notes | - | - | - | - | - | - | - | 493 | - | - | - |
|---|