XML 88 R74.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Gross Billings, Based on Billing Address of Clients or Client Affiliates (Detail) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2017 | Dec. 31, 2016 | Dec. 31, 2015
Segment Reporting Information [Line Items] |  |  |
Gross Billings | $ 1,491,742 | $ 990,561 | $ 529,975
UNITED STATES |  |  |
Segment Reporting Information [Line Items] |  |  |
Gross Billings | 1,270,116 | 868,877 | 477,585
International |  |  |
Segment Reporting Information [Line Items] |  |  |
Gross Billings | $ 221,626 | $ 121,684 | $ 52,390

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

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

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