XML 94 R77.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Segment and Geographical Information - Gross Billings, Based on Billing Address of Clients or Client Affiliates (Detail) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Revenues From External Customers And Long Lived Assets [Line Items] |  |  |
Gross Billings | $ 6,129,627 | $ 4,168,260 | $ 3,095,687
US |  |  |
Revenues From External Customers And Long Lived Assets [Line Items] |  |  |
Gross Billings | 5,286,191 | 3,605,665 | 2,639,497
International |  |  |
Revenues From External Customers And Long Lived Assets [Line Items] |  |  |
Gross Billings | $ 843,436 | $ 562,595 | $ 456,190

X
- Definition Billings, gross. + References No definition available. + Details
Name: | ttd_BillingsGross
Namespace Prefix: | ttd_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_StatementGeographicalAxis=country_US
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=us-gaap_NonUsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |