XML 38 R21.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Basis of Presentation and Summary of Significant Accounting Policies (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2021
Accounting Policies [Abstract] |
Schedule of Changes in Accounts Receivable Allowance for Credit Losses | 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 |
Schedule of Useful lives of PPE | 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.

X
- Definition Property plant and equipment estimated economic useful lives. + References No definition available. + Details
Name: | ttd_PropertyPlantAndEquipmentEstimatedEconomicUsefulLivesTableTextBlock
Namespace Prefix: | ttd_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_AccountingPoliciesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of allowance for credit loss on accounts receivable. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447 + Details
Name: | us-gaap_AccountsReceivableAllowanceForCreditLossTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration