XML 37 R26.htm IDEA: XBRL DOCUMENT
v3.20.2

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