Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Liquidity 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 upon consolidation. Accounting Estimates The preparation of financial statements in conformity with accounting principles generally accepted in the United States (“GAAP”) requires management to make certain estimates and assumptions that affect the amounts reported in the financial statements and accompanying notes. The Company is subject to uncertainties such as the impact of future events, economic and political factors and changes in the Company’s business environment; therefore, actual results could differ from these estimates. Accordingly, the accounting estimates used in the preparation of the Company’s financial statements will change as new events occur, as more experience is acquired, as additional information is obtained and as the Company’s operating environment changes. Changes in estimates are made when circumstances warrant. Such changes in estimates and refinements in estimation methodologies are reflected in reported results of operations and if material, the effects of changes in estimates are disclosed in the notes to the consolidated financial statements. Significant estimates and assumptions by management affect the allowances for doubtful accounts and customer revenue credits, the carrying value of long-lived assets (including goodwill and intangible assets), the useful lives of long-lived assets, the accounting for income taxes and stock-based compensation. Certain Significant Risks and Uncertainties The Company operates in a rapidly changing environment that involves a number of risks, some of which are beyond the Company’s control that could have a material adverse effect on the Company’s business, operating results and financial condition. These risks include, among others, the Company’s history of losses and negative cash flows; the highly competitive environment in which the Company operates; the ability to maintain and increase usage rates of the Company’s platform and the ability for the Company to increase demand for its solutions. Concentration of Credit Risk Financial instruments that potentially subject the Company to concentrations of credit risk consist of cash, cash equivalents and accounts receivable. The Company’s cash and cash equivalents are placed with high-credit-quality financial institutions and issuers, and at times exceed federally insured limits. The Company has not experienced any loss relating to cash and cash equivalents in these accounts. The Company performs periodic credit evaluations of its customers and generally does not require collateral. As of December 31, 2019 and 2018, accounts receivable from one long-term strategic agreement with Google (see Note 3) accounted for 35% and 30%, respectively, of the Company's total accounts receivable, net. Revenues, net from the same long-term strategic agreement accounted for 25% of total revenues, net for the year ended December 31, 2019. No single customer accounted for 10% or more of total revenues, net for the year ended December 31, 2018. Cash and Cash Equivalents and Restricted Cash The Company considers all highly liquid investments with an original or remaining maturity from the Company’s date of purchase of 90 days or less to be cash equivalents. Deposits held with financial institutions are likely to exceed the amount of insurance on these deposits. Cash equivalents consist of money market funds which are readily convertible into cash and have original maturity dates of less than three months from the date of their respective purchases. Cash equivalents were $8,723 and $2,806 as of December 31, 2019 and 2018, respectively. Restricted cash consists of deposits held with a financial institution to secure the Company’s non-cancelable leases for its corporate headquarters in San Francisco and its office in Paris (see Note 13). Fair Value of Financial Instruments The Company’s financial instruments, including accounts receivable, accounts payable and accrued expenses are carried at cost, which approximates fair value because of the short-term nature of those instruments. The Company measures and reports certain financial assets at fair value on a recurring basis, including its investments in money market funds. The fair value hierarchy prioritizes the inputs into three broad levels: Level 1 Inputs are unadjusted quoted prices in active markets for identical assets or liabilities. Level 2 Inputs are quoted prices for similar assets and liabilities in active markets or inputs that are observable for the asset or liability, either directly or indirectly through market corroboration, for substantially the full term of the financial instrument. Level 3 Inputs are unobservable inputs based on the Company’s assumptions. A financial instrument’s level within the fair value hierarchy is based on the lowest level of input that is significant to the fair value measurement. Allowances for Doubtful Accounts and Revenue Credits The allowance for doubtful accounts reflects the Company’s best estimate of probable losses inherent in the Company’s receivables portfolio determined on the basis of historical experience, specific allowances for known troubled accounts and other currently available evidence. The Company performs a regular review of its customers’ payment histories and associated credit risks and it does not require collateral from its customers. When collection of an outstanding balance is no longer probably, the Company will either partially or fully write-off the balance against the allowance for doubtful accounts. Certain contracts with advertising agencies contain sequential liability provisions, whereby the agency does not have an obligation to pay the Company until payment is received from the agency’s customers. In these circumstances, the Company evaluates the credit worthiness of the agency’s customers, in addition to the agency itself. The following are changes in the allowance for doubtful accounts for the periods presented. Years Ended December 31, 2019 2018 Balances at beginning of year $ 2,651 $ 4,028 (Reductions) additions to expense (249 ) 48 Write-offs and other deductions (843 ) (1,425 ) Balances at end of year $ 1,559 $ 2,651 From time to time, the Company provides revenue credits to customers. These typically relate to customer disputes and billing adjustments and are recorded as a reduction of revenues, net. Reserves for these revenues credits are accounted for as variable consideration under authoritative revenue recognition guidance (see Note 3) and are estimated based on historical credit activity. As of December 31, 2019 and 2018, the Company recorded an allowance for potential customer revenue credits in the amount of $319 and $353, respectively. Property and Equipment Property and equipment are stated at historical cost less accumulated depreciation and amortization. Depreciation and amortization are computed using the straight-line method over the estimated useful lives of the related assets. 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 operations. Major additions and improvements are capitalized while repairs and maintenance that do not extend the life of the asset are charged to operations as incurred. Depreciation and amortization expense is allocated to both cost of revenues and operating expenses. Internally Developed Software Costs incurred in the development phase are capitalized and amortized over the product’s estimated useful life, which is three years. The Company expenses all costs incurred that relate to planning and post implementation phases of development. Development phase costs generally include salaries and personnel costs and third-party contractor expenses associated with software development, configuration and coding. Capitalized costs related to internally developed software under development are treated as construction in progress until the program, feature or functionality is ready for its intended use, at which time amortization commences. For 2019 and 2018, the Company capitalized $2,056 and $2,129 of costs related to internally developed software, respectively. Amortization of capitalized costs related to internally developed software was $3,904 and $3,774 for 2019 and 2018, respectively. As of December 31, 2019 and 2018, unamortized internally developed software costs, including construction in progress, totaled $5,124 and $6,972, respectively. Amortization of internally developed software is reflected in cost of revenues. Costs associated with minor enhancements and maintenance are expensed as incurred. Goodwill, Intangible Assets and Impairment Assessments Goodwill represents the excess of the purchase price in a business combination over the fair value of net tangible and intangible assets acquired. Intangible assets that are not considered to have an indefinite useful life are amortized over their useful lives, which range from two to six years. Estimated remaining useful lives of purchased intangible assets are evaluated to assess whether events or changes in circumstances warrant a revision to the remaining periods of amortization. The Company evaluates goodwill for impairment in the fourth quarter of its fiscal year annually, or more frequently if events or changes in circumstances indicate that goodwill may be impaired. For the purposes of impairment testing, the Company has determined that it has one reporting unit. The Company performs its goodwill impairment test using the simplified method, whereby the fair value of this reporting unit is compared to its carrying value. If the fair value of the reporting unit exceeds the carrying value of the net assets assigned to that reporting unit, goodwill is not considered impaired. If the carrying value of the net assets assigned to the reporting unit exceeds the fair value of the reporting unit, then goodwill is considered impaired by an amount equal to that difference. In November 2019, the Company performed an impairment assessment of goodwill in conjunction with the divestiture of its Perfect Audience business to SharpSpring, Inc., an unrelated third party. The assessment was performed utilizing the simplified method, and resulted in an impairment of goodwill of $1,910 at that time, reducing the goodwill balance to zero. Similarly, the Company performed an interim goodwill impairment test in the third quarter of 2018 due to a decline in the market capitalization of the Company’s common stock, which resulted in a charge for the impairment of $14,740 for the year ended December 31, 2018. Refer to Note 6 for further details on the Company’s goodwill impairment tests. Impairment of Long-Lived Assets The Company evaluates long-lived assets, excluding goodwill, for potential impairment whenever adverse events or changes in circumstances or business climate indicate that expected undiscounted future cash flows related to such long-lived assets may not be sufficient to support the net book value of such assets. An impairment loss is recognized only if the carrying value of a long-lived asset or asset group is not recoverable and exceeds its fair value. The carrying value of a long-lived asset or asset group is not recoverable if it exceeds the sum of the undiscounted cash flows expected to result from the use and eventual disposition of the asset. There were no such impairment losses in 2019 and 2018. Leases The Company has operating leases for corporate offices worldwide and for space at a data center. Additionally, the Company leases computer equipment through various finance leases. New contractual arrangements are evaluated at inception to determine if the contract is or contains a lease. For any contracts that are or contain a lease, the Company determines the appropriate classification of each identified lease as operating or finance. For all identified leases, the Company records the related lease liabilities and right-of-use (“ROU”) assets based on the future minimum lease payments over the lease term, which only includes options to renew the lease if it is reasonably certain that the Company will exercise that option. For leases with original terms of 12 months or less, the Company recognizes the lease expense as incurred and does not recognize lease liabilities and ROU assets. Lease liabilities are measured based on the future minimum lease payments discounted over the lease term. The Company uses the discount rate implicit in the lease whenever that rate is readily determinable. For leases where no such rate is determinable, the Company uses its incremental borrowing rate, or the rate of interest that Company would have to pay to borrow an amount equal to the lease payments, on a collateralized basis over a similar term and in a similar economic environment. Current and non-current operating lease liabilities are presented on the consolidated balance sheet beginning January 1, 2019, while current finance lease liabilities are included in accrued expenses and other current liabilities, and non-current finance lease liabilities are included in other long-term liabilities on the consolidated balance sheets. Balances classified as capital lease obligations under previous lease guidance are presented for all periods prior to 2019 to conform to the presentation of finance lease liabilities. ROU assets are measured based on the associated lease liabilities, adjusted for any lease incentives such as tenant improvement allowances. ROU assets for operating leases are presented as non-current assets on the condensed consolidated balance sheet beginning January 1, 2019, while ROU assets for finance leases are included within property and equipment, net. For operating leases, the Company recognizes the expense for lease payments on straight-line basis over the lease term. See Note 13 for further discussion on the Company’s leases. Revenue Recognition The Company generates revenues principally from subscriptions either directly with advertisers or with advertising agencies to its platform for the management of search, social and eCommerce advertising. The Company also generates revenues from strategic agreements with certain leading publishers. Under these strategic agreements, the Company receives consideration based on a percentage of the search advertising spend that customers manage on its platform. Revenues are recognized when control of these services is transferred to the Company’s customers, in an amount that reflects the consideration the Company expects to be entitled to in exchange for those services. See Note 3 for further discussion on the Company's revenues. Cost of Revenues Cost of revenues primarily consists of costs related to hosting the Company’s cloud-based platform, providing implementation and ongoing customer support, data communications expenses, salaries and benefits of operations and support personnel, software license fees, costs associated with website development activities, indirect overhead, amortization expense associated with capitalized internally developed software and intangible assets and property and equipment depreciation. Stock-Based Compensation Expense Stock-based compensation expense is measured at grant date based on the fair value of the award and is expensed on a straight-line basis over the requisite service period. Restricted stock units (“RSUs”) are measured based on the fair market values of the underlying common stock on the dates of grant. Shares of common stock are issued on the vesting dates. Fair values of stock option awards are determined on the date of grant using the Black-Scholes option-pricing model. In applying this option-pricing model, the Company’s determination of the fair value of the stock option award on the date of grant is affected by the Company’s fair value of its common stock, as well as assumptions regarding a number of subjective variables. These variables include, but are not limited to, the Company’s expected stock price volatility, actual and projected stock option exercise behaviors and risk-free interest rate. For stock option and RSU awards with time-based vesting, the Company recognizes stock-based compensation expense over the requisite service period using the straight-line method, based on awards ultimately expected to vest. The Company estimates future forfeitures at the date of grant and revises the estimates, if necessary, in subsequent periods if actual forfeitures differ from those estimates. See Note 11 and Note 12 for further information. Research and Development Research and development costs are expensed as incurred, except for certain internal software development costs, which may be capitalized as noted above. Research and development costs consist of personnel costs, including salaries, stock-based compensation expense, benefits and bonuses, as well as non-personnel costs such as professional fees payable to third-party development resources, amortization of intangible assets and allocated overhead costs. Advertising and Promotion Advertising and promotional costs are expensed as incurred and included in sales and marketing expense in the accompanying consolidated statements of comprehensive loss. Advertising and promotion expense totaled $463 and $494 for 2019 and 2018, respectively. Sales Taxes Sales and other taxes collected from customers and remitted to governmental authorities are presented on a net basis and thus excluded from revenues. Foreign Currency For international subsidiaries whose functional currency is not the U.S. Dollar, we re-measure the monetary assets and liabilities of these subsidiaries to U.S. Dollars using rates of exchange in effect at the balance sheet date. Nonmonetary assets and liabilities are re-measured to U.S. Dollars using historical exchange rates, and other accounts are re-measured using average exchange rates in effect during each period presented. The effects of foreign currency translation adjustments are included in stockholders’ equity as a component of accumulated other comprehensive loss on the accompanying consolidated balance sheets, and related periodic movements are summarized as a line item in the consolidated statements of comprehensive loss. The Company records net gains and losses resulting from foreign exchange transactions as a component of other income, net. Aggregate foreign currency (losses) gains included in determining net loss were $(31) and $205 for 2019 and 2018, respectively. Income Taxes The Company accounts for income taxes using the asset and liability method. Under this method, deferred tax assets and liabilities are determined based on differences between the financial statement and tax basis of assets and liabilities and net operating loss and credit carryforwards using enacted tax rates in effect for the year in which the differences are expected to reverse. Valuation allowances are established when necessary to reduce deferred tax assets to the amounts expected to be realized. The Company accounts for uncertain tax positions using a more-likely-than-not threshold for financial statement recognition and measurement of tax positions taken or expected to be taken in a tax return. The Company establishes a liability for tax-related uncertainties based on estimates of whether, and the extent to which, additional taxes will be due. The Company records an income tax liability, if any, for the difference between the benefit recognized and measured and the tax position taken or expected to be taken on the Company’s tax returns. To the extent that the assessment of such tax positions changes, the change in estimate is recorded in the period in which the determination is made. The liability is adjusted in light of changing facts and circumstances, such as the outcome of a tax audit. The provision for income taxes includes changes to the liabilities that are considered appropriate. The Company would recognize interest and penalties related to uncertain tax positions as income tax expense, though such amounts were not material in 2019 or 2018. The Company does not expect that changes in the liability for uncertain tax positions for the next twelve months will have a material impact on the Company’s consolidated financial position or results of operations. Recently Accounting Pronouncements Adopted In February 2016, the Financial Accounting Standards Board (“FASB”) issued Accounting Standards Update (“ASU”) 2016-02, Leases As a result of the adoption, the Company recorded ROU assets of $14,589 and lease liabilities of $16,425 related to operating leases on January 1, 2019. ASC 842 did not have a material impact on the Company’s consolidated statement of comprehensive loss for the year ended December 31, 2019. Refer to Note 13 for further information on leases. In February 2018, the FASB issued ASU 2018-02, Income Statement – Reporting Comprehensive Income – Reclassification of Certain Tax Effects from Accumulated Other Comprehensive Income Recent Accounting Pronouncements Not Yet Effective In June 2016, the FASB issued ASU 2016-13, Financial Instruments – Credit Losses – Measurement of Credit Losses on Financial Instruments In August 2018, the FASB issued ASU 2018-13, Fair Value Measurement In August 2018, the FASB issued ASU 2018-15, Intangibles – Goodwill and Other – Internal-Use Software In December 2019, the FASB issues ASU 2019-12, Income Taxes – Simplifying the Accounting for Income Taxes simplifies the accounting for income taxes by clarifying and amending existing guidance related to the recognition of franchise tax, the evaluation of a step up in the tax basis of goodwill, and the effects of enacted changes in tax laws or rates in the effective tax rate computation, among other clarifications |