<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e8fbd-2a42-7918-af7e-268fb081e883,g:c22eea29-5054-4837-8462-eb2ca607068f-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://thetradedesk.com/role/Cover" xlink:type="simple" xlink:href="ttd-20260630.xsd#Cover"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/Cover" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationTable_019e8fbd-2ae0-7ef9-999a-ec49acc37a70" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_DocumentInformationTable_019e8fbd-2ae0-7ef9-999a-ec49acc37a70" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7c97-9d12-597c6266ff0f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_019e8fbd-2ae0-7ef9-999a-ec49acc37a70" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7c97-9d12-597c6266ff0f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7c97-9d12-597c6266ff0f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7c97-9d12-597c6266ff0f" xlink:to="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7c97-9d12-597c6266ff0f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7bc9-a407-af431f56703f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7c97-9d12-597c6266ff0f" xlink:to="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7bc9-a407-af431f56703f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_019e8fbd-2ae0-73b7-9425-4a5a4087b0dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7bc9-a407-af431f56703f" xlink:to="loc_us-gaap_CommonClassAMember_019e8fbd-2ae0-73b7-9425-4a5a4087b0dd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_019e8fbd-2ae0-763b-8c74-ce44b55d7354" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7bc9-a407-af431f56703f" xlink:to="loc_us-gaap_CommonClassBMember_019e8fbd-2ae0-763b-8c74-ce44b55d7354" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentType_019e8fbd-2ae0-7d37-84c1-e03d49677fc8" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentType"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_DocumentType_019e8fbd-2ae0-7d37-84c1-e03d49677fc8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentQuarterlyReport_019e8fbd-2ae0-7f82-b13f-54cf397ea2d0" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentQuarterlyReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_DocumentQuarterlyReport_019e8fbd-2ae0-7f82-b13f-54cf397ea2d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentPeriodEndDate_019e8fbd-2ae0-7db3-866c-e744aee281f6" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentPeriodEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_DocumentPeriodEndDate_019e8fbd-2ae0-7db3-866c-e744aee281f6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentTransitionReport_019e8fbd-2ae0-72a9-9253-9fb69237b899" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentTransitionReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_DocumentTransitionReport_019e8fbd-2ae0-72a9-9253-9fb69237b899" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFileNumber_019e8fbd-2ae0-79d1-b3ab-5bb1b9681c17" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityFileNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityFileNumber_019e8fbd-2ae0-79d1-b3ab-5bb1b9681c17" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_019e8fbd-2ae0-7ea8-bc0a-c04bd4681b6f" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityRegistrantName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityRegistrantName_019e8fbd-2ae0-7ea8-bc0a-c04bd4681b6f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityIncorporationStateCountryCode_019e8fbd-2ae0-790d-8766-3ad5eaf735db" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityIncorporationStateCountryCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityIncorporationStateCountryCode_019e8fbd-2ae0-790d-8766-3ad5eaf735db" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_019e8fbd-2ae0-7360-8878-d97b89e06470" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityTaxIdentificationNumber_019e8fbd-2ae0-7360-8878-d97b89e06470" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine1_019e8fbd-2ae0-752a-8048-d46499a26734" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityAddressAddressLine1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityAddressAddressLine1_019e8fbd-2ae0-752a-8048-d46499a26734" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressCityOrTown_019e8fbd-2ae0-7308-bdc2-94b36ff92d7b" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityAddressCityOrTown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityAddressCityOrTown_019e8fbd-2ae0-7308-bdc2-94b36ff92d7b" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressStateOrProvince_019e8fbd-2ae0-7032-af43-dba993af8c88" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityAddressStateOrProvince"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityAddressStateOrProvince_019e8fbd-2ae0-7032-af43-dba993af8c88" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressPostalZipCode_019e8fbd-2ae0-7907-87ab-309cdb6a807d" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityAddressPostalZipCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityAddressPostalZipCode_019e8fbd-2ae0-7907-87ab-309cdb6a807d" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CityAreaCode_019e8fbd-2ae0-7832-825a-ac3379953fb9" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_CityAreaCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_CityAreaCode_019e8fbd-2ae0-7832-825a-ac3379953fb9" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LocalPhoneNumber_019e8fbd-2ae0-7243-be24-cd144c71f398" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_LocalPhoneNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_LocalPhoneNumber_019e8fbd-2ae0-7243-be24-cd144c71f398" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_Security12bTitle_019e8fbd-2ae0-7d8d-8053-6a6af8b50b3d" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_Security12bTitle"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_Security12bTitle_019e8fbd-2ae0-7d8d-8053-6a6af8b50b3d" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_TradingSymbol_019e8fbd-2ae0-7da8-96f5-f98507048f4a" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_TradingSymbol"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_TradingSymbol_019e8fbd-2ae0-7da8-96f5-f98507048f4a" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SecurityExchangeName_019e8fbd-2ae0-7b17-a69d-a0c9f0f6dda6" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_SecurityExchangeName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_SecurityExchangeName_019e8fbd-2ae0-7b17-a69d-a0c9f0f6dda6" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCurrentReportingStatus_019e8fbd-2ae0-7504-b4f6-29593bf4b23c" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityCurrentReportingStatus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityCurrentReportingStatus_019e8fbd-2ae0-7504-b4f6-29593bf4b23c" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInteractiveDataCurrent_019e8fbd-2ae0-7d87-b0a1-4e64a3042df7" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityInteractiveDataCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityInteractiveDataCurrent_019e8fbd-2ae0-7d87-b0a1-4e64a3042df7" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFilerCategory_019e8fbd-2ae0-7642-800b-8c224b4eedab" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityFilerCategory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityFilerCategory_019e8fbd-2ae0-7642-800b-8c224b4eedab" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitySmallBusiness_019e8fbd-2ae0-7618-9206-b0ca3663f660" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntitySmallBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntitySmallBusiness_019e8fbd-2ae0-7618-9206-b0ca3663f660" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityEmergingGrowthCompany_019e8fbd-2ae0-7708-8f78-28bf44cf1e97" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityEmergingGrowthCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityEmergingGrowthCompany_019e8fbd-2ae0-7708-8f78-28bf44cf1e97" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityShellCompany_019e8fbd-2ae0-7c8a-b0b9-a8b2daad82ac" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityShellCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityShellCompany_019e8fbd-2ae0-7c8a-b0b9-a8b2daad82ac" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_019e8fbd-2ae0-765e-b4f8-e4487b2b5d42" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityCommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_019e8fbd-2ae0-765e-b4f8-e4487b2b5d42" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_019e8fbd-2ae0-7d83-bbd5-2494ac772cd0" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_EntityCentralIndexKey"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_EntityCentralIndexKey_019e8fbd-2ae0-7d83-bbd5-2494ac772cd0" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CurrentFiscalYearEndDate_019e8fbd-2ae0-7d76-a5d4-df877f5d6164" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_CurrentFiscalYearEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_CurrentFiscalYearEndDate_019e8fbd-2ae0-7d76-a5d4-df877f5d6164" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalYearFocus_019e8fbd-2ae0-70c8-a76e-8889b6d1dabd" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentFiscalYearFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_DocumentFiscalYearFocus_019e8fbd-2ae0-70c8-a76e-8889b6d1dabd" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalPeriodFocus_019e8fbd-2ae0-7ded-9128-f1a9885546b8" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_DocumentFiscalPeriodFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_DocumentFiscalPeriodFocus_019e8fbd-2ae0-7ded-9128-f1a9885546b8" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_019e8fbd-2ae0-7dfd-845b-12a05e2dbb4d" xlink:href="https://xbrl.sec.gov/dei/2026/dei-2026.xsd#dei_AmendmentFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_019e8fbd-2ae0-7b89-9190-8d24d09b4e17" xlink:to="loc_dei_AmendmentFlag_019e8fbd-2ae0-7dfd-845b-12a05e2dbb4d" xlink:type="arc" order="28"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="ttd-20260630.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019e8fbd-2ae0-79da-b1dc-af375abae2b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019e8fbd-2ae0-7c55-b13a-aafa32f59224" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019e8fbd-2ae0-79da-b1dc-af375abae2b5" xlink:to="loc_us-gaap_StatementTable_019e8fbd-2ae0-7c55-b13a-aafa32f59224" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7a30-abc2-66abe35d3ec7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019e8fbd-2ae0-7c55-b13a-aafa32f59224" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7a30-abc2-66abe35d3ec7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7a30-abc2-66abe35d3ec7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7a30-abc2-66abe35d3ec7" xlink:to="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7a30-abc2-66abe35d3ec7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7342-857d-fa657dc7b8f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7a30-abc2-66abe35d3ec7" xlink:to="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7342-857d-fa657dc7b8f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_019e8fbd-2ae0-7e59-84e9-d43c2d4e7b7d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7342-857d-fa657dc7b8f1" xlink:to="loc_us-gaap_CommonClassAMember_019e8fbd-2ae0-7e59-84e9-d43c2d4e7b7d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_019e8fbd-2ae0-7cc8-9b4f-189be84a4495" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7342-857d-fa657dc7b8f1" xlink:to="loc_us-gaap_CommonClassBMember_019e8fbd-2ae0-7cc8-9b4f-189be84a4495" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_019e8fbd-2ae0-78fc-b8a8-b66510c1c508" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e8fbd-2ae0-79da-b1dc-af375abae2b5" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_019e8fbd-2ae0-78fc-b8a8-b66510c1c508" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-7c5a-ad1f-48a3be8210c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e8fbd-2ae0-79da-b1dc-af375abae2b5" xlink:to="loc_us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-7c5a-ad1f-48a3be8210c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_019e8fbd-2ae0-7a2b-aa47-6bb7e4529c72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-7c5a-ad1f-48a3be8210c6" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_019e8fbd-2ae0-7a2b-aa47-6bb7e4529c72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_019e8fbd-2ae0-7135-86da-a43ce132481b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-7c5a-ad1f-48a3be8210c6" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_019e8fbd-2ae0-7135-86da-a43ce132481b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesIssued_019e8fbd-2ae0-7a60-8116-217fdca40033" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-7c5a-ad1f-48a3be8210c6" xlink:to="loc_us-gaap_PreferredStockSharesIssued_019e8fbd-2ae0-7a60-8116-217fdca40033" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_019e8fbd-2ae0-75b9-82e3-20c742b176b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PreferredStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-7c5a-ad1f-48a3be8210c6" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_019e8fbd-2ae0-75b9-82e3-20c742b176b0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-716c-bb6b-2e89744c2439" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e8fbd-2ae0-79da-b1dc-af375abae2b5" xlink:to="loc_us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-716c-bb6b-2e89744c2439" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_019e8fbd-2ae0-7bd3-b618-be0c1d2cc690" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-716c-bb6b-2e89744c2439" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_019e8fbd-2ae0-7bd3-b618-be0c1d2cc690" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_019e8fbd-2ae0-704c-80e7-a7257ec86a6b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-716c-bb6b-2e89744c2439" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_019e8fbd-2ae0-704c-80e7-a7257ec86a6b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_019e8fbd-2ae0-779a-afb6-d75383b7c436" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-716c-bb6b-2e89744c2439" xlink:to="loc_us-gaap_CommonStockSharesIssued_019e8fbd-2ae0-779a-afb6-d75383b7c436" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e8fbd-2ae0-7aed-9ae4-4578b58c43a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract_019e8fbd-2ae0-716c-bb6b-2e89744c2439" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019e8fbd-2ae0-7aed-9ae4-4578b58c43a9" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="ttd-20260630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019e8fbd-2ae0-754d-81d1-95a2757eb97a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019e8fbd-2ae0-7cd0-a006-70e9a2ca7999" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019e8fbd-2ae0-754d-81d1-95a2757eb97a" xlink:to="loc_us-gaap_StatementTable_019e8fbd-2ae0-7cd0-a006-70e9a2ca7999" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019e8fbd-2ae0-7abd-888a-e733b969a26a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019e8fbd-2ae0-7cd0-a006-70e9a2ca7999" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019e8fbd-2ae0-7abd-888a-e733b969a26a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019e8fbd-2ae0-7abd-888a-e733b969a26a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019e8fbd-2ae0-7abd-888a-e733b969a26a" xlink:to="loc_us-gaap_EquityComponentDomain_019e8fbd-2ae0-7abd-888a-e733b969a26a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019e8fbd-2ae0-7a33-a037-3f3bec0d9e6a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019e8fbd-2ae0-7abd-888a-e733b969a26a" xlink:to="loc_us-gaap_EquityComponentDomain_019e8fbd-2ae0-7a33-a037-3f3bec0d9e6a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_019e8fbd-2ae0-7bb6-86cb-c6c9ffdbae33" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e8fbd-2ae0-7a33-a037-3f3bec0d9e6a" xlink:to="loc_us-gaap_CommonStockMember_019e8fbd-2ae0-7bb6-86cb-c6c9ffdbae33" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_019e8fbd-2ae0-7574-9388-db0e0c8d1a95" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e8fbd-2ae0-7a33-a037-3f3bec0d9e6a" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_019e8fbd-2ae0-7574-9388-db0e0c8d1a95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_019e8fbd-2ae0-78b4-82ce-94b21866e605" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e8fbd-2ae0-7a33-a037-3f3bec0d9e6a" xlink:to="loc_us-gaap_RetainedEarningsMember_019e8fbd-2ae0-78b4-82ce-94b21866e605" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e8fbd-2ae0-754d-81d1-95a2757eb97a" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e8fbd-2ae0-774e-ba0f-0257d0e77ab1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019e8fbd-2ae0-774e-ba0f-0257d0e77ab1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e8fbd-2ae0-7785-88c0-be3dfc1ac541" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_StockholdersEquity_019e8fbd-2ae0-7785-88c0-be3dfc1ac541" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019e8fbd-2ae0-75b1-869a-1def4543d832" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019e8fbd-2ae0-75b1-869a-1def4543d832" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_019e8fbd-2ae0-78d2-8b12-2a33a1a559be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_019e8fbd-2ae0-78d2-8b12-2a33a1a559be" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_StockIssuedDuringPeriodSharesRestrictedStockNetOfForfeituresAndSharesWithheldForTaxes_019e8fbd-2ae0-7e90-a32a-631f10689b56" xlink:href="ttd-20260630.xsd#ttd_StockIssuedDuringPeriodSharesRestrictedStockNetOfForfeituresAndSharesWithheldForTaxes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_ttd_StockIssuedDuringPeriodSharesRestrictedStockNetOfForfeituresAndSharesWithheldForTaxes_019e8fbd-2ae0-7e90-a32a-631f10689b56" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_StockIssuedDuringPeriodValueRestrictedStockNetOfForfeituresAndSharesWithheldForTaxes_019e8fbd-2ae0-7203-9b86-00ce99ae398f" xlink:href="ttd-20260630.xsd#ttd_StockIssuedDuringPeriodValueRestrictedStockNetOfForfeituresAndSharesWithheldForTaxes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_ttd_StockIssuedDuringPeriodValueRestrictedStockNetOfForfeituresAndSharesWithheldForTaxes_019e8fbd-2ae0-7203-9b86-00ce99ae398f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_019e8fbd-2ae0-741e-96c4-5cc718b568c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_019e8fbd-2ae0-741e-96c4-5cc718b568c2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_019e8fbd-2ae0-7ad2-b42d-95c5092b19ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_019e8fbd-2ae0-7ad2-b42d-95c5092b19ae" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019e93a4-21cf-774a-8f12-ba7e2ad933c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019e93a4-21cf-774a-8f12-ba7e2ad933c3" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_019e93a4-21cf-77e0-8687-3a1196dfc196" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_019e93a4-21cf-77e0-8687-3a1196dfc196" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019e8fbd-2ae0-794d-b2e6-746be1bfe214" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019e8fbd-2ae0-794d-b2e6-746be1bfe214" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_019e8fbd-2ae0-7793-9889-cc40c97c6a45" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_019e8fbd-2ae0-7793-9889-cc40c97c6a45" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019e8fbd-2ae0-777f-af1a-d153ff651d37" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019e8fbd-2ae0-777f-af1a-d153ff651d37" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e8fbd-2ae0-77f5-a003-d20b569d2128" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e8fbd-2ae0-7da8-baaa-a010de104af9" xlink:to="loc_us-gaap_NetIncomeLoss_019e8fbd-2ae0-77f5-a003-d20b569d2128" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e8fbd-2ae0-77a7-9706-221b4e8f4d2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e8fbd-2ae0-796f-a87f-af0b97b5ffe2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesDetails" xlink:type="simple" xlink:href="ttd-20260630.xsd#BasisofPresentationandSummaryofSignificantAccountingPoliciesDetails"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingEstimateLineItems_019f48de-8617-79eb-b8d9-dd541adb160d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ChangeInAccountingEstimateLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfChangeInAccountingEstimateTable_019f48de-8617-7d1f-8809-74db13a5d08b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfChangeInAccountingEstimateTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ChangeInAccountingEstimateLineItems_019f48de-8617-79eb-b8d9-dd541adb160d" xlink:to="loc_us-gaap_ScheduleOfChangeInAccountingEstimateTable_019f48de-8617-7d1f-8809-74db13a5d08b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019f48e0-6100-7b89-a9aa-86bed134684b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ChangeInAccountingEstimateByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfChangeInAccountingEstimateTable_019f48de-8617-7d1f-8809-74db13a5d08b" xlink:to="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019f48e0-6100-7b89-a9aa-86bed134684b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019f48e0-6100-7b89-a9aa-86bed134684b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ChangeInAccountingEstimateTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019f48e0-6100-7b89-a9aa-86bed134684b" xlink:to="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019f48e0-6100-7b89-a9aa-86bed134684b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019f48e0-6100-75d5-8f7b-0a40a495ef4f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ChangeInAccountingEstimateTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019f48e0-6100-7b89-a9aa-86bed134684b" xlink:to="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019f48e0-6100-75d5-8f7b-0a40a495ef4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServiceLifeMember_019f48e3-3fbf-7598-972e-382734355bdc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ServiceLifeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019f48e0-6100-75d5-8f7b-0a40a495ef4f" xlink:to="loc_us-gaap_ServiceLifeMember_019f48e3-3fbf-7598-972e-382734355bdc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019f48e1-16f3-7787-8840-0fdb58dee16a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfChangeInAccountingEstimateTable_019f48de-8617-7d1f-8809-74db13a5d08b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019f48e1-16f3-7787-8840-0fdb58dee16a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f48e1-16f3-7787-8840-0fdb58dee16a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019f48e1-16f3-7787-8840-0fdb58dee16a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f48e1-16f3-7787-8840-0fdb58dee16a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f48e1-16f3-74b9-ae89-e882d72ef14a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019f48e1-16f3-7787-8840-0fdb58dee16a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f48e1-16f3-74b9-ae89-e882d72ef14a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerEquipmentMember_019f48e2-5c4f-7207-9e9f-9721506045d8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComputerEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f48e1-16f3-74b9-ae89-e882d72ef14a" xlink:to="loc_us-gaap_ComputerEquipmentMember_019f48e2-5c4f-7207-9e9f-9721506045d8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_019f48de-8617-73c0-b6aa-8180414ab651" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingEstimateLineItems_019f48de-8617-79eb-b8d9-dd541adb160d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_019f48de-8617-73c0-b6aa-8180414ab651" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_019fa9e6-063f-7358-a9c0-048d1bc5a5a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingEstimateLineItems_019f48de-8617-79eb-b8d9-dd541adb160d" xlink:to="loc_us-gaap_Depreciation_019fa9e6-063f-7358-a9c0-048d1bc5a5a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019f48e6-d765-7325-8bb9-012121179d05" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingEstimateLineItems_019f48de-8617-79eb-b8d9-dd541adb160d" xlink:to="loc_us-gaap_NetIncomeLoss_019f48e6-d765-7325-8bb9-012121179d05" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_ChangeInAccountingEstimateDilutedEarningsPerShareAdjustment_019f48ea-0aa3-7552-8e19-91e0053e727e" xlink:href="ttd-20260630.xsd#ttd_ChangeInAccountingEstimateDilutedEarningsPerShareAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingEstimateLineItems_019f48de-8617-79eb-b8d9-dd541adb160d" xlink:to="loc_ttd_ChangeInAccountingEstimateDilutedEarningsPerShareAdjustment_019f48ea-0aa3-7552-8e19-91e0053e727e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_ChangeInAccountingEstimateBasicEarningsPerShareAdjustment_019fd3b2-6ddf-7c0d-b475-693c96b61606" xlink:href="ttd-20260630.xsd#ttd_ChangeInAccountingEstimateBasicEarningsPerShareAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingEstimateLineItems_019f48de-8617-79eb-b8d9-dd541adb160d" xlink:to="loc_ttd_ChangeInAccountingEstimateBasicEarningsPerShareAdjustment_019fd3b2-6ddf-7c0d-b475-693c96b61606" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/CashCashEquivalentsandShortTermInvestmentsNetScheduleofCashCashEquivalentsandShorttermInvestmentsinMarketableSecuritiesDetail" xlink:type="simple" xlink:href="ttd-20260630.xsd#CashCashEquivalentsandShortTermInvestmentsNetScheduleofCashCashEquivalentsandShorttermInvestmentsinMarketableSecuritiesDetail"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/CashCashEquivalentsandShortTermInvestmentsNetScheduleofCashCashEquivalentsandShorttermInvestmentsinMarketableSecuritiesDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8fbd-2ae0-75df-b0f9-d6f2160fe44a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8fbd-2ae0-7d25-ba16-2e216e389648" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8fbd-2ae0-75df-b0f9-d6f2160fe44a" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8fbd-2ae0-7d25-ba16-2e216e389648" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e8fbd-2ae0-77d8-a28a-74b92399da8a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8fbd-2ae0-7d25-ba16-2e216e389648" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e8fbd-2ae0-77d8-a28a-74b92399da8a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8fbd-2ae0-77d8-a28a-74b92399da8a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e8fbd-2ae0-77d8-a28a-74b92399da8a" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8fbd-2ae0-77d8-a28a-74b92399da8a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8fbd-2ae0-7072-b35a-f3d5f1a59552" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e8fbd-2ae0-77d8-a28a-74b92399da8a" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8fbd-2ae0-7072-b35a-f3d5f1a59552" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019e8fbd-2ae0-7d21-9c36-9ed26c9015f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8fbd-2ae0-7072-b35a-f3d5f1a59552" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019e8fbd-2ae0-7d21-9c36-9ed26c9015f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019e8fbd-2ae0-7f31-aad1-f0ba0612718d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e8fbd-2ae0-7072-b35a-f3d5f1a59552" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019e8fbd-2ae0-7f31-aad1-f0ba0612718d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e8fbd-2ae0-7a83-9bbe-c82e8900ef8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8fbd-2ae0-7d25-ba16-2e216e389648" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e8fbd-2ae0-7a83-9bbe-c82e8900ef8f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8fbd-2ae0-7a83-9bbe-c82e8900ef8f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e8fbd-2ae0-7a83-9bbe-c82e8900ef8f" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8fbd-2ae0-7a83-9bbe-c82e8900ef8f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8fbd-2ae0-7893-bb0c-9e294e0b1eec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e8fbd-2ae0-7a83-9bbe-c82e8900ef8f" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8fbd-2ae0-7893-bb0c-9e294e0b1eec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019e8fbd-2ae0-703e-8fb7-1ceeb4672131" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8fbd-2ae0-7893-bb0c-9e294e0b1eec" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019e8fbd-2ae0-703e-8fb7-1ceeb4672131" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_019e8fbd-2ae0-7e8f-82d0-1be2327014c9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e8fbd-2ae0-7893-bb0c-9e294e0b1eec" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_019e8fbd-2ae0-7e8f-82d0-1be2327014c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_019e8fbd-2ae0-707e-ae1c-b5244d1e3e54" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e8fbd-2ae0-7d25-ba16-2e216e389648" xlink:to="loc_us-gaap_InvestmentTypeAxis_019e8fbd-2ae0-707e-ae1c-b5244d1e3e54" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e8fbd-2ae0-707e-ae1c-b5244d1e3e54_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e8fbd-2ae0-707e-ae1c-b5244d1e3e54" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e8fbd-2ae0-707e-ae1c-b5244d1e3e54_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_019e8fbd-2ae0-7ba3-9904-2e1bfd28d4b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_019e8fbd-2ae0-707e-ae1c-b5244d1e3e54" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_019e8fbd-2ae0-7ba3-9904-2e1bfd28d4b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashMember_019e8fbd-2ae0-7988-be95-4cf61b2f6d07" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e8fbd-2ae0-7ba3-9904-2e1bfd28d4b6" xlink:to="loc_us-gaap_CashMember_019e8fbd-2ae0-7988-be95-4cf61b2f6d07" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_019e8fbd-2ae0-7cb4-aaed-abc33b0c14e4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e8fbd-2ae0-7ba3-9904-2e1bfd28d4b6" xlink:to="loc_us-gaap_MoneyMarketFundsMember_019e8fbd-2ae0-7cb4-aaed-abc33b0c14e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019e8fbd-2ae0-7b25-bfa2-b77fa4663a3c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e8fbd-2ae0-7ba3-9904-2e1bfd28d4b6" xlink:to="loc_us-gaap_CommercialPaperMember_019e8fbd-2ae0-7b25-bfa2-b77fa4663a3c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_019f48f6-fae6-784e-b4c6-753546f41bae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_019e8fbd-2ae0-7ba3-9904-2e1bfd28d4b6" xlink:to="loc_us-gaap_CertificatesOfDepositMember_019f48f6-fae6-784e-b4c6-753546f41bae" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e8fbd-2ae0-728f-9070-15341cafa4bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8fbd-2ae0-75df-b0f9-d6f2160fe44a" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e8fbd-2ae0-728f-9070-15341cafa4bd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_019e8fbd-2ae0-710c-90d5-a081fc599e38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8fbd-2ae0-75df-b0f9-d6f2160fe44a" xlink:to="loc_us-gaap_ShortTermInvestments_019e8fbd-2ae0-710c-90d5-a081fc599e38" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_019e8fbd-2ae0-7f79-b3d7-346056631241" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e8fbd-2ae0-75df-b0f9-d6f2160fe44a" xlink:to="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_019e8fbd-2ae0-7f79-b3d7-346056631241" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/DebtDetails" xlink:type="simple" xlink:href="ttd-20260630.xsd#DebtDetails"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/DebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e8fbd-2ae0-773a-8b0b-fc8a17b328c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_us-gaap_DebtInstrumentTable_019e8fbd-2ae0-773a-8b0b-fc8a17b328c1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_019e8fbd-2ae0-784c-9a5a-4bfd8817c18a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e8fbd-2ae0-773a-8b0b-fc8a17b328c1" xlink:to="loc_us-gaap_CreditFacilityAxis_019e8fbd-2ae0-784c-9a5a-4bfd8817c18a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019e8fbd-2ae0-784c-9a5a-4bfd8817c18a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_019e8fbd-2ae0-784c-9a5a-4bfd8817c18a" xlink:to="loc_us-gaap_CreditFacilityDomain_019e8fbd-2ae0-784c-9a5a-4bfd8817c18a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019e8fbd-2ae0-7240-b640-2d454824c48c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_019e8fbd-2ae0-784c-9a5a-4bfd8817c18a" xlink:to="loc_us-gaap_CreditFacilityDomain_019e8fbd-2ae0-7240-b640-2d454824c48c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_019e8fbd-2ae0-7235-a7bb-6320e87c83e1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019e8fbd-2ae0-7240-b640-2d454824c48c" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_019e8fbd-2ae0-7235-a7bb-6320e87c83e1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_019e8fbd-2ae0-74a2-b2c7-ff6376b958b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e8fbd-2ae0-773a-8b0b-fc8a17b328c1" xlink:to="loc_us-gaap_VariableRateAxis_019e8fbd-2ae0-74a2-b2c7-ff6376b958b2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_019e8fbd-2ae0-74a2-b2c7-ff6376b958b2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_019e8fbd-2ae0-74a2-b2c7-ff6376b958b2" xlink:to="loc_us-gaap_VariableRateDomain_019e8fbd-2ae0-74a2-b2c7-ff6376b958b2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_019e8fbd-2ae0-7878-a365-b560c554bb94" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_019e8fbd-2ae0-74a2-b2c7-ff6376b958b2" xlink:to="loc_us-gaap_VariableRateDomain_019e8fbd-2ae0-7878-a365-b560c554bb94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_019e8fbd-2ae0-7f34-ae32-15e059f5be19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_019e8fbd-2ae0-7878-a365-b560c554bb94" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_019e8fbd-2ae0-7f34-ae32-15e059f5be19" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_AdjustedSecuredOvernightFinancingRateSOFRMember_019e8fbd-2ae0-798b-a192-8c86bc91d2b5" xlink:href="ttd-20260630.xsd#ttd_AdjustedSecuredOvernightFinancingRateSOFRMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_019e8fbd-2ae0-7878-a365-b560c554bb94" xlink:to="loc_ttd_AdjustedSecuredOvernightFinancingRateSOFRMember_019e8fbd-2ae0-798b-a192-8c86bc91d2b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_019e8fbd-2ae0-742b-bb88-b12ee9c0c9bb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_019e8fbd-2ae0-7878-a365-b560c554bb94" xlink:to="loc_us-gaap_BaseRateMember_019e8fbd-2ae0-742b-bb88-b12ee9c0c9bb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalFundsEffectiveSwapRateMember_019e8fbd-2ae0-7bb5-a55b-26d85ef5859e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalFundsEffectiveSwapRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_019e8fbd-2ae0-7878-a365-b560c554bb94" xlink:to="loc_us-gaap_FederalFundsEffectiveSwapRateMember_019e8fbd-2ae0-7bb5-a55b-26d85ef5859e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019e8fbd-2ae0-7aa0-91fb-2c9dc229e03f" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e8fbd-2ae0-773a-8b0b-fc8a17b328c1" xlink:to="loc_srt_RangeAxis_019e8fbd-2ae0-7aa0-91fb-2c9dc229e03f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e8fbd-2ae0-7aa0-91fb-2c9dc229e03f_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019e8fbd-2ae0-7aa0-91fb-2c9dc229e03f" xlink:to="loc_srt_RangeMember_019e8fbd-2ae0-7aa0-91fb-2c9dc229e03f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e8fbd-2ae0-7d98-8c28-8c26eb31ae82" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019e8fbd-2ae0-7aa0-91fb-2c9dc229e03f" xlink:to="loc_srt_RangeMember_019e8fbd-2ae0-7d98-8c28-8c26eb31ae82" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019e8fbd-2ae0-7b28-9e24-ebb32db41667" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e8fbd-2ae0-7d98-8c28-8c26eb31ae82" xlink:to="loc_srt_MinimumMember_019e8fbd-2ae0-7b28-9e24-ebb32db41667" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019e8fbd-2ae0-7007-9d2c-3a5e9912f4f3" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e8fbd-2ae0-7d98-8c28-8c26eb31ae82" xlink:to="loc_srt_MaximumMember_019e8fbd-2ae0-7007-9d2c-3a5e9912f4f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e8fbd-2ae0-7852-8241-81c8a7b750e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e8fbd-2ae0-773a-8b0b-fc8a17b328c1" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e8fbd-2ae0-7852-8241-81c8a7b750e0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e8fbd-2ae0-7852-8241-81c8a7b750e0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e8fbd-2ae0-7852-8241-81c8a7b750e0" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e8fbd-2ae0-7852-8241-81c8a7b750e0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e8fbd-2ae0-76f5-80a6-b29bf4b8b5f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e8fbd-2ae0-7852-8241-81c8a7b750e0" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e8fbd-2ae0-76f5-80a6-b29bf4b8b5f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_019e8fbd-2ae0-7232-b51a-96486124ea48" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e8fbd-2ae0-76f5-80a6-b29bf4b8b5f9" xlink:to="loc_us-gaap_LineOfCreditMember_019e8fbd-2ae0-7232-b51a-96486124ea48" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019e8fbd-2ae0-7c3e-9542-33f8a5464bcd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e8fbd-2ae0-773a-8b0b-fc8a17b328c1" xlink:to="loc_us-gaap_DebtInstrumentAxis_019e8fbd-2ae0-7c3e-9542-33f8a5464bcd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7c3e-9542-33f8a5464bcd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e8fbd-2ae0-7c3e-9542-33f8a5464bcd" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7c3e-9542-33f8a5464bcd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7ce5-956b-1949bf1ff91a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e8fbd-2ae0-7c3e-9542-33f8a5464bcd" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7ce5-956b-1949bf1ff91a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_LoanAndSecurityAgreementRevolvingLoanFacilityMember_019e8fbd-2ae0-7a67-add8-9beffc82d2af" xlink:href="ttd-20260630.xsd#ttd_LoanAndSecurityAgreementRevolvingLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7ce5-956b-1949bf1ff91a" xlink:to="loc_ttd_LoanAndSecurityAgreementRevolvingLoanFacilityMember_019e8fbd-2ae0-7a67-add8-9beffc82d2af" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_LoanAndSecurityAgreementRevolvingLoanFacilitySwinglineBorrowingsMember_019e8fbd-2ae0-7374-8415-07a1d681ab33" xlink:href="ttd-20260630.xsd#ttd_LoanAndSecurityAgreementRevolvingLoanFacilitySwinglineBorrowingsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7ce5-956b-1949bf1ff91a" xlink:to="loc_ttd_LoanAndSecurityAgreementRevolvingLoanFacilitySwinglineBorrowingsMember_019e8fbd-2ae0-7374-8415-07a1d681ab33" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_LoanAndSecurityAgreementRevolvingLoanFacilityLettersOfCreditMember_019e8fbd-2ae0-7f93-93cd-30152d63b090" xlink:href="ttd-20260630.xsd#ttd_LoanAndSecurityAgreementRevolvingLoanFacilityLettersOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7ce5-956b-1949bf1ff91a" xlink:to="loc_ttd_LoanAndSecurityAgreementRevolvingLoanFacilityLettersOfCreditMember_019e8fbd-2ae0-7f93-93cd-30152d63b090" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_LoanAndSecurityAgreementMember_019e8fbd-2ae0-78f8-95ef-9d93e51d7a56" xlink:href="ttd-20260630.xsd#ttd_LoanAndSecurityAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7ce5-956b-1949bf1ff91a" xlink:to="loc_ttd_LoanAndSecurityAgreementMember_019e8fbd-2ae0-78f8-95ef-9d93e51d7a56" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_AmendedCreditFacilityMember_019e8fbd-2ae0-7256-aec6-5a0f18697d1b" xlink:href="ttd-20260630.xsd#ttd_AmendedCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7ce5-956b-1949bf1ff91a" xlink:to="loc_ttd_AmendedCreditFacilityMember_019e8fbd-2ae0-7256-aec6-5a0f18697d1b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_RevolvingFacilityMember_019e8fbd-2ae0-7f81-b584-7406fff103b0" xlink:href="ttd-20260630.xsd#ttd_RevolvingFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7ce5-956b-1949bf1ff91a" xlink:to="loc_ttd_RevolvingFacilityMember_019e8fbd-2ae0-7f81-b584-7406fff103b0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_RevolvingFacilityLettersOfCreditMember_019e8fbd-2ae0-7a0f-af5d-9c5228a8d327" xlink:href="ttd-20260630.xsd#ttd_RevolvingFacilityLettersOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7ce5-956b-1949bf1ff91a" xlink:to="loc_ttd_RevolvingFacilityLettersOfCreditMember_019e8fbd-2ae0-7a0f-af5d-9c5228a8d327" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_RevolvingFacilitySwinglineBorrowingsMember_019e8fbd-2ae0-7f5e-afda-bfd9bd302c6b" xlink:href="ttd-20260630.xsd#ttd_RevolvingFacilitySwinglineBorrowingsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e8fbd-2ae0-7ce5-956b-1949bf1ff91a" xlink:to="loc_ttd_RevolvingFacilitySwinglineBorrowingsMember_019e8fbd-2ae0-7f5e-afda-bfd9bd302c6b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e8fbd-2ae0-71f3-9015-703842358673" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e8fbd-2ae0-71f3-9015-703842358673" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_LineOfCreditMaximumAmountRightToIncrease_019e8fbd-2ae0-7a4f-806f-71d69b38258e" xlink:href="ttd-20260630.xsd#ttd_LineOfCreditMaximumAmountRightToIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_ttd_LineOfCreditMaximumAmountRightToIncrease_019e8fbd-2ae0-7a4f-806f-71d69b38258e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_019e8fbd-2ae0-7a4e-9b13-cbae6b93e692" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_019e8fbd-2ae0-7a4e-9b13-cbae6b93e692" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_DebtInstrumentVariableRateFloor_019e8fbd-2ae0-7bf8-95f1-e0e3e96673c4" xlink:href="ttd-20260630.xsd#ttd_DebtInstrumentVariableRateFloor"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_ttd_DebtInstrumentVariableRateFloor_019e8fbd-2ae0-7bf8-95f1-e0e3e96673c4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_019e8fbd-2ae0-799b-9835-8f49be4e15ba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_019e8fbd-2ae0-799b-9835-8f49be4e15ba" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityFairValueOfAmountOutstanding_019e8fbd-2ae0-7a28-9911-f42f45b53b28" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityFairValueOfAmountOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_us-gaap_LineOfCreditFacilityFairValueOfAmountOutstanding_019e8fbd-2ae0-7a28-9911-f42f45b53b28" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_019e8fbd-2ae0-7b3c-9e0a-54236d8f8059" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_019e8fbd-2ae0-7b3c-9e0a-54236d8f8059" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_019e8fbd-2ae0-7ee7-b22f-9177ea2af8c8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_019e8fbd-2ae0-7ee7-b22f-9177ea2af8c8" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_DebtInstrumentRestrictiveCovenantUnrestrictedCashAndCashEquivalentsThreshold_019e8fbd-2ae0-78b9-baff-7e6ac46204ea" xlink:href="ttd-20260630.xsd#ttd_DebtInstrumentRestrictiveCovenantUnrestrictedCashAndCashEquivalentsThreshold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_ttd_DebtInstrumentRestrictiveCovenantUnrestrictedCashAndCashEquivalentsThreshold_019e8fbd-2ae0-78b9-baff-7e6ac46204ea" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_DebtInstrumentRestrictiveDebtCovenantMaximumRatioOfNetConsolidatedDebtToConsolidatedEBITDA_019e8fbd-2ae0-7e61-962d-e732c8d63e7e" xlink:href="ttd-20260630.xsd#ttd_DebtInstrumentRestrictiveDebtCovenantMaximumRatioOfNetConsolidatedDebtToConsolidatedEBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e8fbd-2ae0-7f56-855f-918120326701" xlink:to="loc_ttd_DebtInstrumentRestrictiveDebtCovenantMaximumRatioOfNetConsolidatedDebtToConsolidatedEBITDA_019e8fbd-2ae0-7e61-962d-e732c8d63e7e" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/CapitalizationDetails" xlink:type="simple" xlink:href="ttd-20260630.xsd#CapitalizationDetails"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/CapitalizationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_019e8fbd-2ae0-79bb-bdac-4e4a81eaebc8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_019e8fbd-2ae0-7932-9366-ea68f224af96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_019e8fbd-2ae0-79bb-bdac-4e4a81eaebc8" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_019e8fbd-2ae0-7932-9366-ea68f224af96" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7af0-bc8c-83a288554cf1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_019e8fbd-2ae0-7932-9366-ea68f224af96" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7af0-bc8c-83a288554cf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7af0-bc8c-83a288554cf1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7af0-bc8c-83a288554cf1" xlink:to="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7af0-bc8c-83a288554cf1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7868-9799-d3f858d30c78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7af0-bc8c-83a288554cf1" xlink:to="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7868-9799-d3f858d30c78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_019e8fbd-2ae0-7fcf-a459-00b1b74fc545" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7868-9799-d3f858d30c78" xlink:to="loc_us-gaap_CommonClassBMember_019e8fbd-2ae0-7fcf-a459-00b1b74fc545" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_019e8fbd-2ae0-7883-8c64-38a626138c84" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7868-9799-d3f858d30c78" xlink:to="loc_us-gaap_CommonClassAMember_019e8fbd-2ae0-7883-8c64-38a626138c84" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramAxis_019e8fbd-2ae0-7ffa-9e2e-6f716980a679" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_019e8fbd-2ae0-7932-9366-ea68f224af96" xlink:to="loc_srt_ShareRepurchaseProgramAxis_019e8fbd-2ae0-7ffa-9e2e-6f716980a679" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_019e8fbd-2ae0-7ffa-9e2e-6f716980a679_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ShareRepurchaseProgramAxis_019e8fbd-2ae0-7ffa-9e2e-6f716980a679" xlink:to="loc_srt_ShareRepurchaseProgramDomain_019e8fbd-2ae0-7ffa-9e2e-6f716980a679_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ShareRepurchaseProgramDomain_019e8fbd-2ae0-7d1c-9b11-e089510bde9c" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ShareRepurchaseProgramAxis_019e8fbd-2ae0-7ffa-9e2e-6f716980a679" xlink:to="loc_srt_ShareRepurchaseProgramDomain_019e8fbd-2ae0-7d1c-9b11-e089510bde9c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_TwentyTwentyThreeStockRepurchaseProgramMember_019e8fbd-2ae0-7082-a859-ae36872fcce4" xlink:href="ttd-20260630.xsd#ttd_TwentyTwentyThreeStockRepurchaseProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ShareRepurchaseProgramDomain_019e8fbd-2ae0-7d1c-9b11-e089510bde9c" xlink:to="loc_ttd_TwentyTwentyThreeStockRepurchaseProgramMember_019e8fbd-2ae0-7082-a859-ae36872fcce4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_CommonStockNumberOfVotesPerShare_019e8fbd-2ae0-7cb1-a973-08b37f5100d7" xlink:href="ttd-20260630.xsd#ttd_CommonStockNumberOfVotesPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019e8fbd-2ae0-79bb-bdac-4e4a81eaebc8" xlink:to="loc_ttd_CommonStockNumberOfVotesPerShare_019e8fbd-2ae0-7cb1-a973-08b37f5100d7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_CommonStockConversionRatio_019e8fbd-2ae0-7ce4-b9a0-e06836d00030" xlink:href="ttd-20260630.xsd#ttd_CommonStockConversionRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019e8fbd-2ae0-79bb-bdac-4e4a81eaebc8" xlink:to="loc_ttd_CommonStockConversionRatio_019e8fbd-2ae0-7ce4-b9a0-e06836d00030" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_019e8fbd-2ae0-7579-8a93-9ab5918dd665" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019e8fbd-2ae0-79bb-bdac-4e4a81eaebc8" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_019e8fbd-2ae0-7579-8a93-9ab5918dd665" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_ShareRepurchaseProgramAdditionalAuthorizedRepurchaseAmount_019e8fbd-2ae0-7937-91a0-6458eb168420" xlink:href="ttd-20260630.xsd#ttd_ShareRepurchaseProgramAdditionalAuthorizedRepurchaseAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019e8fbd-2ae0-79bb-bdac-4e4a81eaebc8" xlink:to="loc_ttd_ShareRepurchaseProgramAdditionalAuthorizedRepurchaseAmount_019e8fbd-2ae0-7937-91a0-6458eb168420" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019e8fbd-2ae0-7c03-bf05-190c70d2a1f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019e8fbd-2ae0-79bb-bdac-4e4a81eaebc8" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019e8fbd-2ae0-7c03-bf05-190c70d2a1f9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_019e8fbd-2ae0-7b30-b284-a5cbc2d01853" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_019e8fbd-2ae0-79bb-bdac-4e4a81eaebc8" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_019e8fbd-2ae0-7b30-b284-a5cbc2d01853" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/StockBasedCompensationScheduleofStockBasedCompensationExpenseDetail" xlink:type="simple" xlink:href="ttd-20260630.xsd#StockBasedCompensationScheduleofStockBasedCompensationExpenseDetail"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/StockBasedCompensationScheduleofStockBasedCompensationExpenseDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019e8fbd-2ae0-7332-a6f7-070ad40b30d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019e8fbd-2ae0-7dab-a753-e5dc95f5983f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019e8fbd-2ae0-7332-a6f7-070ad40b30d2" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019e8fbd-2ae0-7dab-a753-e5dc95f5983f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfIncomeLocationBalanceAxis_019e8fbd-2ae0-7ace-a695-17ccbdf39b2d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementOfIncomeLocationBalanceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019e8fbd-2ae0-7dab-a753-e5dc95f5983f" xlink:to="loc_us-gaap_StatementOfIncomeLocationBalanceAxis_019e8fbd-2ae0-7ace-a695-17ccbdf39b2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e8fbd-2ae0-7b3e-bf0a-38caa1aa507a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019e8fbd-2ae0-7332-a6f7-070ad40b30d2" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e8fbd-2ae0-7b3e-bf0a-38caa1aa507a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/StockBasedCompensationScheduleofStockBasedCompensationExpenseDetail_1" xlink:type="simple" xlink:href="ttd-20260630.xsd#StockBasedCompensationScheduleofStockBasedCompensationExpenseDetail_1"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/StockBasedCompensationScheduleofStockBasedCompensationExpenseDetail_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019e8fbd-2ae0-7332-a6f7-070ad40b30d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019e8fbd-2ae0-7dab-a753-e5dc95f5983f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019e8fbd-2ae0-7332-a6f7-070ad40b30d2" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019e8fbd-2ae0-7dab-a753-e5dc95f5983f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e8fbd-2ae0-7b3e-bf0a-38caa1aa507a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019e8fbd-2ae0-7332-a6f7-070ad40b30d2" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e8fbd-2ae0-7b3e-bf0a-38caa1aa507a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/StockBasedCompensationScheduleofStockOptionActivityDetail" xlink:type="simple" xlink:href="ttd-20260630.xsd#StockBasedCompensationScheduleofStockOptionActivityDetail"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/StockBasedCompensationScheduleofStockOptionActivityDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7926-b20d-0b1b78ca25ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8fbd-2ae0-7fa1-902a-4baba491b854" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7926-b20d-0b1b78ca25ef" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8fbd-2ae0-7fa1-902a-4baba491b854" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019e8fbd-2ae0-7bad-b084-8d2b03ef3e73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8fbd-2ae0-7fa1-902a-4baba491b854" xlink:to="loc_us-gaap_AwardTypeAxis_019e8fbd-2ae0-7bad-b084-8d2b03ef3e73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-7bad-b084-8d2b03ef3e73_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019e8fbd-2ae0-7bad-b084-8d2b03ef3e73" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-7bad-b084-8d2b03ef3e73_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-73c0-b7be-364f63fde7a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019e8fbd-2ae0-7bad-b084-8d2b03ef3e73" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-73c0-b7be-364f63fde7a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_019e8fbd-2ae0-7561-aa64-0bfe9d34ab38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-73c0-b7be-364f63fde7a5" xlink:to="loc_us-gaap_EmployeeStockOptionMember_019e8fbd-2ae0-7561-aa64-0bfe9d34ab38" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e8fbd-2ae0-7bd8-a1ea-4cef5cd8eab4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7926-b20d-0b1b78ca25ef" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e8fbd-2ae0-7bd8-a1ea-4cef5cd8eab4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_019e8fbd-2ae0-798f-ba5c-bf5766f026db" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e8fbd-2ae0-7bd8-a1ea-4cef5cd8eab4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_019e8fbd-2ae0-798f-ba5c-bf5766f026db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_019e8fbd-2ae0-7564-b3b9-5180c5d0e4b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e8fbd-2ae0-7bd8-a1ea-4cef5cd8eab4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_019e8fbd-2ae0-7564-b3b9-5180c5d0e4b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019e8fbd-2ae0-7d2d-a6c2-a213c28ee61b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e8fbd-2ae0-7bd8-a1ea-4cef5cd8eab4" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019e8fbd-2ae0-7d2d-a6c2-a213c28ee61b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod_019e8fbd-2ae0-7585-a93a-e43686a6645a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e8fbd-2ae0-7bd8-a1ea-4cef5cd8eab4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod_019e8fbd-2ae0-7585-a93a-e43686a6645a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_019e8fbd-2ae0-7532-b1d8-dd511241c230" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_019e8fbd-2ae0-7376-9065-08fb351b410a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7926-b20d-0b1b78ca25ef" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_019e8fbd-2ae0-7376-9065-08fb351b410a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_019e8fbd-2ae0-734f-8c6f-f040fc48ca53" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7926-b20d-0b1b78ca25ef" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_019e8fbd-2ae0-734f-8c6f-f040fc48ca53" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_019e8fbd-2ae0-7333-a8ac-8d7cd157d97b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_019e8fbd-2ae0-734f-8c6f-f040fc48ca53" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_019e8fbd-2ae0-7333-a8ac-8d7cd157d97b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_019e8fbd-2ae0-77b4-8bbb-1c532592519e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_019e8fbd-2ae0-734f-8c6f-f040fc48ca53" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_019e8fbd-2ae0-77b4-8bbb-1c532592519e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_019e8fbd-2ae0-768c-b478-215bd475dedc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_019e8fbd-2ae0-734f-8c6f-f040fc48ca53" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_019e8fbd-2ae0-768c-b478-215bd475dedc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice_019e8fbd-2ae0-7cc5-9e39-368742cc7fc0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_019e8fbd-2ae0-734f-8c6f-f040fc48ca53" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice_019e8fbd-2ae0-7cc5-9e39-368742cc7fc0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_019e8fbd-2ae0-7e02-bbe4-e34f62982037" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_019e8fbd-2ae0-793f-96d4-7f878ace3079" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7926-b20d-0b1b78ca25ef" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_019e8fbd-2ae0-793f-96d4-7f878ace3079" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/StockBasedCompensationAdditionalInformationDetails" xlink:type="simple" xlink:href="ttd-20260630.xsd#StockBasedCompensationAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/StockBasedCompensationAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8fbd-2ae0-7e79-91d5-fe9c1e771e19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8fbd-2ae0-7e79-91d5-fe9c1e771e19" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019e8fbd-2ae0-7d7b-b2bc-d53050f69025" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8fbd-2ae0-7e79-91d5-fe9c1e771e19" xlink:to="loc_us-gaap_AwardTypeAxis_019e8fbd-2ae0-7d7b-b2bc-d53050f69025" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-7d7b-b2bc-d53050f69025_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019e8fbd-2ae0-7d7b-b2bc-d53050f69025" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-7d7b-b2bc-d53050f69025_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-74f7-9bb3-7ee8c026c663" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019e8fbd-2ae0-7d7b-b2bc-d53050f69025" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-74f7-9bb3-7ee8c026c663" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_019e8fbd-2ae0-7ed2-9747-7385f0722374" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-74f7-9bb3-7ee8c026c663" xlink:to="loc_us-gaap_EmployeeStockOptionMember_019e8fbd-2ae0-7ed2-9747-7385f0722374" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_CEOPerformanceOptionMember_019e8fbd-2ae0-7032-8166-3289ed1c8097" xlink:href="ttd-20260630.xsd#ttd_CEOPerformanceOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-74f7-9bb3-7ee8c026c663" xlink:to="loc_ttd_CEOPerformanceOptionMember_019e8fbd-2ae0-7032-8166-3289ed1c8097" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_019e8fbd-2ae0-74c7-aa33-139f0d025e54" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-74f7-9bb3-7ee8c026c663" xlink:to="loc_us-gaap_RestrictedStockMember_019e8fbd-2ae0-74c7-aa33-139f0d025e54" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_019e8fbd-2ae0-7c4d-95a8-7fbbab6427f5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e8fbd-2ae0-74f7-9bb3-7ee8c026c663" xlink:to="loc_us-gaap_EmployeeStockMember_019e8fbd-2ae0-7c4d-95a8-7fbbab6427f5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualAxis_019e8fbd-2ae0-7132-beae-401d8f569bae" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_TitleOfIndividualAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8fbd-2ae0-7e79-91d5-fe9c1e771e19" xlink:to="loc_srt_TitleOfIndividualAxis_019e8fbd-2ae0-7132-beae-401d8f569bae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_019e8fbd-2ae0-7132-beae-401d8f569bae_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_TitleOfIndividualAxis_019e8fbd-2ae0-7132-beae-401d8f569bae" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_019e8fbd-2ae0-7132-beae-401d8f569bae_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_019e8fbd-2ae0-7cda-aa63-35f71769697e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_TitleOfIndividualAxis_019e8fbd-2ae0-7132-beae-401d8f569bae" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_019e8fbd-2ae0-7cda-aa63-35f71769697e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ChiefExecutiveOfficerMember_019e8fbd-2ae0-79c4-aa33-447502806754" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ChiefExecutiveOfficerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_019e8fbd-2ae0-7cda-aa63-35f71769697e" xlink:to="loc_srt_ChiefExecutiveOfficerMember_019e8fbd-2ae0-79c4-aa33-447502806754" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_019e8fbd-2ae0-7d69-b427-e9c686d58755" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8fbd-2ae0-7e79-91d5-fe9c1e771e19" xlink:to="loc_us-gaap_PlanNameAxis_019e8fbd-2ae0-7d69-b427-e9c686d58755" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019e8fbd-2ae0-7d69-b427-e9c686d58755_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_019e8fbd-2ae0-7d69-b427-e9c686d58755" xlink:to="loc_us-gaap_PlanNameDomain_019e8fbd-2ae0-7d69-b427-e9c686d58755_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019e8fbd-2ae0-7c27-a2b4-efe05332707f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_019e8fbd-2ae0-7d69-b427-e9c686d58755" xlink:to="loc_us-gaap_PlanNameDomain_019e8fbd-2ae0-7c27-a2b4-efe05332707f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_TwoThousandAndSixteenIncentiveAwardPlanMember_019e8fbd-2ae0-741d-9366-ba9badd94daf" xlink:href="ttd-20260630.xsd#ttd_TwoThousandAndSixteenIncentiveAwardPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019e8fbd-2ae0-7c27-a2b4-efe05332707f" xlink:to="loc_ttd_TwoThousandAndSixteenIncentiveAwardPlanMember_019e8fbd-2ae0-741d-9366-ba9badd94daf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7df3-97b4-c7073b04f8e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e8fbd-2ae0-7e79-91d5-fe9c1e771e19" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7df3-97b4-c7073b04f8e0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7df3-97b4-c7073b04f8e0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7df3-97b4-c7073b04f8e0" xlink:to="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7df3-97b4-c7073b04f8e0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7400-93ca-383d93b1773c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e8fbd-2ae0-7df3-97b4-c7073b04f8e0" xlink:to="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7400-93ca-383d93b1773c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_019e8fbd-2ae0-7ef3-b43f-051d11938211" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e8fbd-2ae0-7400-93ca-383d93b1773c" xlink:to="loc_us-gaap_CommonClassAMember_019e8fbd-2ae0-7ef3-b43f-051d11938211" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e8fbd-2ae0-7228-9b76-8ee1eab76b02" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e8fbd-2ae0-7228-9b76-8ee1eab76b02" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_019e8fbd-2ae0-794d-9fef-74aa2629bd15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_019e8fbd-2ae0-794d-9fef-74aa2629bd15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_019e8fbd-2ae0-748a-afe6-b5748ff3523d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_019e8fbd-2ae0-748a-afe6-b5748ff3523d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_019e8fbd-2ae0-7095-b5ff-96ec8ff49f32" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_019e8fbd-2ae0-7095-b5ff-96ec8ff49f32" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_019e8fbd-2ae0-712c-a14f-2a2775f4416a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_019e8fbd-2ae0-712c-a14f-2a2775f4416a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019e8fbd-2ae0-7f5c-a078-2594e654b422" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019e8fbd-2ae0-7f5c-a078-2594e654b422" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod_019e8fbd-2ae0-7121-b0af-1ec8423f3924" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod_019e8fbd-2ae0-7121-b0af-1ec8423f3924" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_019e8fbd-2ae0-728f-a852-d6edd493eab7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_019e8fbd-2ae0-728f-a852-d6edd493eab7" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_019e8fbd-2ae0-7905-b2b7-f4d4d9f03137" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_019e8fbd-2ae0-7905-b2b7-f4d4d9f03137" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_019e8fbd-2ae0-7fde-b0b7-c800d1afad19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e8fbd-2ae0-7fd5-b569-b40cf138497e" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_019e8fbd-2ae0-7fde-b0b7-c800d1afad19" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/SegmentandGeographicalInformationScheduleofGrossBillingsBasedonBillingAddressofClientsorClientAffiliatesDetail" xlink:type="simple" xlink:href="ttd-20260630.xsd#SegmentandGeographicalInformationScheduleofGrossBillingsBasedonBillingAddressofClientsorClientAffiliatesDetail"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/SegmentandGeographicalInformationScheduleofGrossBillingsBasedonBillingAddressofClientsorClientAffiliatesDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019e8fbd-2ae0-7977-8a37-60a88c8f69a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019e8fbd-2ae0-78f2-ba3e-d36b1088f936" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019e8fbd-2ae0-7977-8a37-60a88c8f69a5" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019e8fbd-2ae0-78f2-ba3e-d36b1088f936" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019e8fbd-2ae0-7d87-918d-49a2798fc801" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019e8fbd-2ae0-78f2-ba3e-d36b1088f936" xlink:to="loc_srt_StatementGeographicalAxis_019e8fbd-2ae0-7d87-918d-49a2798fc801" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e8fbd-2ae0-7d87-918d-49a2798fc801_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019e8fbd-2ae0-7d87-918d-49a2798fc801" xlink:to="loc_srt_SegmentGeographicalDomain_019e8fbd-2ae0-7d87-918d-49a2798fc801_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e8fbd-2ae0-716f-a4d1-9f057301e3c3" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019e8fbd-2ae0-7d87-918d-49a2798fc801" xlink:to="loc_srt_SegmentGeographicalDomain_019e8fbd-2ae0-716f-a4d1-9f057301e3c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_019e8fbd-2ae0-76dd-b1e7-157847796f52" xlink:href="https://xbrl.sec.gov/country/2026/country-2026.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8fbd-2ae0-716f-a4d1-9f057301e3c3" xlink:to="loc_country_US_019e8fbd-2ae0-76dd-b1e7-157847796f52" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_019e8fbd-2ae0-7485-af78-9acfe3e0cd90" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e8fbd-2ae0-716f-a4d1-9f057301e3c3" xlink:to="loc_us-gaap_NonUsMember_019e8fbd-2ae0-7485-af78-9acfe3e0cd90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_RevenueFromContractWithCustomerExcludingAssessedTaxPercentOfRevenueToTotalRevenue_019e8fbd-2ae0-7ef1-bcaf-eabcccd94ba1" xlink:href="ttd-20260630.xsd#ttd_RevenueFromContractWithCustomerExcludingAssessedTaxPercentOfRevenueToTotalRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019e8fbd-2ae0-7977-8a37-60a88c8f69a5" xlink:to="loc_ttd_RevenueFromContractWithCustomerExcludingAssessedTaxPercentOfRevenueToTotalRevenue_019e8fbd-2ae0-7ef1-bcaf-eabcccd94ba1" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/CommitmentsandContingenciesDetails" xlink:type="simple" xlink:href="ttd-20260630.xsd#CommitmentsandContingenciesDetails"/>
  <link:definitionLink xlink:role="http://thetradedesk.com/role/CommitmentsandContingenciesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_019e8fbd-2ae0-7aa5-8e7f-c15c6bb06b1a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_019e8fbd-2ae0-7242-bd7b-942dbdc3df97" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_019e8fbd-2ae0-7aa5-8e7f-c15c6bb06b1a" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_019e8fbd-2ae0-7242-bd7b-942dbdc3df97" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_019e8fbd-2ae0-7478-b685-c9db26e5dfc9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_019e8fbd-2ae0-7242-bd7b-942dbdc3df97" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_019e8fbd-2ae0-7478-b685-c9db26e5dfc9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_019e8fbd-2ae0-7478-b685-c9db26e5dfc9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_019e8fbd-2ae0-7478-b685-c9db26e5dfc9" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_019e8fbd-2ae0-7478-b685-c9db26e5dfc9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_019e8fbd-2ae0-727f-876a-4988eadd6548" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_019e8fbd-2ae0-7478-b685-c9db26e5dfc9" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_019e8fbd-2ae0-727f-876a-4988eadd6548" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndemnificationGuaranteeMember_019e8fbd-2ae0-7ffc-bb63-76feb051386e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IndemnificationGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_019e8fbd-2ae0-727f-876a-4988eadd6548" xlink:to="loc_us-gaap_IndemnificationGuaranteeMember_019e8fbd-2ae0-7ffc-bb63-76feb051386e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseAxis_019e8fbd-2ae0-7eef-a661-091e006e2138" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_LitigationCaseAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_019e8fbd-2ae0-7242-bd7b-942dbdc3df97" xlink:to="loc_srt_LitigationCaseAxis_019e8fbd-2ae0-7eef-a661-091e006e2138" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_019e8fbd-2ae0-7eef-a661-091e006e2138_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_LitigationCaseAxis_019e8fbd-2ae0-7eef-a661-091e006e2138" xlink:to="loc_srt_LitigationCaseTypeDomain_019e8fbd-2ae0-7eef-a661-091e006e2138_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_019e8fbd-2ae0-7b29-a92f-0cbba1fa1fef" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_LitigationCaseAxis_019e8fbd-2ae0-7eef-a661-091e006e2138" xlink:to="loc_srt_LitigationCaseTypeDomain_019e8fbd-2ae0-7b29-a92f-0cbba1fa1fef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_SecuritiesClassActionMember_019e8fbd-2ae0-7420-8072-6d8e16447170" xlink:href="ttd-20260630.xsd#ttd_SecuritiesClassActionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_019e8fbd-2ae0-7b29-a92f-0cbba1fa1fef" xlink:to="loc_ttd_SecuritiesClassActionMember_019e8fbd-2ae0-7420-8072-6d8e16447170" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_PlatformAndRelatedOfferingsLitigationMember_019e8fbd-2ae0-7aba-a600-ff4cffd30764" xlink:href="ttd-20260630.xsd#ttd_PlatformAndRelatedOfferingsLitigationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_019e8fbd-2ae0-7b29-a92f-0cbba1fa1fef" xlink:to="loc_ttd_PlatformAndRelatedOfferingsLitigationMember_019e8fbd-2ae0-7aba-a600-ff4cffd30764" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsCurrentCarryingValue_019e8fbd-2ae0-7215-ba93-51dfcaf442d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GuaranteeObligationsCurrentCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_019e8fbd-2ae0-7aa5-8e7f-c15c6bb06b1a" xlink:to="loc_us-gaap_GuaranteeObligationsCurrentCarryingValue_019e8fbd-2ae0-7215-ba93-51dfcaf442d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNewClaimsFiledNumber_019e8fbd-2ae0-7cfa-bd3e-613bfae3a944" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LossContingencyNewClaimsFiledNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_019e8fbd-2ae0-7aa5-8e7f-c15c6bb06b1a" xlink:to="loc_us-gaap_LossContingencyNewClaimsFiledNumber_019e8fbd-2ae0-7cfa-bd3e-613bfae3a944" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_NumberOfActionsConsolidated_019fa9f3-ca91-70ca-9f24-58316273fc37" xlink:href="ttd-20260630.xsd#ttd_NumberOfActionsConsolidated"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_019e8fbd-2ae0-7aa5-8e7f-c15c6bb06b1a" xlink:to="loc_ttd_NumberOfActionsConsolidated_019fa9f3-ca91-70ca-9f24-58316273fc37" xlink:type="arc" order="2"/>
  </link:definitionLink>
</link:linkbase>
