XML 54 R37.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Basis of Presentation and Summary of Significant Accounting Policies - Capitalized Software Development Costs (Detail) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Basis of Presentation and Summary of Significant Accounting Policies |  |  |
Software development cost, amortization period | 2 years |  |
Capitalized Software Development |  |  |
Basis of Presentation and Summary of Significant Accounting Policies |  |  |
Service contracts included in other assets , noncurrent | $ 14,334 | $ 11,505 |
Amortization expenses | 4,700 | 5,800 | $ 5,500
ASU 2018-15 | Capitalized Software Development |  |  |
Basis of Presentation and Summary of Significant Accounting Policies |  |  |
Service contracts included in other assets , noncurrent | 1,700 | 1,000 |
Amortization expenses | $ 1,000 | $ 900 |

X
- Definition Amortization Period Of Capitalized Software Development Costs + References No definition available. + Details
Name: | ttd_AmortizationPeriodOfCapitalizedSoftwareDevelopmentCosts
Namespace Prefix: | ttd_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of expense for amortization of capitalized computer software costs. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 985 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 985 -SubTopic 20 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6501960&loc=d3e128487-111756 + Details
Name: | us-gaap_CapitalizedComputerSoftwareAmortization1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The carrying amount of capitalized computer software costs net of accumulated amortization as of the balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 985 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756 + Details
Name: | us-gaap_CapitalizedComputerSoftwareNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_SoftwareDevelopmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ttd_NotFoundDuringMigrationDeprecatedConceptNewAccountingPronouncementEarlyAdoptionAxis=us-gaap_AccountingStandardsUpdate201815Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |