XML 85 R68.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Stock-Based Compensation - ESPP - Additional Information (Detail) - USD ($) $ in Thousands |  | 12 Months Ended |
--- | --- | --- | ---
Jan. 01, 2021 | Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2016 | Sep. 30, 2016
Stock-Based Compensation |  |  |  |  |  |
Stock-based compensation expense |  | $ 337,413 | $ 111,775 | $ 80,758 |  |
ESPP |  |  |  |  |  |
Stock-Based Compensation |  |  |  |  |  |
Shares remained available for grant |  | 7,600,000 |  |  |  |
Maximum annual increase in shares available for grant (in shares) |  | 8,000,000.0 |  |  |  |
Number of additional shares authorized for grant | 4,400,000 |  |  |  |  |
Maximum employee payroll deduction (as a percent) |  | 100.00% |  |  |  |
Maximum offering period |  | 2 years |  |  |  |
Period between purchases |  | 6 months |  |  |  |
Price of ESPP shares as percentage of market price |  | 85.00% |  |  |  |
Holding period for purchases after the first offering period |  |  |  |  | 6 months |
Stock-based compensation expense |  | $ 62,200 | $ 33,000 | $ 25,700 |  |
Unrecognized employee stock-based compensation |  | $ 41,400 |  |  |  |
Unrecognized stock-based compensation, recognition period |  | 6 months |  |  |  |
ESPP | Class A common stock |  |  |  |  |  |
Stock-Based Compensation |  |  |  |  |  |
Stock available for issuance (in shares) |  |  |  |  |  | 8,000,000.0
Maximum annual increase in shares available for issuance, percentage of outstanding shares |  | 1.00% |  |  |  |

X
- Definition Holding period during which transferability of shares purchased under the plan is restricted, for purchases after the first offering period. + References No definition available. + Details
Name: | ttd_ShareBasedCompensationArrangementByShareBasedPaymentAwardHoldingPeriodAfterFirstOfferingPeriod
Namespace Prefix: | ttd_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

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 Maximum typical length of offering periods for employee purchases of shares under the plan. + References No definition available. + Details
Name: | ttd_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumOfferingPeriod
Namespace Prefix: | ttd_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Typical duration of the period between employee purchases of shares under the plan. + References No definition available. + Details
Name: | ttd_ShareBasedCompensationArrangementByShareBasedPaymentAwardPeriodBetweenPurchases
Namespace Prefix: | ttd_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The maximum subject to annual increase in the number of shares reserved for issuance under the stock-based compensation plan. + References No definition available. + Details
Name: | ttd_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesReservedForGrantSubjectToAnnualIncrease
Namespace Prefix: | ttd_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of expense for award under share-based payment arrangement. Excludes amount capitalized. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901 Reference 2: 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.F) -URI http://asc.fasb.org/extlink&oid=122041274&loc=d3e301413-122809 Reference 3: 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_AllocatedShareBasedCompensationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents 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 (i) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options. + 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 (i) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 The highest percentage of annual salary that an employee is permitted to utilize with respect to the plan. + 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_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

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 Number of shares authorized for issuance 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 (a)(3) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

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
- Definition Purchase price of common stock expressed as a percentage of its fair value. + References No definition available. + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

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

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |