XML 76 R59.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Stock-Based Compensation - Stock-Based Compensation Expense - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Disclosure Of Compensation Related Costs Sharebased Payments [Abstract] |  |  |
Tax benefit on stock-based compensation expense | $ 104.4 | $ 134.6 | $ 43.1
Tax benefit to stock options exercised | $ 120.6 | $ 151.0 | $ 51.0

X
- Definition Tax benefit from stock based award activity. + References No definition available. + Details
Name: | ttd_TaxBenefitFromStockBasedAwardActivity
Namespace Prefix: | ttd_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Definition Amount of tax benefit for recognition of expense of award under share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(1)(i) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration