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 从公开仓库中收录这些内容。

举报或申请下架