Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
A self-contained system for running an Apple Ads account with an AI coding agent (built for Claude Code, but the scripts stand alone): live reads, one audited write path with a change ledger, always-on keyword testing with staged kill gates, and a mature-cohort ROAS method for keep/kill/scale calls.
Extracted from a production account and genericized. The operating manual is
SKILL.md; this file is setup.
Via skills.sh:
npx skills add safaiyeh/apple-ads-skill
Then, inside the installed skill directory: bun install (the scripts need
jose + dotenv) and cp .env.example .env, filled in with your API
credentials. Or skip the directory and clone this repo — see Setup below.
| File | What it is |
|---|---|
SKILL.md | The operating manual: how to read the account, the ONLY way to change it, the two-slot testing system, kill gates, bid/scale rules, ROAS traps. Sections marked FILL IN are yours to maintain. |
roas.md | The keep/kill ROAS method — realized + projected over mature cohorts, and the table of wrong-but-plausible definitions to refuse. |
ledger.md | The change ledger. apply-change.ts appends every applied change here with your --reason. This becomes the account's decision history. |
backlog.md | The test-candidate queue for the two standing slots. |
scripts/api-client.ts | OAuth + rate-limit-aware client for the Apple Ads Platform API v1. Not run directly. |
scripts/fetch-ads.ts | All reads: delivery (campaigns / keywords / search terms) and market position (impression share / popularity / suggestions / change history). |
scripts/inspect-account.ts | Read-only structural audit — budgets, bids, keywords, negatives. Writes nothing. |
scripts/apply-change.ts | The only write path. Dry run by default; --apply requires --reason and appends to the ledger. |
scripts/test/ | Offline tests for the write path's ledger-durability guarantee (network is stubbed; nothing touches a real account). |
Requires Bun.
cd apple-ads-skill
bun install
# Credentials: https://ads.apple.com → Account Settings → API
# Create an API user, generate the key pair, upload the public key, then:
cp .env.example .env # and fill it in
# Verify — read-only:
bun run scripts/fetch-ads.ts --report=campaigns --days=7
bun run scripts/inspect-account.ts
The API user role matters: read-only reporting works with API Read Only,
but apply-change.ts needs a role that can edit campaigns.
Optional checks:
bun run typecheck # tsc --noEmit
bun run test # offline write-path tests
Put this directory in your repo (e.g. ads/apple-ads/), then expose the skill:
mkdir -p .claude/skills
ln -s ../../ads/apple-ads .claude/skills/apple-ads
Claude Code picks up SKILL.md as the /apple-ads skill. Commit the whole
directory except .env (add .env and *.pem to .gitignore) — the
ledger and backlog are the point of committing it: the account config lives at
Apple, so this directory is the only durable record of why it looks the way it
does.
SKILL.md from
inspect-account.ts output. This is the map every future session reads
first.SKILL.md → "Kill gates") from your own funnel:
proceeds per paying customer, trial→paid rate, download→trial rate. Write
the derived numbers and the date into SKILL.md.roas.md
(proceeds per convert, the pending-inventory multiplier, your arms table,
your query↔keyword-ID merge table).backlog.md with at least one Slot A candidate and one Slot B
test, so neither slot can sit empty.Never write a new script to change or investigate the account. A change is
a row in apply-change.ts's OPERATIONS/CREATIONS tables; a one-off
investigation is an uncommitted bun -e one-liner; a repeated investigation is
a new --report= on fetch-ads.ts. The full story of why is at the top of
SKILL.md — the short version is that a pile of dated one-off scripts once
silently reverted a live account change because no script could know the others
existed.
MIT — see LICENSE. Not affiliated with or endorsed by Apple; use against
your own ad account at your own risk (apply-change.ts is dry-run by default
for a reason).
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub safaiyeh/apple-ads-skill --plugin apple-adsPlugins from other owners that cover similar ground