关于 gpc-monetization
gpc-monetization 是一项通过 `gpc` 命令行管理 Google Play 应用内商品和订阅的技能,涵盖基础方案、定价及优惠,并强调删除前确认。
主要功能
- 01管理一次性应用内商品
- 02管理订阅和基础方案
- 03查询订阅定价
- 04创建和管理订阅优惠
- 05删除操作需明确确认
适用场景
- 01列出或查看应用内购买商品
- 02创建或更新订阅及基础方案
- 03查看定价和订阅优惠
- 04确认后删除商品
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ androidpoet/ playconsole-cli-skills --skill gpc-monetization安装后在 Claude Code 中输入/gpc-monetization确认已加载。
详细介绍
变现
在管理应用内商品(一次性购买)、订阅、基础方案或订阅优惠时使用此技能。
应用内商品(一次性购买)
列出商品
gpc products list --package com.example.app
gpc products list --page-size 50 --package com.example.app
获取商品详情
gpc products get --product-id premium_upgrade --package com.example.app
创建商品
gpc products create --product-id premium_upgrade \
--title "Premium Upgrade" \
--description "Unlock all features" \
--package com.example.app
从 JSON 文件创建
gpc products create --product-id premium_upgrade --file product.json --package com.example.app
更新商品
gpc products update --product-id premium_upgrade \
--title "Premium Upgrade v2" \
--package com.example.app
删除商品
gpc products delete --product-id premium_upgrade --confirm --package com.example.app
订阅
列出订阅
gpc subscriptions list --package com.example.app
gpc subscriptions list --max-results 100 --package com.example.app
获取订阅
gpc subscriptions get --product-id monthly_pro --package com.example.app
创建订阅
gpc subscriptions create --product-id monthly_pro --file subscription.json --package com.example.app
基础方案
列出订阅的基础方案
gpc subscriptions base-plans list --product-id monthly_pro --package com.example.app
创建基础方案
gpc subscriptions base-plans create --product-id monthly_pro --file baseplan.json --package com.example.app
获取定价
gpc subscriptions pricing get --product-id monthly_pro --base-plan p1m --package com.example.app
订阅优惠
列出优惠
gpc offers list --product-id monthly_pro --base-plan p1m --package com.example.app
获取优惠详情
gpc offers get --product-id monthly_pro --base-plan p1m --offer-id free_trial --package com.example.app
创建优惠
gpc offers create --product-id monthly_pro --base-plan p1m --file offer.json --package com.example.app
更新优惠
gpc offers update --product-id monthly_pro --base-plan p1m --offer-id free_trial --file offer.json --package com.example.app
激活 / 停用优惠
gpc offers activate --product-id monthly_pro --base-plan p1m --offer-id free_trial --package com.example.app
gpc offers deactivate --product-id monthly_pro --base-plan p1m --offer-id free_trial --package com.example.app
删除优惠
gpc offers delete --product-id monthly_pro --base-plan p1m --offer-id free_trial --confirm --package com.example.app
Agent 行为
- 创建前始终列出现有商品/订阅,以避免重复。
- 删除商品前先与用户确认(此操作不可撤销)。
- 对破坏性操作明确使用
--confirm标志。 - 显示更新前后的当前状态。
说明
- 商品和订阅需要有效的基础方案才能购买。
- 复杂商品定义包含多个字段时,请使用 JSON 文件。
- 订阅层级:订阅 → 基础方案 → 优惠。
评论
支持 Markdown