Open-source Apple Ads automation with keyword-level revenue

Apple Ads CLI by Lily

Built for agents and ROAS. asccli.sh is the broad App Store Connect CLI. Lily CLI is narrower on growth: plan Apple Ads campaigns, get keyword-level revenue, and optimize for ROAS.

brew install crevas/tap/lilyads
lily ads plan create
lily ads plan create \
  --country US \
  --daily-budget 300 \
  --bid 3.00 \
  --cpa-goal 2.00 \
  --exact-keywords "photo editor,ai photo" \
  --negative-exact "wallpaper,jobs" \
  --creative product-page:pp_123
Business first
Real-world workflows
Revenue first
Support keyword-level revenue
v5
upcoming Platform API v1.0
MIT License
Free Apple Ads operations

Different by focus

Not another endpoint wrapper.

Apple Ads managers think in launches, countries, budgets, CPA goals, creative routes, and payback. The CLI should speak that language.

Plan before write

Every write command starts as a JSON plan that Claude Code, Codex, CI, or a human can review before execution.

Revenue-aware by design

Reports can call Lily Ads Revenue Analytics so campaign decisions are tied to paid users, profit, and ROAS.

Business workflows

Create the campaign package you mean, not a pile of raw endpoint calls stitched together by an agent.

Platform API ready

The CLI keeps v5 as the default today while reserving Platform API v1.0 commands for target CPA suggestions.

Lily advantage

Spend is only useful when it can explain revenue.

A free Apple Ads CLI gets developers into the workflow. Lily Ads Revenue Analytics turns those same commands into paid-user, profit, and ROAS decisions.

1

Ask an agent to launch a US Apple Ads plan.

2

Review the JSON dry-run with campaign, ad group, keywords, negatives, CPA, and creative.

3

Approve execution only when the plan matches the business intent.

4

Pull spend plus Lily revenue to understand ROAS and paid-user quality.

Lily Ads Revenue Analytics campaign dashboard with spend, revenue, profit, ROAS, and paid user metrics
ROAS enrichment
lily ads reports campaigns --app-id 999999999

{
  "appleAds": { "spend": "$12,856" },
  "revenue": { "source": "Lily Ads Revenue Analytics" },
  "roas": "6.12x"
}

Lily versus asc

Use asc for App Store Connect breadth. Use Lily when Apple Ads is the job.

The point is not to replace asc. The point is to own the Apple Ads workflow where revenue, creative, bids, and Platform API migration all meet.

Scope

Broad App Store Connect automation across releases, TestFlight, metadata, signing, analytics, and Apple Ads.

Apple Ads only, with deeper campaign planning, revenue enrichment, creative routing, and migration logic.

Command model

Endpoint-rich command tree for many App Store Connect jobs.

Business-first commands that create a campaign, ad group, keywords, negatives, CPA goal, and creative in one plan.

AI agent fit

Great general-purpose automation surface for coding agents.

JSON dry-runs by default, explicit confirmation for writes, and prompts that map to growth decisions.

Growth loop

Manages Apple Ads objects and reports.

Connects Apple Ads spend to Lily Ads Revenue Analytics so agents can explain paid users, profit, and ROAS.

Platform shift

Useful for current Apple Ads API access inside a larger toolkit.

Built around the v5 and upcoming Platform API v1.0 transition with reserved target CPA suggestions and recommendations.

Lily CLI is an independent Apple Ads-focused CLI and analytics tool for Apple Ads. It is not affiliated with Apple Inc. “Apple” and “Apple Ads” are trademarks of Apple Inc.

Platform API window

Be first when target CPA suggestions become real endpoints.

The command surface is already reserved, so the public endpoint contract can be mapped without changing how agents ask for help.

lily ads suggestions cpa --app-id 999999999
lily ads recommendations apply --type target-cpa --app-id 999999999
lily --provider platform ads plan create --country GB --cpa-goal 12.00
brew install crevas/tap/lilyads # or curl -fsSL https://www.chatlily.ai/apple-ads-cli/install | bash

Frequently asked questions

Security, open source, agents, and installation.

The short version: local keys stay local, the CLI stays open, and revenue analytics is the commercial layer.

Is Lily CLI safe?
Yes. Your Apple Ads private keys and certificates stay on your machine and do not need to be uploaded. If you want keyword-level revenue analytics, you can authorize Lily API access for Apple Ads reporting, but that revenue workflow does not require uploading your private key.
Is Lily CLI free and open source?
Yes. The CLI is free and open source for Apple Ads operations. Keyword-level revenue analytics through Lily is paid because Apple does not provide that capability as an official Apple Ads feature.
How is Lily CLI different from asc?
asccli.sh is a broad App Store Connect automation CLI. Lily CLI is narrower and deeper for Apple Ads: campaign planning, ad groups, keywords, negative keywords, CPA goals, creative routing, revenue enrichment, and Platform API migration.
Does Lily support AI agents and coding assistants?
Yes. Lily is designed for Claude Code, Codex, CI, and other coding assistants. Write operations default to JSON plans, so agents can show the proposed campaign package before anything is executed.
Does Lily support Platform API 1.0?
Yes. Lily is built to support Campaign Management API v5 and Platform API 1.0. v5 remains the default today, and the Platform API provider surface is reserved so Lily can support 1.0 from day one when Apple opens it broadly.
How is Lily CLI different from other Apple Ads CLI tools?
Lily starts from business and revenue decisions instead of raw endpoint calls. The core workflow is to plan a campaign package, review it as JSON, execute safely, then connect spend to paid users, profit, and ROAS.
Does Lily support RevenueCat or AppsFlyer?
Yes. Lily can connect RevenueCat or AppsFlyer so Apple Ads spend can be attributed to keyword-level paid users, revenue, profit, and ROAS.
How do I install Lily, the Apple Ads CLI?
Install with Homebrew: brew install crevas/tap/lilyads. You can also use the hosted install script: curl -fsSL https://www.chatlily.ai/apple-ads-cli/install | bash.

Free core CLI, Lily revenue layer when you need ROAS

Turn Apple Ads from an API surface into a growth command line.

Download from GitHub