XML 36 R26.htm IDEA: XBRL DOCUMENT
v3.23.3

Earnings Per Share - Additional Information (Detail) | Sep. 30, 2023 Class
--- | ---
Earnings Per Share [Abstract] |
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