Basis of Presentation and Summary of Significant Accounting Policies | Note 2—Basis of Presentation and Summary of Significant Accounting Policies Basis of Presentation and Principles of Consolidation The accompanying consolidated financial statements are prepared in accordance with accounting principles generally accepted in the United States of America (“GAAP”) and include the operations of the Company and its wholly owned subsidiaries. All intercompany transactions have been eliminated in consolidation. On June 16, 2021, the Company effected a ten-for-one Use of Estimates The preparation of consolidated financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities and disclosures of contingent assets and liabilities at the date of the consolidated financial statements and the reported amounts of revenue and expenses during the reporting period. Actual results could differ materially from these estimates. Management regularly evaluates its estimates, primarily those related to: (1) revenue recognition criteria, including the determination of revenue reporting as net versus gross in the Company’s revenue arrangements, (2) allowances for credit losses accounts, (3) operating lease assets and liabilities, including our incremental borrowing rate and terms and provisions of each lease (4) the useful lives of property and equipment and capitalized software development costs, (5) income taxes, (6) assumptions used in the option pricing models to determine the fair value of stock-based compensation and (7) the recognition and disclosure of contingent liabilities. These estimates are based on historical data and experience, as well as various other factors that management believes to be reasonable under the circumstances; the results of which form the basis for making judgments about the carrying value of assets and liabilities that are not readily apparent from other sources. As of December 31, 2021, the impact of the Coronavirus (“COVID-19”) pandemic on the Company’s business continues to evolve. As a result, many of the Company’s estimates and assumptions, including the allowance for credit losses, consider macro-economic factors in the market, which require increased judgment and carry a higher degree of variability and volatility. As events continue to evolve and additional information becomes available, the Company’s estimates may change materially in future periods. Revenue Recognition The Company generates revenue from clients who enter into agreements with the Company to use its platform to purchase advertising inventory, data and other add-on features. The Company charges its clients a platform fee, which is a percentage of a client’s purchases through the platform. In addition, the Company invoices its clients for the cost of advertising inventory purchased, plus data and any add-on features purchased through the platform. The Company determines revenue recognition through the following steps: • Identification of a contract with a client; • Identification of the performance obligations in the contract; • Determination of the transaction price; • Allocation of the transaction price to the performance obligations in the contract; and • Recognition of revenue when or as the performance obligations are satisfied. The Company maintains agreements with each client and supplier in the form of master service agreements, which set out the terms of the relationship and access to the Company’s platform. The Company’s performance obligation is to provide the use of its platform to clients to develop ad campaigns and select the advertising inventory, data and other add-on features. The Company charges clients a platform fee, based on a percentage of a client’s purchases through the platform, and the transaction price is determined based on the consideration to which it expects to be entitled in exchange for the completion of a transaction, that is, when a bid is won. The Company reports revenue net of amounts it pays suppliers for the cost of advertising inventory, third-party data and other add-on features (collectively, “Supplier Features”). Judgment is required to determine whether the Company is the principal and reports revenue on a gross basis for Supplier Features or the agent and reports revenue on a net basis for the amount of platform fees charged to the client. The Company determined that it is not primarily responsible for the purchase of Supplier Features. Rather, the Company’s primary responsibility is to provide the platform that enables clients to bid on advertising inventory and use data and other add-on features in designing and executing their campaigns. The Company does not control the Supplier Features prior to the purchase by the client, and it does not have pricing latitude with respect to the cost of such features. The platform fee the Company charges clients is a percentage of their purchases through its platform, similar to a commission, and the platform fee is not contingent on the results of an advertising campaign. Based on these and other factors, the Company determined that it is not the principal in the purchase and sale of Supplier Features and, therefore, reports revenue on a net basis for the platform fees charged to clients. The Company generally bills clients for the gross amount of Supplier Features they purchase through its platform and the platform fees, net of allowances (“Gross Billings”). When clients have direct payment relationships with advertising inventory suppliers, the Company bills these clients only for third-party data, other add-on features and its platform fees. The Company invoices its clients monthly for the purchases occurring during the month. Invoice payment terms, negotiated on a client-by-client basis, are typically between 30 to 90 days. However, for certain agency clients with sequential liability terms, payments are not due to the Company until such agency client has received payment from its clients who are advertisers. Accounts receivable is recorded based on Gross Billings, which are the amounts the Company is responsible to collect. Accounts payable is recorded at the net amount payable to suppliers. Accordingly, both accounts receivable and accounts payable appear large in relation to revenue reported on a net basis. Refer to Note 12—Segment and Geographic Information Operating Expenses The Company classifies its operating expenses into four categories and allocates overhead such as information technology infrastructure, rent and occupancy charges based on headcount for all these categories: Platform Operations. Platform operations expense consists of expenses related to hosting the Company’s platform, which includes “internet traffic” associated with the viewing of available impressions or queries per second (“QPS”) and providing support to clients. Platform operations expense includes hosting costs, personnel costs, and amortization of acquired technology and capitalized software costs for platform development. Personnel costs include salaries, bonuses, stock-based compensation, and employee benefit costs attributable to personnel who support the platform and provide clients with platform support. The Company capitalizes certain costs associated with platform development in other assets, non-current on its consolidated balance sheet and amortizes these costs into platform operations expense over their estimated useful lives. Sales and Marketing. Sales and marketing expense consists primarily of personnel costs, including salaries, bonuses, stock-based compensation, employee benefits costs and commission costs, for the Company’s sales and marketing personnel. Sales and marketing expense also includes costs for market development programs, advertising and promotional, and other marketing activities. Commissions costs are expensed as incurred. Technology and Development. The Company’s technology and development expense consists primarily of personnel costs, including salaries, bonuses, stock-based compensation and employee benefits costs; third-party consultant costs associated with the ongoing development of the Company’s platform and integrations with our advertising and data inventory suppliers; and the amortization of capitalized third-party software used in platform development. Technology and development costs are expensed as incurred, except to the extent that such costs are associated with software development that qualif ies for capitalization, which are then recorded as capitalized software development costs included in other assets, non-current on the Company’s consolidated balance sheet. The Company amortizes capitalized software development costs relating to the Company’s platform to platform operations expense . General and Administrative. The Company’s general and administrative expense consists primarily of personnel costs, including salaries, bonuses, stock-based compensation, and employee benefits costs associated with the Company’s executive, finance, legal, human resources, compliance, and other administrative personnel, as well as accounting and legal professional services fees and credit loss expense. Stock-Based Compensation Stock-based compensation expense related to stock options, restricted stock awards and units (collectively, “restricted stock”), and awards granted under the Company’s employee stock purchase plan (“ESPP”) is measured and recognized in the consolidated financial statements based on the fair value of the awards granted. The fair values of the ESPP and stock option awards are estimated on the grant date using the Black-Scholes option-pricing model, except for the CEO Performance Option that is estimated using the Monte Carlo valuation model. The fair value of restricted stock is calculated using the closing market price of the Company’s common stock on the date of grant. Determining the fair value of stock options and ESPP awards requires judgment. The Company’s use of the valuation models requires the input of subjective assumptions. The assumptions used in the Company’s valuation models represent management’s best estimates, which involve inherent uncertainties and the application of management’s judgment. These assumptions and estimates are as follows: Risk-Free Interest Rate. The risk-free interest rate is based on the yields of U.S. Treasury securities with maturities approximating the expected term of the awards. Expected Term. For stock options, given the insufficient historical data relating to stock option exercises, the Company applies the simplified approach in which the expected term of an award is presumed to be the mid-point between the vesting date and the expiration date of the award. For ESPP awards, the expected term is the time period from the grant date to the respective purchase dates included within each offering period. Volatility. Prior to 2020, the Company determined the price volatility based on a blend of the historical volatilities of a publicly traded peer group, implied volatilities from its traded options, and its historical volatility, based on daily price observations over a period equivalent to the expected term of the award. During 2020, the Company eliminated the peer group from this analysis and began to determine its price volatility based on a blend of historical and implied volatilities. Dividend Yield. The dividend yield assumption is based on the Company’s history and current expectations of dividend payouts. The Company has never declared or paid any cash dividends on its common stock and does not anticipate paying any cash dividends in the foreseeable future, so the Company used an expected dividend yield of zero. Derived Service Period . The stock-compensation expense attribution period for the CEO Performance Option is developed based on a Monte Carlo simulation of daily stock prices over the performance period. Stock-based compensation expense related to stock options and restricted stock is recognized on a straight-line basis over the requisite service periods of the awards, which is generally four years. Stock-based compensation for the CEO Performance Option is recognized on a graded-vesting basis over a derived service period of approximately five years but may be accelerated if the vesting criteria are met prior to the estimated performance period. Stock-based compensation expense for ESPP awards is recognized on a graded-vesting attribution basis over the requisite service period of each award. The Company accounts for forfeitures as they occur. Income Taxes Deferred income tax assets and liabilities are determined based upon the net tax effects of the differences between the Company’s consolidated financial statements carrying amounts and the tax basis of assets and liabilities and are measured using the enacted tax rate expected to apply to taxable income in the years in which the differences are expected to be reversed. A valuation allowance is used to reduce some or all of the deferred tax assets if, based upon the weight of available evidence, it is more likely than not that those deferred tax assets will not be realized. The Company recognizes the tax benefit from an uncertain tax position only if it is more likely than not that the tax position will be sustained on examination by the taxing authorities, based on the technical merits of the position. The tax benefits recognized in the consolidated financial statements from such positions are then measured based on the largest benefit that has a greater than 50% likelihood of being realized. The Company recognizes interest and penalties accrued related to its uncertain tax positions in its income tax provision in the accompanying consolidated statements of operations . The Company makes assumptions, judgments and estimates to determine the current income tax provision, tax benefits from uncertain tax positions, deferred tax asset and liabilities, and valuation allowance recorded against a deferred tax asset. The assumptions, judgments and estimates relative to the current income tax provision (benefit) take into account current tax laws, their interpretation and possible results of foreign and domestic tax audits. Changes in tax law, and their interpretation, could significantly impact the income taxes provided in the Company’s consolidated financial statements. The evaluation of the Company’s uncertain tax positions involves significant judgment in the interpretation and application of GAAP and complex domestic and international tax laws, and matters related to the allocation of international taxation rights between countries. Although management believes the Company’s reserves are reasonable, no assurance can be given that the final tax outcome of these matters will not be different from that which is reflected in the Company’s reserves. Reserves are adjusted considering changing facts and circumstances, such as the closing of a tax examination or the refinement of an estimate. Assumptions, judgments and estimates relative to the amount of deferred income taxes, and any applicable valuation allowances, take into account future taxable income. Any of the assumptions, judgments and estimates mentioned above could cause the actual income tax obligations to differ from estimates. Earnings Per Share Basic earnings per share is calculated by dividing net income by the weighted-average number of common stock shares outstanding. Diluted earnings per share is calculated by dividing net income by the weighted-average number of common stock shares outstanding adjusted for the potentially dilutive impact of stock options, restricted stock and ESPP using the using the two-class method required for participating securities. We consider restricted stock awards to be participating securities due to their non-forfeitable dividend rights. Cash, Cash Equivalents and Marketable Securities The Company classifies all investments that are readily convertible to known amounts of cash and have maturities of three months or less from the date of purchase as cash equivalents, which consist primarily of money market funds and commercial paper, and those with stated maturities of greater than three months as marketable securities, which primarily consist of corporate debt securities and U.S. government and agency securities. Investments in marketable securities with maturities beyond one year are also classified as short-term available-for-sale securities based on their highly liquid nature and because they are available for current operations. Cash equivalents and marketable securities are carried at fair value. Realized gains and losses are recognized in other expense (income), net on the consolidated statement of operations. Unrealized gains and losses, net of taxes, are included in stockholders' equity. The Company uses Financial Instruments-Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments to assess the investment portfolio for impairment at the individual security level and evaluates all securities in an unrealized loss position to determine if the impairment is credit related (resulting in realized credit loss, recorded in earnings) or non-credit related (resulting in an unrealized loss, recorded in stockholders' equity). We have not recorded any impairment charges for unrealized losses in the periods presented. Refer to Note 6—Cash, Cash Equivalents and Short-Term Investments, Net Accounts Receivable and Allowance for Credit Losses Accounts receivable are recorded at the invoiced amount, are unsecured, and do not bear interest. The Company performs ongoing credit evaluations of its clients and certain advertisers when the Company’s agreements with its clients contain sequential liability terms such that client payments are not due to the Company until the client has received payment from its clients who are advertisers. The Company maintains an allowance for credit losses for expected uncollectible accounts receivable, which is recorded as an offset to accounts receivable and changes in such are classified as general and administrative expense on the consolidated statements of operations. On January 1, 2020 . Industry-specific default rates are applied to the advertiser’s industry if the receivables are subject to sequential liability or the Company is engaged with the advertiser directly. For the years ended December 31, 2021 and 2020, the Company’s assessment considered business and market disruptions caused by the COVID-19 pandemic and estimates of credit defaults by industry. The Company continues to monitor the financial implications of the COVID-19 pandemic on expected credit losses by reviewing the allowance for credit losses on a quarterly basis. Account balances are charged off against the allowance when the Company believes it is probable the receivable will not be recovered. The following table presents changes in the accounts receivable allowance for credit losses (in thousands): Year Ended December 31, 2021 2020 2019 Beginning balance $ 7,253 $ 3,920 $ 2,973 Add: impact upon adoption of new accounting standard — 553 — Add: bad debt expense 1,456 3,149 2,702 Less: write-offs, net of recoveries (1,335 ) (369 ) (1,755 ) Ending balance $ 7,374 $ 7,253 $ 3,920 Property and Equipment, Net Property and equipment are recorded at historical cost, less accumulated depreciation and amortization. Depreciation is computed using the straight-line method based upon the following estimated useful lives: Years Computer equipment 2 – 3 Purchased software 3 – 5 Furniture, fixtures and office equipment 5 Leasehold improvements * _________________ * Leasehold improvements are amortized on a straight-line basis over the term of the lease, or the useful life of the assets, whichever is shorter. Repair and maintenance costs are charged to expense as incurred, while improvements are capitalized. When assets are retired or otherwise disposed of, the cost and related accumulated depreciation are removed from the accounts and any resulting gain or loss is reflected in the Company’s operating results. Capitalized Software Development Costs The Company capitalizes certain costs associated with creating and enhancing internally developed software related to the Company’s technology infrastructure. These costs include personnel and benefit-related expenses for employees who are directly associated with and devote time to software development projects, and external direct costs of materials and services consumed in developing or obtaining the software. Software development costs that do not qualify for capitalization, as further discussed below, are expensed as incurred and recorded in technology and development expenses in the consolidated statements of operations. Software development activities typically consist of three stages: (1) the planning phase; (2) the application and infrastructure development stage; and (3) the post-implementation stage. Costs incurred in the planning and post implementation phases, including costs associated with the post-configuration training and repairs and maintenance of the developed technologies, are expensed as incurred. The Company capitalizes costs associated with software developed when the preliminary project stage is completed, management implicitly or explicitly authorizes and commits to funding the project and it is probable that the project will be completed and perform as intended. Costs incurred in the application and infrastructure development phases, including significant enhancements and upgrades, are capitalized. Capitalization ends once a project is substantially complete and the software is ready for its intended purpose. Software development costs are amortized using a straight-line method over the estimated useful life of two years, commencing when the software is ready for its intended use. The straight-line recognition method approximates the manner in which the expected benefit will be derived. The Company does not transfer ownership of its internally developed software, or lease its software, to third parties. Cloud computing arrangements (“CCAs”), such as software as a service and other hosting arrangements, are evaluated for capitalized implementation costs in a similar manner as capitalized software development costs. If a CCA includes a software license, the software license element of the arrangement is accounted for in a manner consistent with the acquisition of other software licenses. If a CCA does not include a software license, the service element of the arrangement is accounted for as a service contract. The Company capitalized certain implementation costs its CCAs that are service contracts, which are included in . The Company amortizes capitalized implementation costs in a CCA over the life of the service contract. Operating Leases On January 1, 2019, the Company adopted ASU No. 2016-02, codified as ASC 842, using the modified retrospective adoption approach. The Company elected the transition option provided by ASU No. 2018-11, Leases (Topic 842): Targeted Improvements, to not restate comparative periods, but rather to initially adopt the requirements of ASC 842 on January 1, 2019. The most significant impact of the adoption of ASC 842 resulted in the recognition of operating lease right-of-use assets (“operating lease assets”) of approximately $41 million, net of deferred rent and direct costs, and operating lease liabilities of approximately $47 million on its consolidated balance sheet. The impact on the Company’s consolidated statements of operations and cash flows was not material. ASC 842 provides various optional transition practical expedients. Upon transition to ASC 842, the Company elected the use of the package of practical expedients to not reassess: whether a contract is or contains a lease, lease classification and indirect costs. The Company did not elect the hindsight practical expedient in transition. The Company has elected to not separate lease and non-lease components. The Company has operating leases for its offices, which have remaining lease terms of up to 10 years, some of which include options to extend the leases for up to five years, and some of which include options to terminate the leases within one year with proper notification. The Company determines if an arrangement is, or contains, a lease at inception. Operating lease assets represent the Company’s right to control the use of an identified asset for a period of time, or term, in exchange for consideration, and operating lease liabilities represent its obligation to make lease payments arising from the aforementioned right. Operating lease assets and liabilities are initially recorded based on the present value of lease payments over the lease term, which includes the minimum unconditional term of the lease, and may include options to extend or terminate the lease when it is reasonably certain at the commencement date that such options will be exercised. As the rate implicit for each of the Company’s leases is not readily determinable, the Company uses its incremental borrowing rate, based on the information available at the lease commencement date in determining the present value of its expected lease payments. Operating lease assets also include any initial direct costs and any lease payments made prior to the lease commencement date and are reduced by any lease incentives received. Leases with an initial term of 12 months or less are not recorded on the balance sheet. The Company does not have finance leases. Operating lease assets are amortized on a straight-line basis as operating lease cost over the lease term on the consolidated statements of operations. The related amortization, referred to as noncash lease expense, along with the change in the operating lease liabilities are separately presented within the cash flows from operating activities on the consolidated statements of cash flows. The Company records rent expense for operating leases, some of which have escalating rent payments, on a straight-line basis over the lease term. Certain leases contain provisions for property-related costs that are variable in nature for which the Company is responsible, including common area maintenance and other property operating services. These costs are calculated based on a variety of factors including property values, tax and utility rates, property services fees, and other factors. Refer to Note 8—Leases Fair Value of Financial Instruments Fair value is defined as the exchange price that would be received for an asset or paid to transfer a liability (an exit price) in the principal or most advantageous market for the asset or liability in an orderly transaction between market participants on the measurement date. Valuation techniques used to measure fair value must maximize the use of observable inputs and minimize the use of unobservable inputs. Fair value measurements are based on a fair value hierarchy, based on three levels of inputs, of which the first two are considered observable and the last unobservable, which are the following: Level 1—Quoted prices (unadjusted) in active markets for identical assets or liabilities that the Company has the ability to access at the measurement date. Level 2—Inputs other than quoted prices included within Level 1 that are observable for the asset or liability, either directly or indirectly, such as quoted market prices for similar assets and liabilities; quoted prices in markets that are not active; or other inputs that are observable or can be corroborated by observable market data for substantially the full term of the asset or liability. Level 3—Unobservable inputs. Observable inputs are based on market data obtained from independent sources. The carrying amounts of accounts receivable, prepaid expenses and other current assets, accounts payable, accrued expenses and other current liabilities approximate fair value due to the short-term nature of these instruments. The carrying value of the line of credit approximates fair value based on borrowing rates currently available to the Company for financing with similar terms and were determined to be Level 2. Certain long-lived assets including capitalized software development costs are also subject to measurement at fair value on a non-recurring basis if they are deemed to be impaired as a result of an impairment review. To date, no material impairments have been recorded on those assets. Concentration of Risk Financial instruments that potentially subject the Company to concentration of credit risk consist principally of cash and cash equivalents, short-term investments and accounts receivable. The Company maintains its cash and cash equivalents with financial institutions, and its cash levels exceed the Federal Deposit Insurance Corporation federally insured limits. Short-term investments consist of investments in U.S. government securities, U.S. government agency securities, and high-credit quality corporate debt securities . If all of our individual client contractual relationships were aggregated at the holding company level, two holding companies would each represent more than 10% of our Gross Billings in 2021, 2020 and 2019. In 2021, two holding companies accounted for 11% and 10% of Gross Billings. In 2020, two holding companies each accounted for 11% of Gross Billings. In 2019, two holding companies accounted for 13% and 10% of Gross Billings. We do not have contractual relationships with these holding companies. Rather, we enter into separate contracts and billing relationships with various of their individual agencies and account for those agencies as separate clients. As of December 31, 2021, three clients each accounted for at least 10%, and collectively accounted for 41%, of consolidated accounts receivable. As of December 31, 2020, four clients each accounted for at least 10%, and collectively accounted for 51%, of consolidated accounts receivable. As of December 31, 2021, one supplier accounted for 17% of consolidated accounts payable. As of December 31, 2020, no supplier accounted for more than 10% of consolidated accounts payable. Foreign Currency Transactions The Company’s reporting currency is the U.S. Dollar, and the functional currency of each of our subsidiaries is the U.S. Dollar. Transactions in foreign currencies are translated into U.S. Dollars at the rates of exchange in effect at the date of the transaction. Net transaction losses are included in foreign currency exchange loss, net in the accompanying consolidated statements of operations. The Company enters into forward contracts to hedge foreign currency exposures related primarily to the Company’s foreign currency denominated accounts receivable. The Company does not designate the foreign exchange forward contracts as hedges for accounting purposes and changes in the fair value of the foreign exchange forward contracts are recorded in foreign currency exchange loss, net in the accompanying consolidated statements of operations. The Company’s forward contracts generally have terms of 30-60 days. As of December 31, 2021, and 2020, the Company had open forward contracts with aggregate notional amounts of $250.7 million and $169.9 million, respectively. The fair value of the open forward contracts was not material. Business Combinations The results of a business combination are included in the Company’s consolidated financial statements from the date of the acquisition. Purchase accounting results in assets and liabilities of an acquired business are generally recorded at their estimated fair values on the acquisition date, which may require management to use significant judgment and estimates, including the selection of valuation methodologies, estimates of future revenue, costs and cash flows, discount rates, and selection of comparable companies. The Company engages valuation specialists to assist in determining the fair values of these acquired assets and liabilities. Any excess consideration over the fair value of these acquired assets and liabilities assumed is recognized as goodwill. In July 2021, the Company acquired all of the equity interests of a technology company for a GAAP purchase price of $17.8 million, subject to purchase price adjustments. The purchase consideration was primarily attributable to non-deductible goodwill of $11.4 million, with the remainder allocated to acquired technology and other assets Recent Accounting Pronouncements In December 2019, the FASB issued Accounting Standard Update No. 2019-12 , Income Taxes (Topic 740): Simplifying the Accounting for Income Taxes (ASU 2019-12) , which simplifies the accounting for income taxes. The Company adopted |