Create and manage an audience segment in The Trade Desk via the Data Integration API

domain: partner.thetradedesk.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate to The Trade Desk Platform API at api.thetradedesk.com/v3 by exchanging partner credentials for a bearer token via the authentication endpoint
  2. POST to the /data/segment endpoint to create a new first-party data segment, specifying the partner ID, segment name, description, TTL (time-to-live in days), and optional CPM data rate
  3. Receive the segment ID from the response and use it to construct the pixel-based or server-to-server (S2S) URL that fires when a user qualifies for the segment
  4. For server-to-server population, batch-upload user identifiers (UID2 tokens, hashed emails, or TDID cookies) to the bulk upload endpoint using the segment ID, encoding the payload per the TTD data format specification
  5. Verify segment population by querying the /data/segment/{segmentId} endpoint and checking the estimated user count after a 24-hour propagation window
  6. Target the segment in a campaign by referencing the segment ID in the FirstPartyData targeting block of an AdGroup via the /adgroup endpoint

Known gotchas

Related routes

Create an advertiser, campaign, ad group, and ad via The Trade Desk Platform API
advertising · 6 steps · unrated
Build and manage a Custom Audience via the X Ads API v4 Audience API
docs.x.com · 5 steps · unrated
Build a first-party audience segment in DV360 using the Audience API
developers.google.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans