Design note — Amazon Ads connector (amazon_ads)

Target registry item: C6 (wave 3 — vendor partner/API access programs). Status: design note only — NOT built. The catalog row amazon_ads 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. Distinct from amazon_sp (Selling Partner API, AVAILABLE) — different API, different approval, different vault entry. CDoD points 1–14 tracked in docs/reports/ONBOARDING_CONNECTORS_STATE.md.

Auth

Read-only, merchant-owned (D2/D11). The Amazon Ads API authenticates with Login with Amazon (LWA): a security profile (client id + secret) that Amazon must first approve for Ads API access, then a per-advertiser refresh token obtained when the advertiser authorizes that profile. Two admissible paths:

  1. Platform LWA security profile (preferred). The platform's profile is a Track O operator value, approved by Amazon once; each customer authorizes it (an OAuth door) and the vault keeps their refresh token per (tenant, provider).
  2. Bring-your-own profile (fallback). A customer whose own security profile is already approved supplies lwa_client_id, lwa_client_secret, lwa_refresh_token — the exact shape amazon_sp already collects.

Vault-only per (tenant, provider); no environment fallback for a tenant credential (the tenant-scoped LwaCredentials.for_tenant degradation that amazon_sp allows is NOT reused here — D11 governs new adapters); vault error 503; absence merchant_credentials_not_configured.

Fields (catalog row, when built)

key label secret required pattern help
profile_id Advertising profile ID no yes ^\d+$ The numeric profile id of the advertiser account in the marketplace you want read. Test connection lists the profiles your authorization can see with their marketplace and entity name; pick the one that matches your Amazon Ads console account.
region API region no no ^(na\|eu\|fe)$ na (Americas), eu (Europe), fe (Far East) — where the advertiser account is homed. Default na.
lwa_client_id LWA client ID (own profile) no no — Login with Amazon console → your security profile → Web Settings. Only on the bring-your-own path.
lwa_client_secret LWA client secret (own profile) yes no — Same place. Only on the bring-your-own path.
lwa_refresh_token LWA refresh token yes yes — Issued by the door after you authorize; typed only on the bring-your-own path. Never echoed.

Scopes

The Ads API exposes one LWA scope for campaign access (its name is confirmed at build time, CDoD point 1 — the vendor page did not render from this sandbox). Because that scope is not read-only by construction, read-only is enforced by the adapter: it calls report and list endpoints only, and a test fails the build if any write endpoint path appears in the adapter.

Data topics

Sponsored Products / Sponsored Brands / Sponsored Display reports (impressions, clicks, spend, attributed sales and orders) by campaign × ad group × day; campaign structure. Aggregates. Amazon Marketing Cloud, audiences and DSP are out of scope for this note.

Aggregates only; no person-level field exists in the report outputs the adapter requests. Posture test in the TestD3ProcessingPosture style pins the mapper output.

Mapper target

Paid-media pull adapter → MAPPERS["amazon_ads"] → ingest_gate → mizoki_unified_data. Cell 37 keeps amazon_sp sales-rank sync; this connector feeds the paid-media table only. No new store. No writeback.

Failure modes → test-connection verdicts

Failure Verdict / fix
LWA token exchange refused (invalid_grant / invalid_client) token_invalid → re-authorize from the card, or re-check client id/secret on the own-profile path.
Security profile not approved for the Ads API app_not_approved — operator item on the platform path; customer item on the own-profile path.
profile_id not among the profiles the token can see permission_denied naming the visible profiles' marketplaces (never their names in logs).
Region mismatch (profile homed elsewhere) wrong_region → set region.
Vault read error 503 fail-closed.

Flag

AMAZON_ADS_SYNC default OFF; available: false until CDoD point 14 (live verification against a customer-owned profile, recorded with date and revision).

Owner / operator gates

Vendor references

← All docsView source on GitHub →