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] | | | | | | | | | | |
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 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 Jun. 30, 2019 | | | (14) | $ 0 | | | | | | |
Mezzanine Equity, Shares at Jun. 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 loss on investments in available-for-sale securities, net of tax | 4 | | | | | | | | | |
Foreign currency translation adjustment | 17 | | | | | | | | | |
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) | | |
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 | | | | |
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] | | | | | | | | | | |
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 | | | | |
Unrealized loss on investments in available-for-sale securities, net of tax | 8 | | | | | | 8 | | | |
Foreign currency translation adjustment | 71 | | | | | | 71 | | | |
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) | | | | | |
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) | | |
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 | | | | |
Unrealized loss on investments in available-for-sale securities, net of tax | (60) | | | | | | (60) | | | |
Foreign currency translation adjustment | (148) | | | | | | (148) | | | |
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) | | | | | |
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 Jun. 30, 2020 | | | 282 | | | | | | | |
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 loss on investments in available-for-sale securities, net of tax | $ (52) | | | | | | | | | |
Foreign currency translation adjustment | $ (405) | | | | | | | | | |
Shares, outstanding at Jun. 30, 2020 | 1,745,957 | | | | 1,745,957 | | | | | |
Stockholders' equity, ending balance at Jun. 30, 2020 | $ 10,239 | | | | $ 0 | 31,267 | (644) | (21,073) | | 689 |
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 | | | | | |
Unrealized loss on investments in available-for-sale securities, net of tax | 8 | | | | | | 8 | | | |
Foreign currency translation adjustment | (257) | | | | | | (257) | | | |
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) | | | | | |
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 | | | | 1,745,957 | | | | | |
Stockholders' equity, ending balance at Jun. 30, 2020 | $ 10,239 | | | | $ 0 | $ 31,267 | $ (644) | $ (21,073) | | $ 689 |