XML 37 R23.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Basis of Presentation and Summary of Significant Accounting Policies (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2017
Accounting Policies [Abstract] |
Schedule of Changes in Allowance for Doubtful Accounts | The following table presents changes in the allowance for doubtful accounts (in thousands):
|  | Year Ended December 31, |
|  | 2015 |  |  | 2016 |  |  | 2017 |
Beginning balance |  | $ | 172 |  |  | $ | 686 |  |  | $ | 2,574 |
Add: bad debt expense |  |  | 542 |  |  |  | 1,890 |  |  |  | 4,289 |
Less: write-offs, net of recoveries |  |  | (28 | ) |  |  | (2 | ) |  |  | (4,606 | )
Ending balance |  | $ | 686 |  |  | $ | 2,574 |  |  | $ | 2,257 |
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 |
Purchased software |  |  | 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 Table [Text Block] + References No definition available. + Details
Name: | ttd_PropertyPlantAndEquipmentEstimatedEconomicUsefulLivesTableTextBlock
Namespace Prefix: | ttd_
Data Type: | nonnum: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 valuation allowances to reduce deferred tax assets to net realizable value, including identification of the deferred tax asset more likely than not will not be fully realized and the corresponding amount of the valuation allowance. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=84230637&loc=d3e32537-109319 + Details
Name: | us-gaap_SummaryOfValuationAllowanceTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration