Summary of Significant Accounting Policies | Summary of Significant Accounting Policies Principles of Consolidation The consolidated financial statements include the accounts of the Company and its wholly-owned subsidiaries. All intercompany accounts and transactions have been eliminated in consolidation. Prior Period Reclassifications Certain prior period amounts have been reclassified to conform to the current period presentation. Use of Estimates The preparation of the Company’s consolidated financial statements in conformity with generally accepted accounting principles in the United States of America (GAAP) requires management to make estimates and assumptions that affect the reported amounts of assets, liabilities, revenue and expenses, as well as related disclosure of contingent assets and liabilities. Actual results could differ materially from the Company’s estimates. To the extent that there are material differences between these estimates and actual results, the Company’s financial condition or operating results will be affected. The Company bases its estimates on past experience and other assumptions that the Company believes are reasonable under the circumstances, and the Company evaluates these estimates on an ongoing basis. COVID-19 Impacts The COVID-19 pandemic has caused, and continues to cause, widespread economic disruption and has impacted the Company in a number of ways, most notably a significant decrease in global advertising spend in the first half of 2020, followed by a recovery in the second half of 2020. The Company expects the extent of the impact on its financial and operational results will depend on the duration and severity of the economic disruption caused by the COVID-19 pandemic. As of December 31, 2020, the Company had $7.47 billion of cash, cash equivalents and short-term investments in marketable securities. If required, the Company may take certain liquidity mitigation actions in the future; however, it does not believe such actions are necessary based on its current forecasts. The Company believes that the existing cash, cash equivalents and short-term investments balances, together with cash generated by operations will be sufficient to meet its working capital and capital expenditure requirements in the foreseeable future based on its current expectations of the impact of the COVID-19 pandemic. The Company considered the impacts of the COVID-19 pandemic on its significant estimates and judgments used in applying its accounting policies in 2020. In light of the pandemic, there is a greater degree of uncertainty in applying these judgments and depending on the duration and severity of the pandemic, changes to its estimates and judgments could result in a meaningful impact to its financial statements in future periods. Some of the more reasonably possible and significant items subject to a greater degree of uncertainty during this time include estimates of the valuation allowance against deferred tax assets, the carrying value of investments in privately-held companies, and credit losses related to accounts receivable, unbilled revenue, and investments in debt securities. Revenue Recognition The Company generates the substantial majority of its revenue from the sale of advertising services with the remaining balance from data licensing and other arrangements. The Company generates its advertising revenue primarily from the sale of its Promoted Products: (i) Promoted Tweets, (ii) Promoted Accounts and (iii) Promoted Trends. Promoted Tweets and Promoted Accounts are pay-for-performance advertising products or pay on impressions delivered, each priced through an auction. Promoted Trends are featured by geography and offered on a fixed-fee-per-day basis. Advertisers are obligated to pay when a person engages with a Promoted Tweet, follows a Promoted Account, when an impression is delivered, or when a Promoted Trend is displayed for an entire day in a particular country or on a global basis. These advertising services may be sold in combination as a bundled arrangement or separately on a stand-alone basis. For the Company's Promoted Product arrangements, significant judgments are (i) identifying the performance obligations in the contract, (ii) determining the basis for allocating contract consideration to performance obligations, (iii) determining whether the Company is the principal or the agent in arrangements where another party is involved in providing specified services to a customer, and (iv) estimating the transaction price to be allocated for contracts with tiered rebate provisions. The Company may generate revenue from the sale of certain Promoted Tweets through placement by Twitter of advertiser ads against third-party publisher content. The Company will pay the third-party publisher a revenue share fee for its right to monetize their content. In such transactions, advertisers are contracting to obtain a single integrated advertising service, the Promoted Tweet combined with the third-party publisher content, and the Company obtains control of the third-party publisher content displayed on Twitter that it then combines with the advertiser ads within the Promoted Tweet. Therefore, the Company reports advertising revenue generated from these transactions on a gross basis and records the related third-party content monetization fees as cost of revenue. The Company also generates advertising revenue by selling services in which the Company places ads on third-party publishers’ websites, applications or other offerings. To fulfill these transactions, the Company purchases advertising inventory from third-party publishers’ websites and applications where the Company has identified the advertisers’ targeted audience and therefore incurs traffic acquisition costs prior to transferring the advertising service to its customers. At such point, the Company has the sole ability to monetize the third-party publishers advertising inventory. In such transactions, the Company obtains control of a right to a service to be performed by the third-party publishers, which gives the Company the ability to direct those publishers to provide the services to the Company's customers on the Company's behalf. Therefore, the Company reports advertising revenue generated from these transactions on a gross basis and records the related traffic acquisition costs as cost of revenue. Fees for the advertising services above are recognized in the period when advertising is delivered as evidenced by a person engaging with a Promoted Tweet or an ad on a third-party publisher website or application in a manner satisfying the types of engagement selected by the advertisers, such as Tweet engagements (e.g., Retweets, replies and likes), website clicks, mobile application installs or engagements, obtaining new followers, or video views, following a Promoted Account, delivery of impressions, or through the display of a Promoted Trend on the Company's platform. The Company has concluded that its data licensing arrangements, which grant customers a right to its intellectual property (IP) for a defined period of time, may contain a single performance obligation satisfied at a point in time (Historical IP) or over time (Future IP), or may contain two or more performance obligations satisfied separately at a point in time (Historical IP) and over time (Future IP). In some of the Company's data licensing arrangements, pricing is a fixed monthly fee over a specified term. In arrangements with a single performance obligation satisfied over time, data licensing revenue is recognized on a straight-line basis over the period in which the Company provides data as the customer consumes and benefits from the continuous data available on an ongoing basis. In arrangements with at least two performance obligations, the Company allocates revenue on a relative basis between the performance obligations based on standalone selling price (SSP) and recognizes revenue as the performance obligations are satisfied. In other data licensing arrangements, the Company charges customers based on the amount of sales they generate from downstream customers using Twitter data. Certain of those royalty-based data licensing arrangements are subject to minimum guarantees. For such arrangements with a minimum guarantee and a single Future IP performance obligation, the Company recognizes revenue for minimum guarantees on a straight-line basis over the period in which the Company provides data. For such arrangements with a minimum guarantee and two or more performance obligations, the Company allocates revenue on a relative basis between the performance obligations based on SSP and recognizes revenue as the performance obligations are satisfied. Royalties in excess of minimum guarantees, if any, are recognized as revenue over the contract term, on a straight-line, cumulative catch-up basis. This reflects the nature of the Company’s performance obligation, which is a series of distinct monthly periods of providing a license of IP. For data licensing arrangements involving two or more performance obligations, the Company uses directly observable standalone transactions to determine SSP of Historical IP. The Company uses standalone transactions and considers all other reasonably available observable evidence to estimate SSP of Future IP. Other revenue is primarily generated from service fees from transactions completed on the Company's mobile ad exchange. The Company's mobile ad exchange enables buyers and sellers to purchase and sell advertising inventory by matching them in the exchange. The Company has determined it is not the principal in the purchase and sale of advertising inventory in transactions between third-party buyers and sellers on the exchange because the Company does not obtain control of the advertising inventory. The Company reports revenue related to its ad exchange services on a net basis for the fees paid by buyers, net of costs related to acquiring the advertising inventory paid to sellers. Arrangements involving multiple performance obligations primarily consist of combinations of the Company's pay-for-performance products, Promoted Tweets and Promoted Accounts, which are priced through an auction, and Promoted Trends, which are priced on a fixed-fee-per day, per geography basis. For arrangements that include a combination of these products, the Company develops an estimate of the standalone selling price for these products in order to allocate any potential discount to all performance obligations in the arrangement. The estimate of standalone selling price for pay-for-performance auction based products is determined based on the winning bid price. The estimate of standalone selling price for Promoted Trends is based on Promoted Trends sold on a standalone basis and/or separately priced in a bundled arrangement by reference to a list price by geography, which is updated and approved periodically. For other arrangements involving multiple performance obligations where neither auction pricing nor standalone sales provide sufficient evidence of standalone selling price, the Company estimates standalone selling price using either an adjusted market assessment approach or an expected cost plus margin approach. The Company believes the use of its estimation approach and allocation of the transaction price on a relative standalone selling price basis to each performance obligation results in revenue recognition in a manner consistent with the underlying economics of the transaction and the allocation principle included in Topic 606. The Company has elected to exclude certain sales and indirect taxes from the determination of the transaction price. Cost of Revenue Cost of revenue includes infrastructure costs, other direct costs including revenue share expenses, amortization expense of technology acquired through acquisitions and amortization of capitalized labor costs for internally developed software, allocated facilities costs, as well as traffic acquisition costs (TAC). Infrastructure costs consist primarily of data center costs related to the Company’s co-located facilities, which include lease and hosting costs, related support and maintenance costs and energy and bandwidth costs, public cloud hosting costs, as well as depreciation of servers and networking equipment, and personnel-related costs, including salaries, benefits and stock-based compensation, for its operations teams. Revenue share expenses are primarily related to payments to providers from whom the Company licenses content, in order to increase engagement on the platform. The fees paid to these content providers may be based on revenues generated, or a minimum guaranteed fee. TAC consists of costs incurred with third parties in connection with the sale to advertisers of advertising products that the Company places on third-party publishers’ websites, applications or other offerings collectively resulting from acquisitions. Stock-Based Compensation Expense The Company accounts for stock-based compensation expense under the fair value recognition and measurement provisions of GAAP. Stock-based awards granted to employees are measured based on the grant-date fair value. For service-based restricted stock awards and performance-based restricted stock awards, the Company recognizes the compensation expense only for those awards expected to meet the performance and service vesting conditions. For service-based restricted stock awards, expense is recognized on a straight-line basis over the requisite service period. The service condition for restricted stock awards is generally satisfied over four years, but has been up to five years in certain circumstances. For performance-based restricted stock awards, expense is recognized on a graded basis over the requisite service period. For market-based restricted stock awards, the Company recognizes the compensation expense on a graded basis over the requisite service period regardless of whether the market condition is satisfied, provided that the requisite service has been provided. The requisite service period for performance-based and market-based restricted stock awards is generally up to three years. The Company accounts for forfeitures as they occur. The Company estimates the fair value of stock options granted and stock purchase rights provided under the Company’s employee stock purchase plan using the Black-Scholes option pricing model on the dates of grant. The compensation expense related to stock options and employee stock purchase rights is recognized on a straight-line basis over the requisite service period. The fair value of market-based restricted stock awards is determined using a Monte Carlo simulation to estimate the grant date fair value. The Company issues restricted stock subject to a lapsing right of repurchase to continuing employees of certain acquired companies. Since these issuances are subject to post-acquisition employment, the Company accounts for them as post-acquisition stock-based compensation expense. The grant-date fair value of restricted stock granted in connection with acquisitions is recognized as stock-based compensation expense on a straight-line basis over the requisite service period. Business Combinations The Company allocates the purchase price of the acquisition to the tangible and intangible assets acquired and liabilities assumed based on their estimated fair values at the acquisition dates. The excess of the purchase price over those fair values is recorded as goodwill. During the measurement period, which may be up to one year from the acquisition date, the Company may record adjustments to the assets acquired and liabilities assumed with the corresponding offset to goodwill. Upon the conclusion of the measurement period or final determination of the values of assets acquired or liabilities assumed, whichever comes first, any subsequent adjustments are recorded to the consolidated statements of operations. Investments in Privately-Held Companies The Company makes strategic investments in privately-held companies. The Company also evaluates each investee to determine if the investee is a variable interest entity and, if so, whether the Company is the primary beneficiary of the variable interest entity. The Company has determined, as of December 31, 2020, there were no variable interest entities required to be consolidated in the Company’s consolidated financial statements. The Company’s investments in privately-held companies are primarily non-marketable equity securities without readily determinable fair values. The Company accounts for its investments in privately-held companies either under equity method accounting or by adjusting the carrying value of its non-marketable equity securities to fair value upon observable transactions for identical or similar investments of the same issuer or upon impairment (referred to as the measurement alternative). The investments in privately-held companies are included within Other Assets on the consolidated balance sheets. All gains and losses on non-marketable equity securities, realized and unrealized, are recognized in other income (expense), net in the consolidated statements of operations. The Company periodically evaluates the carrying value of the investments in privately-held companies when events and circumstances indicate that the carrying amount of the investment may not be recovered. The Company estimates the fair value of the investments to assess whether impairment losses shall be recorded using Level 3 inputs. These investments include the Company’s holdings in privately-held companies that are not exchange traded and therefore not supported with observable market prices; hence, the Company may determine the fair value by reviewing equity valuation reports, current financial results, long-term plans of the privately-held companies, the amount of cash that the privately-held companies have on-hand, the ability to obtain additional financing and overall market conditions in which the privately-held companies operate or based on the price observed from the most recent completed financing. Loss Contingencies The Company is currently involved in, and may in the future be involved in, legal proceedings, claims, investigations, and government inquiries and investigations arising in the ordinary course of business. The Company records a liability when it believes that it is both probable that a loss has been incurred and the amount or range can be reasonably estimated. If the Company determines there is a reasonable possibility that it may incur a loss and the loss or range of loss can be estimated, it discloses the possible loss to the extent material. Significant judgment is required to determine both probability and the estimated amount. The Company reviews these provisions on a quarterly basis and adjusts these provisions accordingly to reflect the impact of negotiations, settlements, rulings, advice of legal counsel, and updated information. Operating and Finance Leases The Company has operating leases primarily for office space and data center facilities. The determination of whether an arrangement is a lease or contains a lease is made at inception by evaluating whether the arrangement conveys the right to use an identified asset and whether the Company obtains substantially all of the economic benefits from and has the ability to direct the use of the asset. Operating leases are included in operating lease right-of-use assets, operating lease liabilities, short-term, and operating lease liabilities, long-term on the Company’s consolidated balance sheets. With the exception of initial adoption of the new lease standard, where the Company’s incremental borrowing rate used was the rate on the adoption date (January 1, 2019), operating lease ROU assets and operating lease liabilities are recognized based on the present value of lease payments over the lease term at the lease commencement date. To determine the incremental borrowing rate used to calculate the present value of future lease payments, the Company uses information including the Company’s credit rating, interest rates of similar debt instruments of entities with comparable credit ratings, the Company's recent debt issuances, and Twitter, Inc.’s guarantee of certain leases in foreign jurisdictions, as applicable. Certain lease agreements contain options for the Company to renew or early terminate a lease. The Company considers these options, which may be elected at the Company’s sole discretion, in determining the lease term on a lease-by-lease basis. Leases with an initial term of twelve months or less are not recognized on the consolidated balance sheets. The Company recognizes lease expense for these leases on a straight-line basis over the term of the lease. The Company also has server and networking equipment lease arrangements with original lease terms ranging from three four The Company’s lease agreements generally do not contain any material residual value guarantees or material restrictive covenants. Certain of the Company’s leases contain free or escalating rent payment terms. Additionally, certain lease agreements contain lease components (for example, fixed payments such as rent) and non-lease components such as common-area maintenance costs. For each asset class of the Company’s leases—real estate offices, data centers, and equipment—the Company has elected to account for both of these provisions as a single lease component. For arrangements accounted for as a single lease component, there may be variability in future lease payments as the amount of the non-lease components is typically revised from one period to the next. These variable lease payments, which are primarily comprised of common-area maintenance, utilities, and real estate taxes that are passed on from the lessor in proportion to the space leased by the Company, are recognized in operating expenses in the period in which the obligation for those payments was incurred. The Company recognizes lease expense for its operating leases in operating expenses on a straight-line basis over the term of the lease. The Company subleases certain leased office space to third parties when it determines there is excess leased capacity. Certain of these subleases contain both lease and non-lease components. The Company has elected to account for both of these provisions as a single lease component. Sublease rent income is recognized as an offset to operating expense on a straight-line basis over the lease term. In addition to sublease rent, variable non-lease costs such as common-area maintenance, utilities, and real estate taxes are charged to subtenants over the duration of the lease for their proportionate share of these costs. These variable non-lease income receipts are recognized in operating expenses as a reduction to costs incurred by the Company in relation to the head lease. Cash, Cash Equivalents and Investments The Company invests its excess cash primarily in short-term fixed income securities, including government and investment-grade debt securities and money market funds. The Company classifies all liquid investments with stated maturities of three months or less from date of purchase as cash equivalents. The Company classifies all marketable securities for use in current operations, even if the security matures beyond 12 months, and presents them as short-term investments in the consolidated balance sheets. As of December 31, 2020 and 2019, the Company has restricted cash balances of $2.3 million and $1.9 million, respectively, within prepaid expenses and other current assets and $20.6 million and $26.7 million, respectively, in other assets on the accompanying consolidated balance sheets based upon the term of the remaining restrictions. These restricted cash balances are primarily cash deposits to back letters of credit related to certain property leases. The Company determines the appropriate classification of its investments in marketable securities at the time of purchase and reevaluates such designation at each balance sheet date. The Company has classified and accounted for its marketable securities as available-for-sale. After considering the Company’s capital preservation objectives, as well as its liquidity requirements, the Company may sell securities prior to their stated maturities. The Company carries its available-for-sale securities at fair value. The Company reports the unrealized gains and losses, net of taxes, as a component of stockholders’ equity, except for unrealized losses determined to be credit-related, which are recorded as other income (expense), net in the consolidated statements of operations and reports an allowance for credit losses in short-term investments on the balance sheet, if any. The Company determines any realized gains or losses on the sale of marketable securities on a specific identification method and records such gains and losses as a component of other income (expense), net. Interest earned on cash, cash equivalents, and marketable securities was $88.2 million, $157.7 million, and $111.2 million during the years ended December 31, 2020, 2019 and 2018, respectively. These amounts are recorded in interest income in the accompanying consolidated statements of operations. The Company's investment policy only allows purchases of investment-grade notes and provides guidelines on concentrations to ensure minimum risk of loss. The Company evaluates whether the unrealized loss on available-for-sale debt securities is the result of the credit worthiness of the corporate notes it held, or other non-credit-related factors such as liquidity by reviewing a number of factors such as the implied yield of the corporate note based on the market price, the nature of the invested entity's business or industry, market capitalization relative to debt, changes in credit ratings, and the market prices of the corporate notes subsequent to period end. As of December 31, 2020, the gross unrealized loss on available-for-sale debt securities was immaterial and there were no expected credit losses related to the Company's available-for-sale debt securities. The Company does not intend to sell these investments and it is not more likely than not that the Company will be required to sell these investments before recovery of their amortized cost bases. As of December 31, 2020, no allowance for credit losses in short-term investments was recorded. Concentration of Credit Risk Financial instruments that potentially subject the Company to significant concentration of credit risk consist primarily of cash, cash equivalents, short-term investments and accounts receivable. The primary focus of the Company’s investment strategy is to preserve capital and meet liquidity requirements. The Company’s investment policy addresses the level of credit exposure by limiting the concentration in any one corporate issuer or sector and establishing a minimum allowable credit rating. To manage the risk exposure, the Company invests cash equivalents and short-term investments in a variety of fixed income securities, including government and investment-grade debt securities and money market funds. The Company places its cash primarily in checking and money market accounts with reputable financial institutions. Deposits held with these financial institutions may exceed the amount of insurance provided on such deposits, if any. The Company’s accounts receivable are typically unsecured and are derived from customers around the world in different industries. The Company includes terms in its contracts providing the ability to stop transferring promised goods or services, performs ongoing credit evaluations of its customers, and maintains allowances for potential credit losses. Historically, such losses have been within management’s expectations. As of December 31, 2020 and 2019, no single customer accounted for more than 10% of the Company’s net accounts receivable balances. No single customer accounted for more than 10% of the Company’s revenue in the years ended December 31, 2020, 2019 and 2018. The Company’s note hedge transactions, entered into in connection with the Convertible Notes, as defined and further described in Note 5 – Fair Value Measurements, and its derivative financial instruments expose the Company to credit risk to the extent that its counterparties may be unable to meet the terms of the transactions. The Company mitigates this risk by limiting its counterparties to major financial institutions and using multiple financial institutions as counterparties in its hedge transactions. Accounts Receivable, Net The Company records accounts receivable at the invoiced amount. The Company maintains an allowance for doubtful accounts to reserve for potentially uncollectible receivable amounts. In evaluating the Company’s ability to collect outstanding receivable balances, the Company considers various factors including the age of the balance, the creditworthiness of the customer, which is assessed based on ongoing credit evaluations and payment history, the customer’s current financial condition, and considers macroeconomic factors to estimate expected future credit losses. In the year ended December 31, 2020, the Company recorded a $17.2 million increment in the allowance for doubtful accounts, offset by $2.7 million of write-offs and other adjustments. Unbilled Revenue (Contract Assets) The Company evaluates whether its unbilled revenue is exposed to potential credit losses by considering factors such as the creditworthiness of its customers, the term over which unbilled revenue will be recognized, historical impairment of unbilled revenue, and contemplation of projected macroeconomic factors. As of December 31, 2020, the Company recorded an immaterial amount of allowance for credit losses on unbilled revenue. Property and Equipment, Net Property and equipment are stated at cost and depreciated using the straight-line method over the estimated useful lives of the assets. Leasehold improvements are amortized using the straight-line method over the shorter of the lease term or the estimated useful life. The estimated useful lives of property and equipment are described below: Property and Equipment Estimated Useful Life Computer hardware, networking and office equipment Three Computer software Up to five Furniture and fixtures Five years Leasehold improvements Lesser of estimated useful life or remaining lease term The Company reviews the remaining estimated useful lives of its property and equipment on an ongoing basis. Management is required to use judgment in determining the estimated useful lives of such assets. Changes in circumstances such as technological advances, changes to the Company’s business model, changes in the Company’s business strategy, or changes in the planned use of property and equipment could result in the actual useful lives differing from the Company’s current estimates. In cases where the Company determines that the estimated useful life of property and equipment should be shortened or extended, the Company would apply the new estimated useful life prospectively. The Company reviews property and equipment for impairment when events or circumstances indicate the carrying amount may not be recoverable. Costs of maintenance and repairs that do not improve or extend the lives of the respective assets are expensed as incurred. Upon retirement or sale, the cost and related accumulated depreciation are removed from the balance sheet and the resulting gain or loss is reflected in operating expenses. Capitalization of Interest Interest costs are capitalized for assets that are constructed for the Company’s own internal use, including internally developed software and property and equipment, for the period of time to get them ready for their intended use. During the years ended December 31, 2020, 2019 and 2018, the Company capitalized $3.8 million, $4.6 million, and $3.7 million of interest expense, respectively. Goodwill Goodwill represents the excess of the purchase price over the fair value of the net tangible and intangible assets acquired in a business combination. Goodwill is not amortized, but is tested for impairment at least annually or more frequently if events or changes in circumstances indicate that the asset may be impaired. The Company’s impairment tests are based on a single operating segment and reporting unit structure. If the carrying value of the reporting unit exceeds its fair value, an impairment charge is recognized for the excess of the carrying value of the reporting unit over its fair value. The Company conducted its ann |