Design note — The Trade Desk connector (the_trade_desk)
Target registry item: C6 (wave 3 — vendor partner/API access programs). Status: design note only — NOT built. The catalog row the_trade_desk exists with available: false, wave 3 and zero fields (services/service-marketing-connectors/connector_credentials.py, measured 2026-10-12); posting any payload is refused 409 provider_not_available. CDoD points 1–14 tracked in docs/reports/ONBOARDING_CONNECTORS_STATE.md.
Auth
Read-only, merchant-owned (D2/D11). The Trade Desk API is a partner API: access is granted by The Trade Desk to a partner seat, and most advertisers reach the platform through an agency or a managed-service seat rather than their own. The admissible shape is therefore:
- Tenant-owned API token. A user on the customer's seat (or their agency's seat, with the customer's written authority) generates a long-lived API token for a user whose role is reporting/read-only, and supplies it on the card. The token inherits that user's permissions, so the read-only property is a property of the user role, and the adapter additionally never calls write endpoints (test-pinned).
- Platform partner seat — only if the owner rules that MIZ OKI applies for its own partner API access. Not assumed.
Never collect a username/password: the API's credential-login endpoint is not an admissible intake path (law 2). Vault-only per (tenant, provider); no environment fallback; vault error 503; absence merchant_credentials_not_configured.
Fields (catalog row, when built)
| key | label | secret | required | pattern | help |
|---|---|---|---|---|---|
api_token |
API token | yes | yes | — | A long-lived API token generated for a read-only user on your Trade Desk seat (user settings → API tokens; the exact label follows The Trade Desk's current UI). Never echoed. |
advertiser_id |
Advertiser ID | no | yes | ^[A-Za-z0-9]+$ |
The advertiser's id as shown in the platform's advertiser settings / the URL when the advertiser is selected. |
partner_id |
Partner ID | no | no | ^[A-Za-z0-9]+$ |
Only if you hold a direct partner seat; agencies supply the seat's partner id. |
Scopes
The API has no granular OAuth scopes; the token carries its user's permissions. Design rule: the token's user is a reporting-only role, Test connection verifies that a write probe is refused (it never performs one — it reads the user's permission set where the API exposes it; otherwise this is recorded as a CDoD-point-1 gap), and the adapter is write-free by construction.
Data topics
Reports (schedule → poll → download): spend, impressions, clicks, conversions by campaign × ad group × day; campaign and ad-group structure. Aggregates. Data groups, first-party audience uploads and conversion pixels are out of scope.
Consent posture
Aggregates only; posture test pins that no mapper output field is person-level. Audience and data-group products stay out until a note with a consent-registry grant per topic.
Mapper target
Paid-media pull adapter → MAPPERS["the_trade_desk"] → ingest_gate → mizoki_unified_data. No new store; no writeback.
Failure modes → test-connection verdicts
| Failure | Verdict / fix |
|---|---|
| 401 on any call | token_invalid → regenerate the token for the read-only user. |
| 403 on the advertiser | permission_denied → "The token's user has no access to advertiser <id>; ask your seat admin." |
| Sandbox host vs production host | wrong_environment. |
| Report never leaves pending within the sync deadline | sync-time report_timeout (not a test-connection verdict). |
| Vault read error | 503 fail-closed. |
Flag
TRADE_DESK_SYNC default OFF; available: false until CDoD point 14 (live verification against a customer-owned advertiser, recorded with date and revision).
Owner / operator gates
- Owner: whether MIZ OKI applies for its own partner API access (the partner-program gate) or reads only through tenant-owned seats; whether agency-held seats are admissible for a tenant (law 3 — ownership transfer or a written grant from the agency comes first).
- Operator: none until the owner rules; then the partner application is Track O.
Vendor references
- The Trade Desk Partner Portal — API overview (partner.thetradedesk.com/v3/portal/api/doc/ApiOverview): fetched 2026-10-12, but the page rendered only its title ("Partner Portal"); content NOT verified from this sandbox.
- The Trade Desk Partner Portal — Getting started (partner.thetradedesk.com/v3/portal/api/doc/GettingStarted): same — fetched 2026-10-12, title only; not verified.