XML 77 R60.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Stock-Based Compensation - Stock-Based Award Plans - Additional Information (Detail) - 2016 Incentive Award Plan - shares shares in Millions | Jan. 01, 2022 | Dec. 31, 2021
--- | --- | ---
Stock-Based Compensation |  |
Shares remained available for grant |  | 56.4
Maximum annual increase in shares available for issuance, percentage of outstanding shares |  | 4.00%
Subsequent Event |  |
Stock-Based Compensation |  |
Number of additional shares authorized for grant | 19.3 |

X
- Definition The maximum annual increase in shares reserved for issuance under the stock-based compensation plan, as a percentage of the entity's outstanding shares on an as-converted basis as of the end of the immediately preceding calendar year. + References No definition available. + Details
Name: | ttd_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumAnnualIncreaseInSharesReservedForIssuancePercentageOfSharesOutstanding
Namespace Prefix: | ttd_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of additional shares authorized for issuance under share-based payment arrangement. + References No definition available. + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable. + 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 -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | us-gaap_PlanNameAxis=ttd_TwoThousandSixteenIncentivePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=ttd_TwoThousandAndSixteenIncentiveAwardPlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |