XML 66 R49.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Capitalized Software Development Costs - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Capitalized Software Development |  |  |
Capitalized Computer Software Net [Line Items] |  |  |
Amortization expenses | $ 4.7 | $ 5.8 | $ 5.5

X
- Definition Capitalized computer software net. + References No definition available. + Details
Name: | ttd_CapitalizedComputerSoftwareNetLineItems
Namespace Prefix: | ttd_
Data Type: | xbrli:stringItemType
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
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_SoftwareDevelopmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |