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 subsidiary and have been prepared in accordance with accounting principles generally accepted in the United States of America (“GAAP”). All intercompany accounts and transactions have been eliminated in consolidation. Basis of Presentation The consolidated financial statements have been prepared on a going concern basis, which contemplates the realization of assets and the satisfaction of liabilities in the normal course of business. Management has evaluated whether there is substantial doubt about the entity’s ability to continue as a going concern. Substantial doubt about an entity’s ability to continue as a going concern exists when conditions and events, considered in the aggregate, indicate that it is probable that the entity will be unable to meet its obligations as they become due within one year after the date the financial statements are issued. Management’s evaluation shall be based on relevant conditions and events that are known and reasonably knowable as of that date. This evaluation initially does not take into consideration the potential mitigating effect of management’s plans that have not been fully implemented as of the date the financial statements are issued. The Company’s management has evaluated the facts and circumstances, excluding consideration of actions that have not been fully implemented as of the date these financial statements are issued, and has concluded that the maturity of its short-term debt raises substantial doubt about its ability to continue as a going concern. The Company’s line of credit requires it to comply with certain covenants as described in Note 6 and has a current maturity date of December 31, 2017. If the Company were required to repay this short-term credit facility at maturity, the impact to the Company’s ability to meet its obligations as they become due would be materially and adversely affected. Management’s plan to mitigate this risk is to amend its current revolving line of credit facility, as it did in March 2016 and September 2016, or to replace it with a suitable alternative prior to its maturity date. The Company believes that its existing cash balances, together with its current revolving line of credit, as amended or replaced, will be sufficient to meet its anticipated cash requirements through at least the next 12 months and that this plan alleviates any substantial doubt about the entity’s ability to continue as a going concern. Use of Estimates The preparation of financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts in the consolidated financial statements and accompanying notes. The Company evaluates its estimates, including those related to its allowance for doubtful accounts, revenue recognition, internal-use software, stock-based compensation, income taxes and related valuation allowances and the fair value of common stock warrants. The Company bases its estimates on its historical experience and on various other assumptions that it believes to be reasonable, the results of which form the basis for making judgments about the carrying value of assets and liabilities. Actual results could differ from those estimates. Cash and Cash Equivalents The Company considers all highly liquid investments with a maturity of three months or less when purchased to be cash equivalents. Cash and cash equivalents consist of cash maintained in operating accounts. Restricted Cash Restricted cash represents cash that is subject to contractual withdrawal restrictions and penalties. Restricted cash is classified within the consolidated balance sheets based on the timing of when the restrictions are expected to lapse. The Company presented restricted cash related to its debt agreement in the consolidated balance sheets based on timing of maturity. In accordance with a new loan and security agreement (the “New Loan and Security Agreement”) entered into in June 2014 and described in Note 6, the Company was required to maintain, at all times, $5.0 million , consisting of the sum of: (i) cash held at the lender (determined in accordance with the New Loan and Security Agreement); plus (ii) the unused availability amount on its revolving line of credit; plus (iii) the undrawn portion of an advance related to a term loan and security agreement (the “Mezzanine Loan and Security Agreement”). The Company recorded $1.9 million of restricted cash as of December 31, 2015 based on its availability under the New Loan and Security Agreement of $3.1 million as of that date. On March 8, 2016, the Company amended its new loan and security agreement. As described in Note 6, this amendment removed the $5.0 million minimum cash and availability requirement, among other things. As such, no amounts were reflected as restricted cash within the consolidated balance sheets as of December 31, 2016 . Concentration of Credit Risk Financial instruments that potentially subject the Company to concentrations of credit risk consist principally of cash, cash equivalents and accounts receivable. All of the Company’s cash and cash equivalents are held at financial institutions that management believes to be of high credit quality. The Company’s cash and cash equivalent accounts exceed federally insured limits. The Company has not experienced any losses on cash and cash equivalents to date. To manage accounts receivable risk, the Company evaluates and monitors the creditworthiness of its customers. As of December 31, 2015 , the Company did not have any advertising agencies or customers that individually comprised a significant concentration of its accounts receivable. As of December 31, 2016 , the Company did not have any advertising agencies that individually comprised a significant concentration of its accounts receivable and had one customer that comprised approximately 12% of its accounts receivable. For the years ended December 31, 2014 , 2015 and 2016 , the Company did not have any customers that individually comprised a significant concentration of its revenue. Allowance for Doubtful Accounts The Company extends credit to its customers without requiring collateral. Accounts receivable are stated at net realizable value. The Company utilizes the allowance method to provide for doubtful accounts based on management’s evaluation of the collectability of amounts due. The Company’s estimate is based on historical collection experience and the current status of accounts receivable. Historically, actual write-offs for uncollectible accounts have not significantly differed from the Company’s estimates. At December 31, 2015 and 2016 , the Company had reserved for $0.1 million and $0.3 million of its accounts receivable balance, respectively. The following table presents the changes in the allowance for doubtful accounts for the years ended December 31 (in thousands): 2014 2015 2016 Allowance for doubtful accounts: Balance, beginning of period $ 716 $ 179 $ 102 Add: adjustment for bad debts (211 ) 205 358 Less: write-offs, net of recoveries (326 ) (282 ) (170 ) Balance, end of period $ 179 $ 102 $ 290 Internal-Use Software Development Costs The Company capitalizes certain costs associated with software developed for internal use, primarily consisting of direct labor costs associated with creating the software. Software development projects generally include three stages: the preliminary project stage (all costs are expensed as incurred); the application development stage (certain costs are capitalized and certain costs are expensed as incurred); and the post-implementation/operation stage (all costs are expensed as incurred). Costs capitalized in the application development stage primarily include costs of designing, coding and testing the software. Capitalization of costs requires judgment in determining when a project has reached the application development stage and the period over which the Company expects to benefit from the use of that software. Once the software is placed in service, these capitalized costs are amortized using the straight-line method over the estimated useful life of the software. Internal-use software development costs of $4.0 million , $6.5 million and $7.2 million were capitalized during the years ended December 31, 2014 , 2015 and 2016 , respectively. Capitalized internal-use software development costs are included in property, equipment and software, net in the consolidated balance sheets. Amortization expense related to the capitalized internal-use software was $1.3 million , $2.4 million and $5.0 million for the years ended December 31, 2014 , 2015 and 2016 , respectively, and is primarily included in other cost of revenue and research and development expense in the consolidated statements of operations. The net book value of capitalized internal-use software was $9.8 million and $12.0 million at December 31, 2015 and 2016 , respectively. Property, Equipment and Software, Net Property, equipment and software is recorded at cost, net of depreciation. Expenditures for major additions and improvements are capitalized. Depreciation and amortization are recognized over the estimated useful life of the related assets using the straight-line method. The depreciation and amortization periods for the Company’s significant property, equipment and software categories are as follows: Capitalized internal-use software costs 3 years Computer hardware and software 3 years Furniture and office equipment 3 years Leasehold improvements Lesser of remaining lease term or useful life Repairs and maintenance costs are expensed as incurred. Impairment of Long-lived Assets The Company reviews long-lived assets for impairment whenever events or changes in circumstances indicate the carrying amount of an asset may not be recoverable. Recoverability of a long-lived asset is measured by a comparison of the carrying amount of the asset or asset group to future undiscounted net cash flows expected to be generated by the asset or asset group. If such assets are not recoverable, the impairment to be recognized, if any, is measured by the amount by which the carrying amount of the assets exceeds the estimated fair value of the assets or asset group. No impairment charges were necessary for any period presented. Fair Value of Financial Instruments The carrying amounts of certain of the Company’s financial instruments, including cash and cash equivalents, restricted cash, accounts receivable, other current assets, accounts payable and accrued expenses and other current liabilities, approximate their respective fair values due to their short term nature. Foreign Currency Translation and Transactions The consolidated financial statements of the Company’s foreign subsidiary are measured using the local currency as the functional currency. Assets and liabilities of foreign subsidiaries are translated at exchange rates in effect as of the balance sheet date. Revenues and expenses are translated at average exchange rates in effect during the period. Translation adjustments are recorded within accumulated other comprehensive loss, a separate component of stockholders’ equity, in the consolidated balance sheets. Foreign exchange transaction gains and losses have not been material to the Company’s consolidated financial statements for all periods presented. Revenue Recognition The Company generates revenue by delivering targeted advertising campaigns for customers through various channels, including display, mobile and video. The Company recognizes revenue when there is persuasive evidence of an arrangement, delivery has occurred or services have been provided, fees are fixed or determinable, and collection of fees is reasonably assured. Revenue arrangements are evidenced by a fully executed insertion order (“IO”). The IOs specify the delivery terms including the advertising format, the contracted number of advertising impressions to be delivered, the agreed upon rate for each delivered impression, generally on a cost-per-thousand basis, and the fixed period of time for delivery. The IOs typically have a term of less than three months and are cancelable at any time. The Company recognizes revenue in the period in which the impressions are served, limited to the contracted number of impressions as specified in the IO. The Company determines collectability by performing a credit evaluation for new customers and by monitoring its existing customers’ accounts receivable balances. The Company does not typically receive upfront payments from its customers. In the normal course of business, the Company contracts either directly with advertisers or advertising agencies on behalf of their advertiser clients. The determination of whether revenue should be reported on a gross or net basis is based on an assessment of whether the Company is acting as the principal or an agent in the transaction. In determining whether the Company acts as the principal or an agent, the Company follows the accounting guidance for principal-agent considerations. While no one factor is determined to be individually conclusive, indicators that an entity is acting as a principal include if the Company (i) is the primary obligor in the arrangement; (ii) has certain inventory risk; (iii) has latitude in establishing pricing; (iv) adds meaningful value to the service; (v) has discretion in supplier selection; (vi) is involved in the determination of the service specifications; or (vii) has credit risk. The Company recognizes revenue on a gross basis primarily based on the Company’s determination that it is subject to the risk of fluctuating costs from its media vendors, has latitude in establishing prices with its customers, has discretion in selecting media vendors when fulfilling a customer’s advertising campaign, and has credit risk. The Company may enter into multiple element arrangements for the delivery of more than one advertising placement to be delivered at the same time, or within close proximity of one another. When entering into an arrangement that includes multiple elements, the Company determines whether the arrangement should be divided into separate units of accounting and how the arrangement consideration should be measured and allocated among the separate units of accounting. An element qualifies as a separate unit of accounting when the delivered element has standalone value to the customer. The Company sells advertising placements on a standalone basis and thus has determined that each advertising placement in multiple element arrangements represents a separate unit of accounting. The Company allocates arrangement consideration in multiple element arrangements at the inception of an arrangement to all deliverables based on the relative selling price method in accordance with the selling price hierarchy, which includes: (1) vendor-specific objective evidence (“VSOE”), if available; (2) third-party evidence (“TPE”), if VSOE is not available; and (3) best estimate of selling price (“BESP”), if neither VSOE nor TPE is available. The Company has been unable to establish VSOE or TPE, and therefore, uses BESP in its allocation of arrangement consideration. The Company determines BESP for its deliverables by considering a number of factors including, but not limited to, the price lists used by the Company’s sales team in pricing negotiations, historical average and median pricing achieved in prior contractual customer arrangements and input from the Company’s sales operation department regarding what it believes the deliverables could be sold for on a stand-alone basis. The Company allocates consideration in all multiple element arrangements based on the relative fair value of the deliverables and recognizes revenue as services are delivered, assuming all other revenue recognition criteria have been met. Cost of Revenue Traffic Acquisition Costs Traffic acquisition costs consist of media costs for advertising impressions purchased from real-time bidding exchanges, which are expensed as incurred. The Company is billed by the advertising exchanges on a monthly basis for actual advertising impressions acquired. Other Cost of Revenue Other cost of revenue includes third-party data center and other advertisement-serving costs, depreciation of data center equipment, amortization of capitalized internal-use software cost for revenue-producing technologies, purchases of third-party data for specific marketing campaigns and salaries and related costs for the Company’s personnel dedicated to executing the Company’s advertising campaigns. Research and Development Research and development expenses include costs associated with the ongoing development of the Company’s technology, including compensation and employee benefits and allocated costs associated with the Company’s engineering and research and development departments, as well as costs for contracted services and supplies. Advertising and Marketing Advertising and marketing costs are expensed as incurred and totaled $3.7 million , $6.1 million and $3.9 million for the years ended December 31, 2014 , 2015 and 2016 , respectively. Stock-Based Compensation The Company accounts for stock options and restricted stock units (“RSU’s”) granted to employees and shares to be issued under its employee stock purchase plan (“ESPP”) based on their estimated fair values on the date of grant. The fair value of each stock option granted and share to be issued under its ESPP is estimated using the Black-Scholes option pricing model. The fair value of RSU’s is estimated based on the closing price of the underlying common stock on the date of grant. Stock-based compensation expense is recognized on a straight-line basis over the requisite service or offering period, net of estimated forfeitures. Income Taxes Income taxes are accounted for under the asset and liability method of accounting. Deferred tax assets and liabilities are recognized for the future tax consequences attributable to differences between the consolidated financial statement carrying amounts of existing assets and liabilities and their respective tax basis, as well as for operating loss and tax credit carryforwards. Deferred tax assets and liabilities are measured using enacted tax rates expected to apply to taxable income in the years in which those temporary differences are expected to be recovered or settled. The effect on deferred tax assets and liabilities of a change in tax rates is recognized in the statements of operations in the period when enacted. The measurement of a deferred tax asset is reduced, if necessary, by a valuation allowance if it is more likely than not that some portion or all of the deferred tax asset will not be realized. The assessment of whether or not a valuation allowance is required often requires significant judgment, including the long-range forecast of future taxable income and the evaluation of tax planning initiatives. Adjustments to the deferred tax valuation allowances are made to earnings in the period when such assessments are made. Due to the historical losses from the Company’s operations, a full valuation allowance on deferred tax assets has been recorded. Basic and Diluted Loss per Common Share Prior to the IPO, the Company used the two-class method to compute net loss per common share because the Company had issued securities, other than common stock, that contractually entitled the holders to participate in dividends and earnings of the Company. The two-class method requires earnings for the period to be allocated between common stock and participating securities based upon their respective rights to receive distributed and undistributed earnings. Each series of the Company’s convertible preferred stock were entitled to participate in distributions that were made to common stockholders, when and if declared by the board of directors, and therefore, were considered participating securities. Due to the net loss for the year ended December 31, 2014 , basic and diluted loss per share were the same, as the effect of potentially dilutive securities would have been anti-dilutive. Subsequent to the completion of the IPO, the Company no longer has outstanding participating securities. Therefore, the Company calculates net loss per basic share by dividing net loss by the weighted-average number of shares outstanding during the reporting period. The Company calculates net loss per diluted share by dividing net loss by the weighted-average number of shares outstanding during the reporting period plus the effects of any dilutive common stock-based instruments. Due to the net losses for the years ended 2015 and 2016 , basic and diluted loss per share were the same, as the effect of potentially dilutive securities would have been anti-dilutive. Recently Adopted Accounting Pronouncements In April 2015, the FASB issued ASU 2015-03, Simplifying the Presentation of Debt Issuance Costs . This accounting standards update is to simplify the presentation of debt issuance cost. This new guidance requires that debt issuance cost related to a recognized debt liability be presented in the balance sheet as a direct deduction from the carrying amount of that debt liability, consistent with the treatment of debt discounts. The accounting standards update does not affect the recognition and measurement guidance for debt issuance costs. In August 2015, the FASB issued ASU 2015-15, Presentation and Subsequent Measurement of Debt Issuance Costs Associated with Line-of-Credit Arrangements . This accounting standards update states that given the absence of authoritative guidance within ASU 2015-03 for debt issuance costs related to line of credit arrangements, the Securities and Exchange Commission would not object to an entity deferring and presenting debt issuance costs as an asset and subsequently amortizing the debt issuance costs ratably over the term of the line of credit arrangement, regardless of whether there are any outstanding borrowings on the line of credit arrangement. The Company adopted ASU 2015-03, effective January 1, 2016, on a retrospective basis. The adoption of these pronouncements did not have a material impact on the Company’s consolidated results of operations, financial position or cash flows. In August 2014, the FASB issued ASU 2014-15, Disclosure of Uncertainties about an Entity’s Ability to Continue as a Going Concern . This guidance addresses management’s responsibility to evaluate whether there is substantial doubt about an entity’s ability to continue as a going concern and to provide related footnote disclosures. Management’s evaluation should be based on relevant conditions and events that are known and reasonably knowable at the date that the financial statements are issued. ASU 2014-15 is effective for annual periods ending after December 15, 2016, and for interim periods within annual periods ending after December 15, 2016. Although early adoption was permitted, the Company did not early adopt this standard. The Company adopted ASU 2014-15 effective December 31, 2016. The adoption did not have a material effect on the Company’s consolidated financial statements, however, the Company has expanded its disclosures in the related notes thereto. In November 2015, the FASB issued ASU 2015-17, Balance Sheet Classification of Deferred Taxes. This accounting standards update simplifies the presentation of deferred income taxes by eliminating the current requirement for an entity to separate deferred income tax liabilities and assets into current and noncurrent amounts in a classified statement of financial position. ASU 2015-17 requires an entity to classify deferred income tax liabilities and assets, as well as any related valuation allowance, as noncurrent within a classified balance sheet. This accounting standards update is effective for interim or annual periods beginning after December 15, 2016, and can be applied retrospectively or prospectively. The Company elected to early adopt ASU 2015-17, effective December 31, 2016, on a retrospective basis. The Company’s now has, in each taxable jurisdiction, one deferred tax asset and liability, along with any related valuation allowance, classified as noncurrent on its consolidated balance sheets. The adoption did not have a material effect on the Company’s consolidated results of operations, financial position or cash flows as the Company has a full valuation allowance on deferred tax assets due to its historical losses from operations. Recent Accounting Pronouncements Not Yet Adopted In May 2014, the FASB issued ASU 2014-09, Revenue from Contracts with Customers . The new standard provides a single principles-based, five-step model to be applied to all contracts with customers, which steps are to (1) identify the contract(s) with the customer; (2) identify the performance obligations in the contract; (3) determine the transaction price; (4) allocate the transaction price to the performance obligations in the contract; and (5) recognize revenue when each performance obligation is satisfied. More specifically, revenue will be recognized when promised goods or services are transferred to the customer in an amount that reflects the consideration expected in exchange for those goods or services. This guidance states that an entity should recognize revenue to depict the transfer of promised goods or services to customers in an amount that reflects the consideration to which the entity expects to be entitled in exchange for those goods or services. In August 2015, the FASB issued ASU 2015-14, which defers the effective date of ASU 2014-09 for all entities by one year. In March 2016, the FASB issued ASU 2016-08, which clarifies the implementation guidance on principal versus agent considerations. In April 2016, the FASB issued ASU 2016-10, which clarifies the implementation guidance on identifying performance obligations and licensing. In May 2016, the FASB issued ASU 2016-11, Rescission of SEC Guidance Because of Accounting Standards Updates 2014-09 and 2014-16 Pursuant to Staff Announcements at the March 3, 2016 EITF Meeting , which rescinds SEC paragraphs pursuant to SEC staff announcements. These rescissions include changes to topics pertaining to accounting for shipping and handling fees and costs and accounting for consideration given by a vendor to a customer. In May 2016, the FASB issued ASU 2016-12, Narrow-Scope Improvements and Practical Expedients , which amends certain aspects of the new revenue recognition standard pursuant to ASU 2014-09. In December 2016, the FASB issued ASU 2016-20, which contains amendments that affect narrow aspects of the new revenue recognition guidance. ASU 2014-09, as amended by ASU 2015-14, is effective for interim or annual periods beginning after December 15, 2017. Early adoption of the standard is permitted, but not before the original effective date. The Company plans to adopt ASU 2014-09 as of January 1, 2018. The Company enters into contracts, or IOs, with customers either directly or through advertising agencies that act on behalf of its customers to deliver targeted digital marketing campaigns through various channels. Executed IOs typically have a term of less than three months and are cancelable at any time. The Company prices its marketing campaigns based on the number of advertising impressions and recognizes revenue as they are delivered. The Company is permitted to use either the retrospective or the modified retrospective method when adopting ASU 2014-09. The Company is currently evaluating the impact of this standard on its consolidated results of operations, financial position, cash flows and disclosures, and has not yet concluded on the method of adoption. In February 2016, the FASB issued ASU 2016-02, Leases (Topic 842) . The purpose of this guidance is to increase transparency and comparability among organizations by recognizing lease assets and lease liabilities on the balance sheet and disclosing key information about leasing arrangements. This guidance supersedes previous accounting guidance under Topic 840. Under ASU 2016-02, a lessee will be required to recognize assets and liabilities for the rights and obligations created by leases for leases with lease terms of more than 12 months. Lessor accounting remains substantially similar to current GAAP. In addition, disclosures of leasing activities are to be expanded to include qualitative along with specific quantitative information. ASU 2016-02 is effective for interim or annual periods beginning after December 15, 2018 and early adoption is permitted. This standard requires lessees and lessors to recognize and measure leases at the beginning of the earliest period presented using a modified retrospective approach. The Company does not expect to early adopt this guidance and is currently evaluating the impact of the adoption of this guidance on its consolidated results of operations, financial position and cash flows. In March 2016, the FASB issued ASU 2016-09, Improvements to Employee Share-Based Payment Accounting . ASU 2016-09 simplifies several aspects of the accounting for share-based payment transactions, including the income tax consequences, classification of awards as either equity or liabilities and classification on the statement of cash flows. ASU 2016-09 is effective for interim or annual periods beginning after December 15, 2016 and early adoption is permitted. The Company did not early adopt this standard and does not expect that adoption will have a material effect on its consolidated results of operations, financial position and cash flows. In August 2016, the FASB issued ASU 2016-15, Classification of Certain Cash Receipts and Cash Payments . This new standard provides guidance related to eight specific cash flow issues, with the objective of reducing diversity in practice of how certain cash receipts and payments are presented and classified in the statement of cash flows. ASU 2016-15 is effective for interim or annual periods beginning after December 15, 2017 and early adoption is permitted. ASU 2016-15 must be applied retrospectively, unless it is impracticable to do so, in which case the amendments would be applied prospectively as of the earliest date practicable. The Company does not expect to early adopt this guidance and is currently evaluating the impact of the adoption of this guidance on its consolidated results of operations, financial position and cash flows. In November 2016, the FASB issued ASU 2016-18, Restricted Cash . The purpose of this guidance is to reduce the diversity in practice that exists in the classification and presentation of changes in restricted cash on the statement of cash flows. This guidance requires that a statement of cash flows explain the change during the period in the total of cash, cash equivalents and amounts generally described as restricted cash or restricted cash equivalents. Therefore, amounts generally described as restricted cash and restricted cash equivalents should be included with cash and cash equivalents when reconciling the beginning-of-period and end-of-period total amounts shown on the statement of cash flows. ASU 2016-18 is effective for interim or annual periods beginning after December 15, 2017 and early adoption is permitted. This guidance must be applied retrospectively. The Company is currently evaluating the impact of the adoption of this guidance on its consolidated results of operations, financial position and cash flows. |