/spotify-ads-api:audiencesfrom spotify-ads-api
Manages Spotify Ads API audiences: uploads/replaces customer lists, creates web-event or ad-engagement audiences, builds lookalikes, lists/gets/edits/deletes audiences, and inspects datasets.
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.
Read when SKILL.md points to them.
Manage audiences scoped to the configured ad account.
PLUGIN_ROOT="${CODEX_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-.}}"
api() { "$PLUGIN_ROOT/scripts/api-request.sh" audiences "$@"; }
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.
Run eval $(api --env) when raw upload curl needs the configured environment. It sets TOKEN, AD_ACCOUNT_ID, BASE_URL, SDK_HEADER, and SKILL_HEADER; keep -H "$SDK_HEADER" and -H "$SKILL_HEADER" on those calls so they stay attributable.
api GET "ad_accounts/{ad_account_id}/audiences?limit=50&offset=0"
api GET "ad_accounts/{ad_account_id}/audiences/<audience_id>"
api GET "ad_accounts/{ad_account_id}/audiences/datasets?limit=50"
Paginate list results. Filter with repeated audience_types, audience_ids, or q only when requested. Show audience type, subtype, source, status, size range, audience category (when returned), and ID. audience_category is read-only; never send it in create or edit payloads.
api POST "ad_accounts/{ad_account_id}/audiences/upload_url"
id and upload_url.# Step A: Initiate the resumable upload (POST) and capture the session URI from the Location header
set -o pipefail
SESSION_URL=$(curl -sS --fail-with-body -D - -o /dev/null -X POST \
-H "x-goog-resumable: start" \
-H "Content-Type: text/csv" \
-H "Content-Length: 0" \
"<upload_url>" | grep -i "^location:" | tr -d '\r' | sed 's/^[Ll]ocation: *//')
if [ -z "$SESSION_URL" ]; then
echo "Upload initiation did not return a session URI" >&2
exit 1
fi
# Step B: Upload the file data to the session URI (PUT)
curl -sS --fail-with-body -X PUT --upload-file "<file_path>" "$SESSION_URL"
{
"audience_type": "CUSTOM",
"name": "Q4 CRM",
"description": "Customer list for Q4",
"audience_id": "<upload_id>",
"subtype": "CUSTOMER_LIST"
}
Do not automatically retry the upload or create request. If either result is ambiguous, get the audience by the returned ID before proposing another attempt.
Request POST ad_accounts/{ad_account_id}/audiences/upload_url/{audience_id}, then upload to the returned signed URL using the same two-step GCS resumable upload flow as above (POST to initiate, then PUT to the session URI). Replacing audience data is destructive: show the audience ID, name, and file path and require explicit confirmation immediately before requesting the replacement URL.
Web-event audience:
{
"audience_type": "CUSTOM",
"name": "Cart Abandoners",
"subtype": "WEB_EVENT",
"dataset_ids": ["<dataset_id>"],
"included_events": ["ADDTOCART"],
"excluded_events": ["PURCHASE"],
"lookback_days": 30
}
Ad-engagement audience:
{
"audience_type": "CUSTOM",
"name": "Campaign Clickers",
"subtype": "AD_ENGAGEMENT",
"campaign_ids": ["<campaign_id>"],
"exposure_type": "CLICKS",
"lookback_days": 30
}
Use ad_set_ids instead of campaign_ids when the user scopes the audience to ad sets. exposure_type is IMPRESSIONS or CLICKS. lookback_days is 30, 60, 90, or 180.
{
"audience_type": "LOOKALIKE",
"name": "Q4 CRM Lookalike",
"seed_audience_id": "<seed_audience_id>"
}
Fetch the seed first and confirm it is the intended audience. Do not claim control over lookalike percentage or expansion because the public request schema exposes no such field.
PATCH edits only name and description and must include audience_type.
api PATCH "ad_accounts/{ad_account_id}/audiences/<audience_id>" \
'{"audience_type":"CUSTOM","name":"Updated name"}'
DELETE permanently removes an audience. Fetch it first, state its name, type, status, and ID, and require explicit confirmation immediately before DELETE, even when auto_execute is true.
PROCESSING, LEARNING, BOOKABLE, LIVE, and others). Report the current status without promising completion time.BOOKABLE; processing can take up to three days. A LIVE audience is in use by an ad set and cannot be deleted until that dependency is removed.HTTP_STATUS: before parsing. On a non-timeout 4xx, show the API error and do not retry.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub spotify/ads-agentic-tools --plugin spotify-ads-api20 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.Other plugins' skills for the same job