v3.24.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Cash flows from operating activities      
Net loss $ (1,322,485) $ (1,429,653) $ (487,955)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation and amortization 168,441 202,173 119,141
Stock-based compensation 1,324,004 1,387,787 1,092,135
Amortization of debt issuance costs 7,361 6,865 4,311
Losses (gains) on debt and equity securities, net 33,027 36,838 (289,052)
Induced conversion expense related to convertible notes 0 0 41,538
Other (26,958) 15,596 8,643
Change in operating assets and liabilities, net of effect of acquisitions:      
Accounts receivable, net of allowance (98,127) (119,780) (332,967)
Prepaid expenses and other current assets (9,920) (40,917) (26,607)
Operating lease right-of-use assets 70,674 71,441 47,258
Other assets 2,238 (504) (10,916)
Accounts payable 94,988 46,492 53,579
Accrued expenses and other current liabilities 62,130 71,706 117,092
Operating lease liabilities (68,007) (68,886) (49,294)
Other liabilities 9,155 5,456 5,974
Net cash provided by (used in) operating activities 246,521 184,614 292,880
Cash flows from investing activities      
Purchases of property and equipment (211,727) (129,306) (69,875)
Purchases of strategic investments (7,770) (26,346) (41,160)
Sales of strategic investments 7,559 63,276 36,777
Cash paid for acquisitions, net of cash acquired (50,254) (67,067) (310,915)
Purchases of marketable securities (2,048,273) (3,485,638) (2,438,983)
Sales of marketable securities 459,481 75,716 379,555
Maturities of marketable securities 2,424,717 2,525,215 2,536,725
Other (2,779) (18,125) (1,897)
Net cash provided by (used in) investing activities 570,954 (1,062,275) 90,227
Cash flows from financing activities      
Proceeds from issuance of convertible notes, net of issuance costs 0 1,483,500 1,137,227
Purchase of capped calls 0 (177,000) (86,825)
Proceeds from the exercise of stock options 1,038 4,272 14,671
Payments of debt issuance costs 0 (3,006) 0
Repurchases of Class A non-voting common stock (189,394) (1,001,052) 0
Deferred payments for acquisitions (270,433) 0 0
Net cash provided by (used in) financing activities (458,789) 306,714 1,065,073
Change in cash, cash equivalents, and restricted cash 358,686 (570,947) 1,448,180
Cash, cash equivalents, and restricted cash, beginning of period 1,423,776 1,994,723 546,543
Cash, cash equivalents, and restricted cash, end of period 1,782,462 1,423,776 1,994,723
Supplemental disclosures      
Cash paid for income taxes, net 30,924 12,087 25,333
Cash paid for interest $ 10,244 $ 8,873 $ 10,887