XML 39 R23.htm IDEA: XBRL DOCUMENT
v3.7.0.1

Nature of Operations - Additional Information (Detail) | 1 Months Ended
--- | ---
Mar. 31, 2017 shares
Class A common stock | Secondary Offering |
Organization Consolidation and Presentation of Financial Statements [Line Items] |
Number of shares sold by selling shareholders net of option granted to underwriters | 7,281,789

X
- Definition Organization consolidation and presentation of financial statements. + References No definition available. + Details
Name: | ttd_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems
Namespace Prefix: | ttd_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Stock sold during period shares selling stockholders net of option granted to underwriters. + References No definition available. + Details
Name: | ttd_StockSoldDuringPeriodSharesSellingStockholdersNetOfOptionGrantedToUnderwriters
Namespace Prefix: | ttd_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

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

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=ttd_SecondaryOfferingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |