XML 50 R33.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Basis of Presentation and Summary of Significant Accounting Policies - Stock-Based Compensation (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2021
Basis of Presentation and Summary of Significant Accounting Policies |
Expected term, description | For stock options, given the insufficient historical data relating to stock option exercises, the Company applies the simplified approach in which the expected term of an award is presumed to be the mid-point between the vesting date and the expiration date of the award. For ESPP awards, the expected term is the time period from the grant date to the respective purchase dates included within each offering period.
Dividend yield | 0.00%
Requisite service period | 4 years
Forfeiture method | The Company accounts for forfeitures as they occur.
Performance Option | Chief Executive Officer |
Basis of Presentation and Summary of Significant Accounting Policies |
Dividend yield | 0.00%
Derived service period | 5 years

X
- Definition Share based compensation arrangement by share based payment award award service period for market based metric. + References No definition available. + Details
Name: | ttd_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardServicePeriodForMarketBasedMetric
Namespace Prefix: | ttd_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Share based compensation forfeiture method. + References No definition available. + Details
Name: | ttd_ShareBasedCompensationForfeitureMethod
Namespace Prefix: | ttd_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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
- Definition Estimated period over which an employee is required to provide service in exchange for the equity-based payment award, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + 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 (a)(1) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The estimated dividend rate (a percentage of the share price) to be paid (expected dividends) to holders of the underlying shares over the option's term. + 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 (f)(2)(iii) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Discloses use of the simplified method to calculate the expected term that stock option awards under the specified plan will exist before being exercised or terminated, the reason and justification for its use, and the periods for which the method was used if it was not used in all periods presented. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 14.D.2.Q6) -URI http://asc.fasb.org/extlink&oid=122041274&loc=d3e301413-122809 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (f)(2)(i) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedTermSimplifiedMethod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_AwardTypeAxis=ttd_MarketBasedPerformanceAwardMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_TitleOfIndividualAxis=srt_ChiefExecutiveOfficerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |