XML 57 R40.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Basis of Presentation and Summary of Significant Accounting Policies - Concentration of Risk (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2021 HoldingCompany Client Supplier | Dec. 31, 2020 HoldingCompany Client Supplier | Dec. 31, 2019 HoldingCompany
Gross Billings |  |  |
Concentration Risk [Line Items] |  |  |
Number of holding company | HoldingCompany | 2 | 2 | 2
Gross Billings | Two Customers | Minimum | Holding Companies |  |  |
Concentration Risk [Line Items] |  |  |
Concentration risk, percentage | 10.00% | 10.00% | 10.00%
Gross Billings | Customer One | Holding Companies |  |  |
Concentration Risk [Line Items] |  |  |
Concentration risk, percentage | 11.00% | 11.00% | 13.00%
Gross Billings | Customer Two | Holding Companies |  |  |
Concentration Risk [Line Items] |  |  |
Concentration risk, percentage | 10.00% | 11.00% | 10.00%
Consolidated Accounts Receivable |  |  |
Concentration Risk [Line Items] |  |  |
Number of client | Client | 3 | 4 |
Consolidated Accounts Receivable | Customer One | Minimum | Clients |  |  |
Concentration Risk [Line Items] |  |  |
Concentration risk, percentage | 10.00% | 10.00% |
Consolidated Accounts Receivable | Customer Two | Minimum | Clients |  |  |
Concentration Risk [Line Items] |  |  |
Concentration risk, percentage | 10.00% | 10.00% |
Consolidated Accounts Receivable | Customer Three | Minimum | Clients |  |  |
Concentration Risk [Line Items] |  |  |
Concentration risk, percentage | 10.00% | 10.00% |
Consolidated Accounts Receivable | Customer Four | Minimum | Clients |  |  |
Concentration Risk [Line Items] |  |  |
Concentration risk, percentage |  | 10.00% |
Consolidated Accounts Receivable | All Customers | Clients |  |  |
Concentration Risk [Line Items] |  |  |
Concentration risk, percentage | 41.00% | 51.00% |
Trade Accounts Payables | Supplier Concentration Risk |  |  |
Concentration Risk [Line Items] |  |  |
Number of supplier | Supplier | 1 | 0 |
Trade Accounts Payables | Supplier Concentration Risk | Maximum | Supplier |  |  |
Concentration Risk [Line Items] |  |  |
Concentration risk, percentage | 17.00% | 10.00% |

X
- Definition Number of client. + References No definition available. + Details
Name: | ttd_NumberOfClient
Namespace Prefix: | ttd_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of holding company. + References No definition available. + Details
Name: | ttd_NumberOfHoldingCompany
Namespace Prefix: | ttd_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of suppliers. + References No definition available. + Details
Name: | ttd_NumberOfSuppliers
Namespace Prefix: | ttd_
Data Type: | xbrli:integerItemType
Balance Type: | na
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_ConcentrationRiskLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the "benchmark" (or denominator) in the equation, this concept represents the concentration percentage derived from the division. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 42 -URI http://asc.fasb.org/extlink&oid=123359005&loc=d3e9054-108599 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 18 -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=123594938&loc=d3e13531-108611 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 21 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123594938&loc=d3e13537-108611 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6404-108592 + Details
Name: | us-gaap_ConcentrationRiskPercentage1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=ttd_GrossBillingsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=ttd_TwoCustomersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=ttd_HoldingCompaniesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=ttd_CustomerOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=ttd_CustomerTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=us-gaap_AccountsReceivableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=ttd_ClientsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=ttd_CustomerThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=ttd_CustomerFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=us-gaap_CustomerConcentrationRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=ttd_TradeAccountsPayablesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=us-gaap_SupplierConcentrationRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=ttd_SupplierMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |