/spotify-ads-api:campaigns list | create | get <campaign_id> | update <campaign_id> | create-live | update-live <campaign_id>from spotify-ads-api
Manages Spotify Ads API campaigns: list, get, create, and update. Stages campaign creation/updates as drafts by default; only writes live when explicitly requested.
Ships in spotify-ads-api. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Manage campaigns via the Spotify Ads API. Read settings from the active platform settings file for credentials and configuration.
Set the plugin root and define the request wrapper:
PLUGIN_ROOT="${CODEX_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-.}}"
api() { "$PLUGIN_ROOT/scripts/api-request.sh" campaigns "$@"; }
Before the first Ads API v3 call, read and follow $PLUGIN_ROOT/skills/api-reference/references/live-openapi.md.
Before sending any output to a human user, read and follow $PLUGIN_ROOT/skills/api-reference/references/language-standards.md.
Also read $PLUGIN_ROOT/skills/api-reference/references/api-behaviors.md for API behaviour the spec does not express (micro-amounts, no DELETE on live entities, retry safety).
To retrieve settings values (TOKEN, AD_ACCOUNT_ID, AUTO_EXECUTE, BASE_URL, SDK_HEADER, SKILL_HEADER, PLUGIN_VERSION) for use outside API calls, run api --env. The output is eval-safe, so eval $(api --env) assigns them all.
Parse the user's argument to determine the operation:
list (default if no argument)List campaigns for the configured ad account.
api GET "ad_accounts/{ad_account_id}/campaigns?limit=50&sort_direction=DESC"
Format the output as a table: ID | Name | Status | Objective / Delivery Goal Group | Created
createPrompt the user for a name and campaign goal. Map the goal to delivery_goal_group using the mapping in the drafts skill.
AWARENESS, WEBSITE_TRAFFIC, APP_PROMOTION, ENGAGEMENT_ON_SPOTIFY, or LEAD_GEN)Then read and follow
$PLUGIN_ROOT/skills/api-reference/references/ad-product-validation.md. Fetch the live
catalog once for this operation. Validate the final campaign body against campaign.create
plus campaign.both. An omitted, UNSET, or UNKNOWN ad_product resolves to
AUCTION. Do not add a separate validation confirmation.
api POST "ad_accounts/{ad_account_id}/drafts/campaigns" \
'{"name":"...","delivery_goal_group":"..."}'
Campaign creation is staged by default. Display the returned draft ID and current draft_hierarchy_version. Do not publish unless the user separately requests publishing through the drafts skill.
get <campaign_id>Fetch a specific campaign by ID.
api GET "ad_accounts/{ad_account_id}/campaigns/$CAMPAIGN_ID"
Display all campaign fields in a readable format.
update <campaign_id>Prompt the user for fields to update (at least 1 required):
Paused is not an ad set or ad status: only campaigns use statuses=PAUSED. For paused ad sets, list api GET "ad_accounts/{ad_account_id}/ad_sets?delivery=OFF" and report is_paused/pause_reason; never send statuses=PAUSED to ad sets or ads. Updates are PATCH, never PUT: the spec defines no PUT on Ads API v3 endpoints. Ad sets for a campaign: api GET "ad_accounts/{ad_account_id}/ad_sets?campaign_ids=$CAMPAIGN_ID". There is no nested /campaigns/{id}/ad_sets route.
Before the PATCH, read and follow
$PLUGIN_ROOT/skills/api-reference/references/ad-product-validation.md. Fetch the live
catalog and current campaign once for this operation, deep-merge the proposed changes,
and validate the effective campaign against campaign.update plus campaign.both.
This applies to status-only updates too. Do not add a separate validation confirmation.
api GET "ad_accounts/{ad_account_id}/campaigns/$CAMPAIGN_ID"
api GET "ad_accounts/{ad_account_id}/drafts/campaigns/$CAMPAIGN_ID"
If the draft GET returns 404, create a draft from the published campaign:
api POST "ad_accounts/{ad_account_id}/campaigns/$CAMPAIGN_ID/drafts"
If a draft already exists, display its current pending fields before combining the requested change. Then update the draft, not the published campaign:
api PATCH "ad_accounts/{ad_account_id}/drafts/campaigns/$CAMPAIGN_ID" \
'{"name":"...","status":"..."}'
Fetch the draft campaign again for the current version, validate it, and report the result as staged:
api GET "ad_accounts/{ad_account_id}/drafts/campaigns/$CAMPAIGN_ID"
api POST "ad_accounts/{ad_account_id}/drafts/campaigns/$CAMPAIGN_ID" \
'{"action":"VALIDATE","draft_hierarchy_version":<version>}'
Do not publish unless the user separately asks to publish and confirms immediately before the PUBLISH request.
create-live and update-live <campaign_id>Use the published POST /campaigns or PATCH /campaigns/{id} endpoint only when the user explicitly asks to skip drafts or make an immediate/direct change to the published entity. Explain that direct writes may not be available for every account or credential.
If a direct write returns HTTP 403 or an edit-permission error, do not retry it and do not conclude that the credentials are entirely read-only. State that direct editing of the published campaign was denied and offer the draft workflow instead.
auto_execute is true, execute the curl command directly.auto_execute is false, present the curl command to the user and ask for confirmation before executing.HTTP_STATUS: line from curl output to determine success or failure before interpreting the response body.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
20 skills in this plugin
/account-adminAdminister 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./adsList or get Spotify Ads API ad sets and ads, and stage their creation or updates through drafts by default. Use direct live writes only when explicitly requested./spotify-ads-api-referenceThis skill should be used when the user asks to "call the Spotify Ads API", "create a Spotify ad campaign", "manage Spotify ads", "pull Spotify ad reports", "set up ad sets or ads", "upload ad assets", "target audiences on Spotify", "check campaign status", "get ad account info", "look up API schema or fields", "check what targeting options exist", or asks about Spotify advertising endpoints, request/response formats, enum values, or authentication./assetsUpload, list, and manage Spotify Ads API creative assets — audio, video, and images for ad campaigns./audiencesManage Spotify Ads API audiences: upload or replace customer lists, create custom web-event or ad-engagement audiences, create lookalikes, list/get/edit audiences, inspect eligible datasets, and delete audiences. Use when a user asks to onboard first-party data, retarget people who saw or clicked ads, build an event-based audience, create a lookalike, replace an audience file, check audience status, or remove an audience./build-campaignCreate a full campaign (campaign + ad sets + ads) from a plain-text description. Parses natural language into structured API calls. Prefers the draft workflow for safer creation with batch validation.npx claudepluginhub spotify/ads-agentic-tools --plugin spotify-ads-apiOther plugins' skills for the same job