XML 62 R48.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Fair Value Measurements - Additional Information (Detail) | Sep. 26, 2016 USD ($) $ / shares shares | Sep. 02, 2016 | Dec. 31, 2017 USD ($) | Dec. 31, 2016 USD ($)
--- | --- | --- | --- | ---
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |  |
Reverse stock split ratio |  | 0.3333 |  |
IPO |  |  |  |
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |  |
IPO price (in dollars per share) | $ / shares | $ 18.00 |  |  |
Class B common stock |  |  |  |
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |  |
Stock issued in net exercise of warrants (in shares) | 448,545 |  |  |
Convertible Preferred Stock Warrants |  |  |  |
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |  |
Outstanding warrants converted during the period (in shares) | 1,382,505 |  |  |
Aggregate fair value of warrants | $ | $ 12,600,000 |  |  |
Class B Common Stock Warrants |  |  |  |
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |  |
Warrants issued in conversion (in shares) | 460,834 |  |  |
Stock issued in net exercise of warrants (in shares) | 448,545 |  |  |
Money Market Funds | Level 1 |  |  |  |
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |  |
Cash equivalents | $ |  |  | $ 5,000,000 | $ 0

X
- Definition Number of securities called for by warrants that were converted into another class of warrant during the period. + References No definition available. + Details
Name: | ttd_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsConverted
Namespace Prefix: | ttd_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of securities called for by warrants issued upon conversion of another class of warrant. + References No definition available. + Details
Name: | ttd_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsIssuedInConversion
Namespace Prefix: | ttd_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares issued as a result of the exercise of warrants. + References No definition available. + Details
Name: | ttd_StockIssuedDuringPeriodSharesWarrantsExercised
Namespace Prefix: | ttd_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.1) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_CashEquivalentsAtCarryingValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Definition Per share or per unit amount of equity securities issued. + References No definition available. + Details
Name: | us-gaap_SharesIssuedPricePerShare
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SAB TOPIC 4.C) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187143-122770 + Details
Name: | us-gaap_StockholdersEquityNoteStockSplitConversionRatio1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Value of outstanding derivative securities that permit the holder the right to purchase securities (usually equity) from the issuer at a specified price. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(i)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_WarrantsAndRightsOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=us-gaap_IPOMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassBMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ClassOfWarrantOrRightAxis=ttd_ConvertiblePreferredStockWarrantsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ClassOfWarrantOrRightAxis=ttd_ClassBCommonStockWarrantsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_MoneyMarketFundsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |