Design note — Pinterest Ads connector (pinterest_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 Pinterest API (v5) uses OAuth 2.0 access tokens issued to an app; apps begin in a trial access level and need Pinterest's standard access approval before serving accounts beyond the developer's own. The C7 field set is the typed shape: the customer supplies an access token obtained through their own app (bring-your-own) or, once an owner-ruled platform app holds standard access, through a platform door that writes the token to the vault. Token and refresh lifetimes are confirmed at build time (CDoD point 1): the vendor pages 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 Access token yes yes — Issued when the ad account owner authorizes the app with the read-only ads scope. Never echoed; masked hint only.
ad_account_id Ad account ID no yes ^\d+$ The numeric ad account id in Pinterest Ads Manager (account switcher / Billing). Digits only.

Scopes

ads:read only. Never ads:write, never audience, conversion or catalog write scopes. Test connection reads the token's scopes where the API exposes them and refuses a token carrying write scopes with scope_too_wide.

Data topics

Ad account analytics: spend, impressions, clicks, saves, checkout conversions by campaign × ad group × day; campaign structure. Aggregates. Audiences, the Conversions API and catalogs are out of scope.

Aggregates only; posture test pins that no mapper output field is person-level.

Mapper target

Paid-media pull adapter → MAPPERS["pinterest_ads"] → ingest_gate → mizoki_unified_data. No new store; no writeback.

Failure modes → test-connection verdicts

Failure Verdict / fix
ad_account_id not digits 422 invalid_field_format.
401 — token expired or revoked token_invalid → re-authorize; a typed token has no refresh path until the door ships (named gap on the card).
Ad account not visible to the token permission_denied.
Token carries write scopes scope_too_wide → re-authorize with ads:read only.
App still in trial access and the account is not the app owner's app_tier_insufficient — app-side item.
Vault read error 503 fail-closed.

Flag

PINTEREST_ADS_SYNC default OFF; available: false until CDoD point 14.

Owner / operator gates

Vendor references

← All docsView source on GitHub →