XML 70 R56.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Capitalization - Convertible Preferred Stock Activity (Detail) - USD ($) $ / shares in Units, $ in Thousands |  | 1 Months Ended | 12 Months Ended
--- | --- | --- | ---
Sep. 26, 2016 | Feb. 29, 2016 | Dec. 31, 2016 | Dec. 31, 2015
Convertible Preferred Stock |  |  |  |  |  |
Proceeds from issuance of shares |  |  |  | $ 60,000 |  |
Proceeds from stock issuance used to repurchase other shares |  |  | $ 54,000 | 54,000 |  |
Preferred stock repurchase price per share, as a percentage of the Series C offering price |  |  | 80.00% |  |  |
Repurchase price of convertible preferred stock in excess of carrying value |  |  | $ 47,200 | $ 47,209 |  |
Common Stock |  |  |  |  |  |
Convertible Preferred Stock |  |  |  |  |  |
Issuance of stock (in shares) | [1] |  |  |  |  | 7,000
Stock issued in net exercise of warrants (in shares) | [1] |  |  | 449,000 |  |
Share price (in dollars per share) |  |  | $ 12.51 |  |  |
Number of common stock shares repurchased |  |  | 188,786 | 189,000 | [1] |
Additional Paid-In Capital |  |  |  |  |  |
Convertible Preferred Stock |  |  |  |  |  |
Repurchase price of convertible preferred stock in excess of carrying value |  |  | $ 1,200 | $ 1,168 |  |
Retained Earnings (Accumulated Deficit) |  |  |  |  |  |
Convertible Preferred Stock |  |  |  |  |  |
Repurchase price of convertible preferred stock in excess of carrying value |  |  | $ 46,000 | 46,041 |  |
Series Seed preferred stock warrants |  |  |  |  |  |
Convertible Preferred Stock |  |  |  |  |  |
Stock issued in net exercise of warrants (in shares) |  |  | 788,755 |  |  |
Repurchase of stock that was issued in net exercise of warrants (in shares) |  |  | 614,052 |  |  |
Warrants net exercised (in shares) |  |  | 808,135 |  |  |
Series C convertible preferred stock |  |  |  |  |  |
Convertible Preferred Stock |  |  |  |  |  |
Issuance of stock (in shares) |  |  | 11,500,587 |  |  |
Proceeds from issuance of shares |  |  | $ 60,000 |  |  |
Share price (in dollars per share) |  |  | $ 5.22 |  |  |
Series Seed convertible preferred stock |  |  |  |  |  |
Convertible Preferred Stock |  |  |  |  |  |
Number of preferred stock shares repurchased |  |  | 3,897,928 |  |  |
Stock issued in net exercise of warrants (in shares) |  |  | 788,755 |  |  |
Repurchase of stock that was issued in net exercise of warrants (in shares) |  |  | 614,052 |  |  |
Series A convertible preferred stock |  |  |  |  |  |
Convertible Preferred Stock |  |  |  |  |  |
Number of preferred stock shares repurchased |  |  | 8,485,350 |  |  |
Convertible Preferred Stock |  |  |  |  |  |
Convertible Preferred Stock |  |  |  |  |  |
Repurchase price including legal costs |  |  | $ 51,800 |  |  |
Carrying value of stock at the date of repurchase |  |  | $ 4,600 |  |  |
Repurchase price of convertible preferred stock in excess of carrying value |  |  |  | $ 4,623 |  |
Class B common stock |  |  |  |  |  |
Convertible Preferred Stock |  |  |  |  |  |
Stock issued in net exercise of warrants (in shares) |  | 448,545 |  |  |  |
Number of shares issued for automatic conversion of convertible preferred stock |  | 22,078,637 |  |  |  |
Number of common stock shares issued for each share of convertible preferred stock |  | 0.3333 |  |  |  |
[1] | See Note 9-Capitalization for discussion of the establishment of the Company’s two classes of common stock and the reclassification of its common stock into Class B common stock prior to the Company’s initial public offering (“IPO”) in September 2016.

X
- Definition Number of securities called for by warrants that were net exercised during the period. + References No definition available. + Details
Name: | ttd_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsExercised
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 Number of shares that were issued for the net exercise of warrants and have been repurchased during the period and have not been retired and are not held in treasury. + References No definition available. + Details
Name: | ttd_StockRepurchasedDuringPeriodSharesIssuedForWarrantsExercised
Namespace Prefix: | ttd_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Price paid per share to repurchase stock classified as temporary equity, as a percentage of the price per share of newly issued temporary equity in a separate series. + References No definition available. + Details
Name: | ttd_TemporaryEquityRepurchasePriceAsPercentageOfNewIssuePrice
Namespace Prefix: | ttd_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Temporary equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. + References No definition available. + Details
Name: | ttd_TemporaryEquityStockRepurchasedDuringPeriodValue
Namespace Prefix: | ttd_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The number of new shares issued in the conversion of stock in a noncash (or part noncash) transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=98513485&loc=d3e4313-108586 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=98513485&loc=d3e4332-108586 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=98513485&loc=d3e4304-108586 + Details
Name: | us-gaap_ConversionOfStockSharesIssued1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares issued for each share of convertible preferred stock that is converted. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21475-112644 Reference 2: 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(27)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: 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(28)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 6 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21506-112644 + Details
Name: | us-gaap_ConvertiblePreferredStockSharesIssuedUponConversion
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The cash outflow to reacquire preferred stock originally issued and identified as a security that can be exchanged for another type of financial security. This repurchased stock is held in treasury. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsForRepurchaseOfConvertiblePreferredStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow to reacquire common and preferred stock. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsForRepurchaseOfEquity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The excess of (1) fair value of the consideration transferred to the holders of the preferred stock over (2) the carrying amount of the preferred stock in the registrant's balance sheet, during the accounting period. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section S99 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=27010884&loc=d3e42851-122695 + Details
Name: | us-gaap_PreferredStockRedemptionPremium
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from issuance of preferred stocks identified as being convertible into another form of financial instrument, typically the entity's common stock. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Price of a single share of a number of saleable stocks of a company. + References No definition available. + Details
Name: | us-gaap_SharePrice
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of new stock issued during the period. + 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(29)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21463-112644 Reference 3: 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(28)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesNewIssues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares that have been repurchased and retired during the period. + 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(28)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21463-112644 Reference 4: 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(29)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_StockRepurchasedAndRetiredDuringPeriodShares
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock. + 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(28)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 Reference 3: 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(29)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21463-112644 + Details
Name: | us-gaap_StockRepurchasedDuringPeriodShares
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
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_TemporaryEquityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_CommonStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_AdditionalPaidInCapitalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_RetainedEarningsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

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

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_ConvertiblePreferredStockMember
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: |