Design note — TikTok Ads connector (tiktok_ads)
Target registry item: C7 (catalog row only — available: false, wave 4, demand-driven). Status: design note only — NOT built. The catalog row enumerates the two fields below so the surface can say "not yet available"; posting any payload is refused 409 provider_not_available. Built only when a tenant declares demand (docs/OPEN_ITEMS.md row). CDoD points 1–14 tracked in docs/reports/ONBOARDING_CONNECTORS_STATE.md.
Auth
Read-only, merchant-owned (D2/D11). The TikTok Marketing API is reached through an app on the TikTok for Business developer portal that TikTok must approve with a declared permission set; an advertiser then authorizes the app from an authorization link and the app exchanges the auth code for a long-term access token bound to the advertiser accounts that user chose. The C7 field set is the typed shape: the customer supplies a long-term access token obtained through their own approved app (bring-your-own) — or, once an owner-ruled platform app exists on Track O, through the platform's authorization link (a door that writes the token to the vault). Token lifetime and revocation semantics are confirmed at build time (CDoD point 1): the vendor page did not render from this sandbox.
Vault-only per (tenant, provider); no environment fallback; vault error 503; absence merchant_credentials_not_configured.
Fields (catalog row)
| key | label | secret | required | pattern | help |
|---|---|---|---|---|---|
access_token |
Long-term access token | yes | yes | — | Issued when an advertiser admin authorizes the app (TikTok for Business → the app's authorization link). Never echoed; masked hint only. |
advertiser_id |
Advertiser ID | no | yes | ^\d+$ |
The numeric advertiser account id shown in TikTok Ads Manager (account switcher / Account info). Digits only. |
Scopes
The app's approved permission set must include reporting (read) only; ads management permissions are never requested for this connector. Read-only is additionally enforced by the adapter (report and list endpoints only; build-time test).
Data topics
Reporting API integrated reports: spend, impressions, clicks, conversions, video views by campaign × ad group × ad × day; advertiser info. Aggregates. Custom audiences, the Events API and lead forms are out of scope.
Consent posture
Aggregates only; posture test pins that no mapper output field is person-level.
Mapper target
Paid-media pull adapter → MAPPERS["tiktok_ads"] → ingest_gate → mizoki_unified_data. No new store; no writeback.
Failure modes → test-connection verdicts
| Failure | Verdict / fix |
|---|---|
advertiser_id not digits |
422 invalid_field_format. |
| API reports the access token invalid or expired | token_invalid → re-authorize the app. |
| Advertiser not among the accounts the token was authorized for | permission_denied → re-authorize and include advertiser <id>. |
| App lacks the reporting permission | scope_missing — app-side item (customer's app, or operator on the platform app). |
| Vault read error | 503 fail-closed. |
Flag
TIKTOK_ADS_SYNC default OFF; available: false until CDoD point 14.
Owner / operator gates
- Owner: whether a platform TikTok app is applied for (the Marketing API app-approval gate) so small businesses are not required to own an app.
- Operator (Track O, only if ruled in): app creation, permission application, approval, redirect registration.
Vendor references
- TikTok Marketing API — Authorization (business-api.tiktok.com/portal/docs?id=1738373141733378): fetched 2026-10-12, but the page rendered only its title ("TikTok API for Business"); content NOT verified from this sandbox.
- TikTok Marketing API — Authentication (business-api.tiktok.com/portal/docs?id=1738855099573250): same — fetched 2026-10-12, title only; not verified.