XML 74 R57.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Capitalization - Common and Preferred Stock (Detail) | Dec. 31, 2021 Vote
--- | ---
Class B common stock |
Class of Stock [Line Items] |
Number of votes per share of common stock | 10
Ratio for conversion into Class A common stock | 1
Class A common stock |
Class of Stock [Line Items] |
Number of votes per share of common stock | 1

X
- Definition Ratio for conversion of shares into Class A common stock, at the option of the holder or as triggered by certain transfers or conditions. + References No definition available. + Details
Name: | ttd_CommonStockConversionRatio
Namespace Prefix: | ttd_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition The number of votes per share to which the holders of common stock are entitled. + References No definition available. + Details
Name: | ttd_CommonStockNumberOfVotesPerShare
Namespace Prefix: | ttd_
Data Type: | xbrli:integerItemType
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_ClassOfStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassBMember
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: |