XML 38 R26.htm IDEA: XBRL DOCUMENT
v3.24.2.u1

Earnings Per Share - Additional Information (Detail) | Jun. 30, 2024 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