XML 43 R31.htm IDEA: XBRL DOCUMENT
v3.10.0.1

Stock-Based Compensation - Stock Options - Additional Information (Detail) shares in Millions | Jan. 01, 2018 shares
--- | ---
2016 Incentive Award Plan |
Stock-Based Compensation |
Number of additional shares authorized for grant | 1.7

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 an established share-based compensation plan. + References No definition available. + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

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