XML 61 R44.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Earnings Per Share - Additional Information (Detail) | Dec. 31, 2021 Class
--- | ---
Earnings Per Share |
Number of classes of common stock | 2

X
- Definition The number of classes of common stock of the entity. + References No definition available. + Details
Name: | ttd_CommonStockNumberOfClasses
Namespace Prefix: | ttd_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration