XML 43 R26.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Leases (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2021
Leases [Abstract] |
Summary of Components of Lease Expense | The components of lease expense were as follows (in thousands):
|  | Year Ended December 31, |
|  | 2021 |  |  | 2020 |
Operating lease cost |  | $ | 50,798 |  |  | $ | 42,272 |
Short-term lease cost |  |  | 969 |  |  |  | 908 |
Variable lease cost |  |  | 6,742 |  |  |  | 5,984 |
Sublease income |  |  | (2,734 | ) |  |  | (3,645 | )
Total lease cost |  | $ | 55,775 |  |  | $ | 45,519 |
Summary of Supplemental Information Related to Leases | Supplemental information related to leases were as follows:
|  | Year Ended December 31, |
|  | 2021 |  |  | 2020 |
Weighted-average remaining lease term |  | 7.1 years |  |  | 7.9 years |
Weighted-average discount rate |  |  | 3.0 | % |  |  | 3.4 | %
Summary of Maturities of Lease Commitments | Maturities of lease commitments as of December 31, 2021 were as follows (in thousands):
Year |  | Amount |
2022 |  | $ | 53,990 |
2023 |  |  | 50,201 |
2024 |  |  | 43,740 |
2025 |  |  | 39,020 |
2026 |  |  | 35,397 |
Thereafter |  |  | 96,113 |
Total undiscounted lease commitments |  |  | 318,461 |
Less: commitments for leases not yet commenced |  |  | (249 | )
Less: interest |  |  | (33,614 | )
Present value of lease liabilities |  |  | 284,598 |
Less: operating lease liabilities, current |  |  | (46,149 | )
Operating lease liabilities, non-current |  | $ | 238,449 |

X
- Definition Tabular disclosure of summary of supplemental information related to leases. + References No definition available. + Details
Name: | ttd_SummaryOfSupplementalInformationRelatedToLeasesTableTextBlock
Namespace Prefix: | ttd_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980 + Details
Name: | us-gaap_LeaseCostTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=123408670&loc=SL77918701-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration