Account Admin

作者 spotify532b47af3d2e無授權條款收錄於 2026年10月8日更新於 2026年10月8日

Administer Spotify Ads API businesses and ad accounts: discover businesses and accounts, inspect or update supported profile and billing fields, create businesses or ad accounts, list members and roles, invite users, assign ad-account access, update roles, cancel invitations, and remove access. Use when a user asks to find an ad account by ID, audit access, onboard an agency or teammate, manage business/ad-account membership, or update supported account identity details.

僅含說明Business & Finance
AI 產生的概覽

管理 Spotify Ads API 的商家與廣告帳戶,包括成員、角色、邀請和存取權限。

功能
此技能引導代理管理 Spotify Ads API 的商家和廣告帳戶。涵蓋探索商家與帳戶、檢視或更新支援的個人資料與帳務欄位、建立商家或廣告帳戶、列出成員與角色、邀請使用者、指派廣告帳戶存取權、更新角色、取消邀請以及移除存取權。它也定義了變更協定,包含確認步驟,以及針對敏感資料和破壞性操作的防護規則。
適用情境
當使用者要求依 ID 尋找廣告帳戶、稽核存取權、導入代理商或團隊成員、管理商家或廣告帳戶成員關係,或更新支援的帳戶身分資訊時使用。
執行需求
需要存取 Spotify Ads API 以及外掛的 api-request.sh 輔助指令碼,還需要 api-reference 的 live-openapi.md 文件。此技能不隨附指令碼,僅為指示文件。需要網路存取和有效的 API 憑證。

Spotify Ads API — Business and Ad Account Administration

Inspect and manage business, ad-account, member, role, and invitation resources.

Setup

bash
PLUGIN_ROOT="${CODEX_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-.}}"api() { "$PLUGIN_ROOT/scripts/api-request.sh" account-admin "$@"; }

Before the first Ads API v3 call, read and follow $PLUGIN_ROOT/skills/api-reference/references/live-openapi.md.

Discovery and audit

There is no top-level GET /ad_accounts. Discover accounts through businesses:

bash
api GET "businesses"api GET "businesses/<business_id>"api GET "businesses/<business_id>/ad_accounts"api GET "ad_accounts/<ad_account_id>"

To find a specific account ID, enumerate the current user's businesses and their ad accounts, then match the exact ID. Do not rely on non-unique names.

Audit access:

bash
api GET "businesses/<business_id>/members"api GET "businesses/<business_id>/members/<member_id>"api GET "businesses/<business_id>/members/<member_id>/ad_accounts"api GET "businesses/<business_id>/invitations"api GET "ad_accounts/<ad_account_id>/members"

Present active members and pending invitations separately. Include exact IDs, email, business role, ad-account role, and assigned accounts.

Create or update businesses and accounts

Create a business:

bash
api POST "businesses" \  '{"name":"Example Agency","type":"AGENCY","business_admin_name":"Alex Smith","business_admin_email":"[email protected]","business_admin_has_marketing_opt_in":false}'

Business types are ADVERTISER, AGENCY, MUSIC_ARTIST_CONCERT_PROMOTER, and PODCAST_PROMOTER. Do not reuse ad-account type values such as AD_AGENCY here.

Create an ad account:

bash
api POST "businesses/<business_id>/ad_accounts" \  '{"name":"Example Advertiser","type":"BRAND_ADVERTISER","industry":"<industry>","country_code":"US","legal_entity_name":"Example LLC","website":"https://example.com"}'

Update an ad account only with public UpdateAdAccountRequest fields: name, industry, billing_address, tax_id, tax_ids, legal_entity_name, or website.

bash
api PATCH "ad_accounts/<ad_account_id>" \  '{"legal_entity_name":"Example LLC","website":"https://example.com"}'

Currency, timezone, and country are not updateable fields. Never imply that PATCH can change them.

Invitations and roles

Invite a business member, optionally with ad-account access:

bash
api POST "businesses/<business_id>/invitations" \  '{"email_address":"[email protected]","business_role":"BUSINESS_MEMBER","ad_account_invitations":[{"ad_account_id":"<ad_account_id>","role":"AD_ACCOUNT_CONTRIBUTOR"}]}'

Business roles are BUSINESS_ADMIN or BUSINESS_MEMBER. Read the current enum from the API reference before using an ad-account role; do not guess role values.

Update roles:

bash
api PATCH "businesses/<business_id>/members/<member_id>/role" \  '{"role":"BUSINESS_ADMIN"}'api PATCH "ad_accounts/<ad_account_id>/members/<member_id>" \  '{"role":"<ad_account_role>"}'

Add an existing business member to an ad account:

bash
api POST "ad_accounts/<ad_account_id>/members" \  '{"member_id":"<member_id>","role":"<ad_account_role>"}'

Removing access

bash
api DELETE "businesses/<business_id>/invitations/<invitation_id>"api DELETE "ad_accounts/<ad_account_id>/members/<member_id>"api DELETE "businesses/<business_id>/members/<member_id>"

Removing a business member also removes their access to assets under that business. Resolve and display the exact person, business, assigned accounts, and effect, then require explicit confirmation immediately before DELETE.

Mutation protocol

For business creation, account creation, invitations, assignments, role changes, cancellations, and removals:

  1. Resolve all IDs with GET.
  2. Present a concise before/after plan.
  3. Require explicit confirmation immediately before the request, even when auto_execute is true.
  4. Execute once.
  5. Re-read the affected resource to verify the result.

Guardrails

  • Never change the caller's own role or remove their access without an explicit, separately stated request.
  • Warn when a role change could remove the last known business administrator; do not proceed until the user confirms the risk.
  • Treat email addresses and tax/billing data as sensitive and avoid unnecessary display.
  • Do not claim to manage billing currency, timezone, credit lines, invoicing, or unsupported legal-entity eligibility.
  • Only retry GET on network errors or 5xx. Never automatically retry POST, PATCH, or DELETE.
  • Check HTTP_STATUS: first. On 4xx, show the error and stop.

來源與署名

來源:spotify/ads-claude-plugin位於skills/account-admin提交532b47a

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架