XML 50 R39.htm IDEA: XBRL DOCUMENT
v3.20.2

Geographic Information - Gross Billings, Based on Billing Address of Clients or Client Affiliates (Detail) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended
--- | --- | ---
Jun. 30, 2020 | Jun. 30, 2019 | Jun. 30, 2020 | Jun. 30, 2019
Revenues From External Customers And Long Lived Assets [Line Items] |  |  |  |
Gross Billings | $ 688,359 | $ 749,829 | $ 1,440,114 | $ 1,306,261
U.S. |  |  |  |
Revenues From External Customers And Long Lived Assets [Line Items] |  |  |  |
Gross Billings | 592,490 | 642,168 | 1,244,688 | 1,112,706
International |  |  |  |
Revenues From External Customers And Long Lived Assets [Line Items] |  |  |  |
Gross Billings | $ 95,869 | $ 107,661 | $ 195,426 | $ 193,555

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: |