asc optimize
asc optimize builds read-only App Store search plans and ranks, scores and discovers keyword candidates from official Apple data.
asc optimize helps choose App Store search keywords. It is read-only: it changes neither App Store metadata nor Apple Ads campaigns. Every value it computes is printed next to the raw inputs it came from, and a source that is unavailable is reported as unavailable, never filled with an invented value. Picking an Apple team (--auth), output and exit codes work as described on the asc page; the flag tables below leave out --output and --pretty, which are explained there.
The usual order: keywords discover for Apple’s own suggestions, keywords score to decide which are worth pursuing, keywords rank to follow the ones you adopted, and search plan for a full plan for one version and locale. To change the keywords themselves, use asc apps search-keywords or asc metadata (see asc: apps and App Store listing).
A flag marked “Required” is checked before any request; leaving it out exits 2. Where --app is required, ASC_APP_ID can stand in for it. None of these commands takes positional arguments.
| Subcommand | What it does |
|---|---|
| keywords | Ranks, scores and discovers keyword candidates. |
| search | Builds a search plan for one version and locale. |
Apple Ads data
Some sources come from the Apple Ads API. Apple Ads needs its own access, separate from App Store Connect and from the Apple team picked with --auth: an ad account and a stored Apple Ads authentication profile. The flags:
| Flag | What it does |
|---|---|
--ad-account |
The Apple Ads ad account ID. Otherwise ASC_ADS_AD_ACCOUNT_ID, or the default of the Apple Ads profile in use. |
--ads-profile |
The name of a stored Apple Ads authentication profile. Otherwise the stored default profile. |
keywords rank needs neither. keywords score works without them and reports popularity as unavailable. keywords discover uses only Apple Ads, so it fails without them. search plan reports the Apple Ads parts it could not read as unavailable.
keywords
Ranks, scores and discovers keyword candidates. A list of keywords is comma-separated. Keywords are lowercased, their spaces collapsed and duplicates removed. On these three commands --app is the numeric App Store app ID.
| Subcommand | What it does |
|---|---|
| keywords rank | Where the app appears in public search results for each keyword. |
| keywords score | Difficulty and demand scores for keyword candidates. |
| keywords discover | Keyword suggestions from Apple Ads for an app. |
keywords rank
Shows where an app appears in the public App Store search results for each keyword. No authentication is needed. A run takes at most 100 keywords, each 2 to 60 characters and at most 4 words.
A keyword whose lookup fails is reported as an unavailable row, not dropped; the command fails only when every lookup fails. An empty status means the app is not in the result window Apple returned, which does not prove it is absent from every result. For TV_OS, storefronts without a published numeric storefront ID are refused before any request.
| Flag | What it does | Default |
|---|---|---|
--app |
The app ID (or ASC_APP_ID). Required. |
— |
--keywords |
Keyword candidates, comma-separated. Required. | — |
--country |
Two-letter App Store storefront country or region. | us |
--platform |
IOS or TV_OS. |
IOS |
--workers |
Parallel lookups. Never more than the number of keywords; the report records the number used. | 10 |
asc optimize keywords rank --app "1234567890" --keywords "focus timer" --country gb --output tablekeywords score
Scores keyword candidates for difficulty and demand from up to three sources:
| Source | What it is | Needs |
|---|---|---|
| Competition | Public App Store search and public app metadata. Enough on its own for a difficulty score. | nothing |
| Popularity | Apple Ads search demand for the country and genre, from the latest complete week. | --genre, an ad account and Apple Ads authentication (see Apple Ads data) |
| Rank | This app’s position in the public results. | --app or ASC_APP_ID |
| Flag | What it does | Default |
|---|---|---|
--keywords |
Keyword candidates, comma-separated. Required. | — |
--app |
The app ID (or ASC_APP_ID); adds this app’s rank. |
— |
--country |
Two-letter App Store storefront country or region. | us |
--genre |
Apple Ads search popularity genre, such as PRODUCTIVITY_UTILITIES. Turns on the popularity source. |
— |
--ad-account |
Apple Ads ad account ID. | see Apple Ads data |
--ads-profile |
Apple Ads authentication profile. | the default profile |
--workers |
Parallel lookups. | 10 |
asc optimize keywords score --keywords "focus timer" --app "1234567890" --genre PRODUCTIVITY_UTILITIES --ad-account "987654321" --country USkeywords discover
Lists the keyword candidates Apple Ads suggests for an app, from Apple’s documented keyword and phrase suggestion endpoints only. No campaign is needed. Terms from both endpoints are merged without duplicates, each with the endpoint it came from. --country scopes the keyword suggestions; Apple’s phrase suggestions are not country-specific.
The report also has scoreKeywords: the suggestions that are fit to use as keywords, comma-separated, ready to pass to keywords score --keywords. Suggestions that are too long, too short, have too many words or contain a comma stay in the list but are left out of that field.
| Flag | What it does | Default |
|---|---|---|
--app |
The app ID (or ASC_APP_ID). Required. |
— |
--country |
Two-letter Apple Ads country or region. | us |
--genre |
Apple Ads genre. Only a label in the report; it does not change the suggestions. | — |
--limit |
Maximum suggestions to return. | 50 |
--ad-account |
Apple Ads ad account ID. | see Apple Ads data |
--ads-profile |
Apple Ads authentication profile. | the default profile |
asc optimize keywords discover --app "1234567890" --country US --ad-account "987654321" --limit 25search
Builds App Store search plans.
| Subcommand | What it does |
|---|---|
| search plan | Joins Apple Ads data and App Store metadata into a search plan. |
search plan
Joins Apple Ads data with the App Store metadata of one version and locale into a search plan. It keeps four things apart: keyword demand, the app’s paid reach, how its search terms actually performed, and how well the metadata covers them.
With --out-dir it also writes the plan as files you can review: report.json, metadata-candidates.csv, exact-keywords.json and negative-keywords.json.
| Flag | What it does | Default |
|---|---|---|
--app |
The app ID, bundle ID or exact app name (or ASC_APP_ID). Required. |
— |
--version |
App Store version string, such as 1.2.0. Required. |
— |
--locale |
App Store metadata locale, such as en-US. Required. |
— |
--country |
Two-letter Apple Ads country or region. Required. | — |
--genre |
Apple Ads search popularity genre, such as PRODUCTIVITY_UTILITIES. Required. |
— |
--platform |
IOS, MAC_OS, TV_OS, VISION_OS. |
IOS |
--window |
Paid performance window, 2d to 30d. |
30d |
--app-info |
App Info ID, when the app has several and the right one can’t be picked automatically. | — |
--out-dir |
Folder to write the plan files to. | — |
--ad-account |
Apple Ads ad account ID. | see Apple Ads data |
--ads-profile |
Apple Ads authentication profile. | the default profile |
asc optimize search plan --app "1234567890" --version "1.2.0" --ad-account "987654321" --country US --genre PRODUCTIVITY_UTILITIES --locale en-US --out-dir .asc/optimization/1.2.0 --output markdown