XML 35 R24.htm IDEA: XBRL DOCUMENT
v3.21.2

Basis of Presentation and Summary of Significant Accounting Policies - Additional Information (Details) $ in Millions |  | 1 Months Ended
--- | --- | ---
Jun. 16, 2021 | Jul. 31, 2021 USD ($)
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |
Stock split ratio | 0.1 |
Technology Company |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |
Business combination, purchase price |  | $ 17.8
Non-deductible goodwill |  | $ 11.4

X
- Definition Basis of presentation and summary of significant accounting policies. + References No definition available. + Details
Name: | ttd_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems
Namespace Prefix: | ttd_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Non-deductible goodwill. + References No definition available. + Details
Name: | ttd_NonDeductibleGoodwill
Namespace Prefix: | ttd_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=116859721&loc=d3e6613-128477 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=116859721&loc=d3e6578-128477 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferred1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SAB TOPIC 4.C) -URI http://asc.fasb.org/extlink&oid=120397183&loc=d3e187143-122770 + Details
Name: | us-gaap_StockholdersEquityNoteStockSplitConversionRatio1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=ttd_TechnologyCompanyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |