mcpField
G
gpc-monetization

gpc-monetization

github.com/androidpoetマーケティング・グロース445 回インストール17 週間前に更新
リポジトリ

gpc-monetization について

gpc-monetizationは、`gpc`コマンドラインでGoogle Playのアプリ内商品やサブスクリプションを管理するスキルです。ベースプランや価格、オファーの操作に対応し、削除前の確認を重視します。

主な機能

  1. 01アプリ内の買い切り商品管理
  2. 02サブスクリプションとベースプランの管理
  3. 03サブスクリプション価格の確認
  4. 04オファーの作成と管理
  5. 05削除操作の明示的な確認

活用シーン

  1. 01アプリ内購入商品を一覧・確認
  2. 02サブスクリプションやベースプランの作成・更新
  3. 03価格やサブスクリプションオファーの確認
  4. 04確認後の商品削除

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/androidpoet/playconsole-cli-skills --skill gpc-monetization

インストール後、Claude Code で/gpc-monetizationを入力して読み込まれたか確認します。

詳細

収益化

アプリ内商品(1 回限りの購入)、サブスクリプション、基本プラン、またはサブスクリプション特典を管理する際に、このスキルを使用します。

アプリ内商品(1 回限り)

商品を一覧表示
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

エージェントの動作

  • 重複を避けるため、作成前に既存の商品/サブスクリプションを必ず一覧表示します。
  • 商品を削除する前に、ユーザーに確認します(取り消しできません)。
  • 破壊的な操作では、--confirm フラグを明示的に使用します。
  • 更新の前後で現在の状態を表示します。

注意事項

  • 商品とサブスクリプションを購入可能にするには、有効な基本プランが必要です。
  • 複数のフィールドを含む複雑な商品定義には、JSON ファイルを使用します。
  • サブスクリプションの階層:サブスクリプション → 基本プラン → 特典。

コメント