Loading...
Loading...
Manage App Store product page promoted purchase slots using the `asc` CLI tool. Use this skill when: (1) Listing slots: "asc promoted-purchases list --app-id ID" (2) Promoting an IAP or subscription: "asc promoted-purchases create --app-id ID (--iap-id ID | --subscription-id ID)" (3) Updating visibility / enabled state: "asc promoted-purchases update --promoted-id ID --visible|--hidden --enabled|--disabled" (4) Deleting a slot: "asc promoted-purchases delete --promoted-id ID" (5) User says "promoted purchase", "promoted IAP", "feature on App Store", "App Store product page promotion", "promoted slot"
npx skill4agent add tddworks/asc-cli-skills asc-promoted-purchasesasc promoted-purchases list --app-id <APP_ID> [--limit N] [--pretty]--iap-id--subscription-id# Promote an in-app purchase
asc promoted-purchases create --app-id <APP_ID> --iap-id <IAP_ID> --visible --enabled
# Promote an auto-renewable subscription
asc promoted-purchases create --app-id <APP_ID> --subscription-id <SUB_ID> --hidden --disabled--visible--hiddenisVisibleForAllUsers--enabled--disabledisEnabledisVisibleForAllUsers=trueisEnabledasc promoted-purchases update --promoted-id <PROMOTED_ID> [--visible | --hidden] [--enabled | --disabled]asc promoted-purchases delete --promoted-id <PROMOTED_ID>PromotedPurchaseState| Boolean | True when state is |
|---|---|
| |
| |
| State | | |
|---|---|---|
| shown | shown |
| suppressed | suppressed |
{
"affordances": {
"listSiblings": "asc promoted-purchases list --app-id <APP_ID>",
"update": "asc promoted-purchases update --promoted-id <ID>", // omitted while in review
"delete": "asc promoted-purchases delete --promoted-id <ID>" // omitted while in review
}
}.asc/project.jsonasc apps listAPP_ID=$(cat .asc/project.json 2>/dev/null | jq -r '.appId // empty')
# Promote an IAP, visible to all users, slot enabled.
PROMO_ID=$(asc promoted-purchases create --app-id "$APP_ID" \
--iap-id "iap-1" --visible --enabled \
| jq -r '.data[0].id')
# Later: hide it temporarily without deleting
asc promoted-purchases update --promoted-id "$PROMO_ID" --hidden
# Or just remove the slot
asc promoted-purchases delete --promoted-id "$PROMO_ID"