CONDENSED CONSOLIDATED STATEMENTS OF MEZZANIE EQUITY AND EQUITY (DEFICIT) - USD ($) shares in Thousands, $ in Millions | Total | Cumulative Effect, Period of Adoption, Adjustment | Redeemable Non-Controlling Interests | Redeemable Convertible Preferred Stock | Common Stock | Additional Paid-In Capital | Accumulated Other Comprehensive Loss | Accumulated Deficit | Accumulated DeficitCumulative Effect, Period of Adoption, Adjustment | Non-Redeemable Non-Controlling Interests |
Mezzanine Equity, Amount at Dec. 31, 2018 | | | $ 0 | $ 14,177 | | | | | | |
Mezzanine Equity, Shares at Dec. 31, 2018 | | | | 903,607 | | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | | | |
Exercise of warrants | | | | $ 45 | | | | | | |
Exercise of warrants (in shares) | | | | 923 | | | | | | |
Lapsing of repurchase option related to Series E redeemable convertible preferred stock issued to a non-employee service provider | | | | $ 2 | | | | | | |
Mezzanine equity, net loss | | | (4) | | | | | | | |
Mezzanine Equity, Amount at Mar. 31, 2019 | | | (4) | $ 14,224 | | | | | | |
Mezzanine Equity, Shares at Mar. 31, 2019 | | | | 904,530 | | | | | | |
Stockholders' equity, beginning balance at Dec. 31, 2018 | $ (7,385) | $ 9 | | | $ 0 | $ 668 | $ (188) | $ (7,865) | $ 9 | |
Shares, outstanding at Dec. 31, 2018 | | | | | 457,189 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | |
Lapsing of repurchase option related to Series E redeemable convertible preferred stock issued to a non-employee service provider | | | | $ 2 | | | | | | |
Repurchase of outstanding shares | 0 | | | | | | | | | |
Repurchase of outstanding shares (in shares) | | | | | (1) | | | | | |
Exercise of stock options | 4 | | | | | 4 | | | | |
Exercise of stock options (in shares) | | | | | 677 | | | | | |
Repurchase of unvested early-exercised stock options | 0 | | | | | | | | | |
Repurchase of unvested early-exercised stock options (in shares) | | | | | (32) | | | | | |
Stock-based compensation | 10 | | | | | 10 | | | | |
Unrealized gain (loss) on investments in available-for-sale securities, net of tax | (4) | | | | | | (4) | | | |
Foreign currency translation adjustment | (54) | | | | | | (54) | | | |
Net loss | (1,012) | | | | | | | (1,012) | | |
Shares, outstanding at Mar. 31, 2019 | | | | | 457,833 | | | | | |
Stockholders' equity, ending balance at Mar. 31, 2019 | (8,432) | | | | $ 0 | 682 | (246) | (8,868) | | |
Mezzanine Equity, Amount at Dec. 31, 2018 | | | 0 | $ 14,177 | | | | | | |
Mezzanine Equity, Shares at Dec. 31, 2018 | | | | 903,607 | | | | | | |
Mezzanine Equity, Amount at Sep. 30, 2019 | | | 309 | $ 0 | | | | | | |
Mezzanine Equity, Shares at Sep. 30, 2019 | | | | 0 | | | | | | |
Stockholders' equity, beginning balance at Dec. 31, 2018 | (7,385) | $ 9 | | | $ 0 | 668 | (188) | (7,865) | $ 9 | |
Shares, outstanding at Dec. 31, 2018 | | | | | 457,189 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | |
Unrealized gain (loss) on investments in available-for-sale securities, net of tax | 0 | | | | | | | | | |
Foreign currency translation adjustment | 3 | | | | | | | | | |
Shares, outstanding at Sep. 30, 2019 | | | | | 1,703,629 | | | | | |
Stockholders' equity, ending balance at Sep. 30, 2019 | 15,742 | | | | $ 0 | 30,513 | (185) | (15,266) | | $ 680 |
Mezzanine Equity, Amount at Mar. 31, 2019 | | | (4) | $ 14,224 | | | | | | |
Mezzanine Equity, Shares at Mar. 31, 2019 | | | | 904,530 | | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | | | |
Lapsing of repurchase option related to Series E redeemable convertible preferred stock issued to a non-employee service provider | 3 | | | | | 3 | | | | |
Conversion of redeemable convertible preferred stock to common stock in connection with initial public offering (in shares) | | | | (904,530) | 904,530 | | | | | |
Conversion of redeemable convertible preferred stock to common stock in connection with initial public offering | 14,224 | | | $ (14,224) | | 14,224 | | | | |
Mezzanine equity, net loss | | | (10) | | | | | | | |
Mezzanine Equity, Amount at Jun. 30, 2019 | | | (14) | $ 0 | | | | | | |
Mezzanine Equity, Shares at Jun. 30, 2019 | | | | 0 | | | | | | |
Stockholders' equity, beginning balance at Mar. 31, 2019 | (8,432) | | | | $ 0 | 682 | (246) | (8,868) | | |
Shares, outstanding at Mar. 31, 2019 | | | | | 457,833 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | |
Lapsing of repurchase option related to Series E redeemable convertible preferred stock issued to a non-employee service provider | 3 | | | | | 3 | | | | |
Conversion of warrant to common stock in connection with initial public offering | 6 | | | | | 6 | | | | |
Conversion of warrant to common stock in connection with initial public offering (in shares) | | | | | 150 | | | | | |
Conversion of convertible notes to common stock in connection with initial public offering | 4,229 | | | | | 4,229 | | | | |
Conversion of convertible notes to common stock in connection with initial public offering (in shares) | | | | | 93,978 | | | | | |
Exercise of stock options | 1 | | | | | 1 | | | | |
Exercise of stock options (in shares) | | | | | 501 | | | | | |
Stock-based compensation | 3,943 | | | | | 3,943 | | | | |
Issuance of common stock in connection with initial public offering, net of offering costs (in shares) | | | | | 180,000 | | | | | |
Issuance of common stock in connection with initial public offering, net of offering costs | 7,973 | | | | | 7,973 | | | | |
Conversion of redeemable convertible preferred stock to common stock in connection with initial public offering (in shares) | | | | (904,530) | 904,530 | | | | | |
Conversion of redeemable convertible preferred stock to common stock in connection with initial public offering | 14,224 | | | $ (14,224) | | 14,224 | | | | |
Issuance of common stock related to private placement | 500 | | | | | 500 | | | | |
Issuance of common stock related to private placement (in shares) | | | | | 11,111 | | | | | |
Issuance of common stock for settlement of RSUs (in shares) | | | | | 80,015 | | | | | |
Shares withheld related to net share settlement | (1,368) | | | | | (1,368) | | | | |
Shares withheld related to net share settlement (in shares) | | | | | (30,504) | | | | | |
Unrealized gain (loss) on investments in available-for-sale securities, net of tax | 8 | | | | | | 8 | | | |
Foreign currency translation adjustment | 71 | | | | | | 71 | | | |
Net loss | (5,236) | | | | | | | (5,236) | | |
Shares, outstanding at Jun. 30, 2019 | | | | | 1,697,614 | | | | | |
Stockholders' equity, ending balance at Jun. 30, 2019 | 15,922 | | | | $ 0 | 30,193 | (167) | (14,104) | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | | | |
Lapsing of repurchase option related to Series E redeemable convertible preferred stock issued to a non-employee service provider | 2 | | | | | 2 | | | | |
Issuance of non-controlling interests | | | 333 | | | | | | | |
Mezzanine equity, net loss | | | (10) | | | | | | | |
Mezzanine Equity, Amount at Sep. 30, 2019 | | | 309 | $ 0 | | | | | | |
Mezzanine Equity, Shares at Sep. 30, 2019 | | | | 0 | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | |
Lapsing of repurchase option related to Series E redeemable convertible preferred stock issued to a non-employee service provider | 2 | | | | | 2 | | | | |
Exercise of stock options | 0 | | | | | 0 | | | | |
Exercise of stock options (in shares) | | | | | 94 | | | | | |
Stock-based compensation | 426 | | | | | 426 | | | | |
Adjustments to Additional Paid in Capital, Income Tax Benefit from Share-based Compensation | 20 | | | | | 20 | | | | |
ssuance And Repayment Of Employee Loans Collateralized By Outstanding Common Stock | 10 | | | | | 10 | | | | |
Issuance of common stock in connection with initial public offering, net of offering costs (in shares) | | | | | 188 | | | | | |
Issuance of common stock in connection with initial public offering, net of offering costs | 9 | | | | | 9 | | | | |
Issuance of common stock for settlement of RSUs (in shares) | | | | | 9,553 | | | | | |
Shares withheld related to net share settlement | (147) | | | | | (147) | | | | |
Shares withheld related to net share settlement (in shares) | | | | | (3,820) | | | | | |
Issuance of non-controlling interests | 667 | | | | | | | | | 667 |
Unrealized gain (loss) on investments in available-for-sale securities, net of tax | (4) | | | | | | (4) | | | |
Foreign currency translation adjustment | (14) | | | | | | (14) | | | |
Net loss | (1,149) | | | | | | | (1,162) | | 13 |
Shares, outstanding at Sep. 30, 2019 | | | | | 1,703,629 | | | | | |
Stockholders' equity, ending balance at Sep. 30, 2019 | 15,742 | | | | $ 0 | 30,513 | (185) | (15,266) | | 680 |
Mezzanine Equity, Amount at Dec. 31, 2019 | | | 311 | | | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | | | |
Distributions to non-controlling interests | (4) | | (3) | | | | | | | (4) |
Mezzanine equity, net loss | | | (18) | | | | | | | |
Mezzanine Equity, Amount at Mar. 31, 2020 | | | 290 | | | | | | | |
Stockholders' equity, beginning balance at Dec. 31, 2019 | $ 14,872 | | | | $ 0 | 30,739 | (187) | (16,362) | | 682 |
Shares, outstanding at Dec. 31, 2019 | 1,716,681 | | | | 1,716,681 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | |
Exercise of stock options | $ 14 | | | | | 14 | | | | |
Exercise of stock options (in shares) | | | | | 4,359 | | | | | |
Stock-based compensation | 285 | | | | | 285 | | | | |
Issuance of common stock for settlement of RSUs (in shares) | | | | | 8,917 | | | | | |
Shares withheld related to net share settlement | (3) | | | | | (3) | | | | |
Shares withheld related to net share settlement (in shares) | | | | | (107) | | | | | |
Unrealized gain (loss) on investments in available-for-sale securities, net of tax | (60) | | | | | | (60) | | | |
Foreign currency translation adjustment | (148) | | | | | | (148) | | | |
Distributions to non-controlling interests | (4) | | (3) | | | | | | | (4) |
Net loss | (2,928) | | | | | | | (2,936) | | |
Net loss | | | | | | | | | | 8 |
Shares, outstanding at Mar. 31, 2020 | | | | | 1,729,850 | | | | | |
Stockholders' equity, ending balance at Mar. 31, 2020 | 12,028 | | | | $ 0 | 31,035 | (395) | (19,298) | | 686 |
Mezzanine Equity, Amount at Dec. 31, 2019 | | | 311 | | | | | | | |
Mezzanine Equity, Amount at Sep. 30, 2020 | | | 549 | | | | | | | |
Stockholders' equity, beginning balance at Dec. 31, 2019 | $ 14,872 | | | | $ 0 | 30,739 | (187) | (16,362) | | 682 |
Shares, outstanding at Dec. 31, 2019 | 1,716,681 | | | | 1,716,681 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | |
Unrealized gain (loss) on investments in available-for-sale securities, net of tax | $ 10 | | | | | | | | | |
Foreign currency translation adjustment | $ (268) | | | | | | | | | |
Shares, outstanding at Sep. 30, 2020 | 1,760,817 | | | | 1,760,817 | | | | | |
Stockholders' equity, ending balance at Sep. 30, 2020 | $ 9,633 | | | | $ 0 | 31,549 | (445) | (22,162) | | 691 |
Mezzanine Equity, Amount at Mar. 31, 2020 | | | 290 | | | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | | | |
Distributions to non-controlling interests | (5) | | (3) | | | | | | | (5) |
Mezzanine equity, net loss | | | (5) | | | | | | | |
Mezzanine Equity, Amount at Jun. 30, 2020 | | | 282 | | | | | | | |
Stockholders' equity, beginning balance at Mar. 31, 2020 | 12,028 | | | | $ 0 | 31,035 | (395) | (19,298) | | 686 |
Shares, outstanding at Mar. 31, 2020 | | | | | 1,729,850 | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | |
Exercise of stock options | 8 | | | | | 8 | | | | |
Exercise of stock options (in shares) | | | | | 3,106 | | | | | |
Stock-based compensation | 143 | | | | | 143 | | | | |
Issuance of common stock under the Employee Stock Purchase Plan | 82 | | | | | 82 | | | | |
Issuance of common stock under the Employee Stock Purchase Plan (in shares) | | | | | 3,265 | | | | | |
Issuance of common stock for settlement of RSUs (in shares) | | | | | 9,778 | | | | | |
Shares withheld related to net share settlement | (1) | | | | | (1) | | | | |
Shares withheld related to net share settlement (in shares) | | | | | (42) | | | | | |
Unrealized gain (loss) on investments in available-for-sale securities, net of tax | 8 | | | | | | 8 | | | |
Foreign currency translation adjustment | (257) | | | | | | (257) | | | |
Distributions to non-controlling interests | (5) | | (3) | | | | | | | (5) |
Net loss | (1,767) | | | | | | | (1,775) | | |
Net loss | | | | | | | | | | 8 |
Shares, outstanding at Jun. 30, 2020 | | | | | 1,745,957 | | | | | |
Stockholders' equity, ending balance at Jun. 30, 2020 | 10,239 | | | | | 31,267 | (644) | (21,073) | | 689 |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | | | |
Recognition of non-controlling interest on acquisition | | | 290 | | | | | | | |
Distributions to non-controlling interests | (1) | | (1) | | | | | | | (1) |
Mezzanine equity, net loss | | | (22) | | | | | | | |
Mezzanine Equity, Amount at Sep. 30, 2020 | | | 549 | | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | |
Exercise of stock options | 6 | | | | | 6 | | | | |
Exercise of stock options (in shares) | | | | | 1,430 | | | | | |
Stock-based compensation | 191 | | | | | 191 | | | | |
Issuance of common stock for settlement of RSUs (in shares) | | | | | 10,791 | | | | | |
Shares withheld related to net share settlement | (11) | | | | | (11) | | | | |
Shares withheld related to net share settlement (in shares) | | | | | (356) | | | | | |
Unrealized gain (loss) on investments in available-for-sale securities, net of tax | 62 | | | | | | 62 | | | |
Foreign currency translation adjustment | 137 | | | | | | 137 | | | |
Issuance of common stock as consideration for acquisitions (in shares) | | | | | 2,995 | | | | | |
Issuance of common stock as consideration for acquisitions | 96 | | | | | 96 | | | | |
Distributions to non-controlling interests | (1) | | $ (1) | | | | | | | (1) |
Net loss | $ (1,086) | | | | | | | (1,089) | | |
Net loss | | | | | | | | | | 3 |
Shares, outstanding at Sep. 30, 2020 | 1,760,817 | | | | 1,760,817 | | | | | |
Stockholders' equity, ending balance at Sep. 30, 2020 | $ 9,633 | | | | $ 0 | $ 31,549 | $ (445) | $ (22,162) | | $ 691 |