Catalog Managementのロゴ

Catalog Management

組織
RevenueCat
catalog-management

Google Play Developer APIを使って、Google Playの商品カタログやサブスクリプションカタログをプログラムから管理するときに使うスキルです。monetization.onetimeproducts、monetization.subscriptions、従来のinappproductsエンドポイントでの商品やサブスクリプションの作成、更新、有効化、無効化、削除に加え、地域別価格の自動設定も網羅しています。

Add to TypingMind

概要

公開者RevenueCat
リポジトリplay-billing-skills
スキル名catalog-management
スター
58
フォーク
0
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    RevenueCatがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Catalog Management」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/catalog-management
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RevenueCat/play-billing-skills.git /tmp/play-billing-skills
mkdir -p .claude/skills
cp -r /tmp/play-billing-skills/google-play/catalog-management .claude/skills/catalog-management
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCatalog Managementを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCatalog Managementを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Catalog Managementは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Catalog Management

Manage Google Play product catalogs at scale through the Android Publisher API. This skill helps you choose between Play Console and API based workflows, wire up the right endpoints for one time products and subscriptions, and keep regional pricing in sync with your source of truth.

Phase 1: Discovery

Confirm the basics before writing catalog code.

  1. Service account permission. The service account must hold Manage store presence ("Edit pricing, in-app products, and pricing templates") on every app you manage. Without it, write calls to inappproducts, monetization.onetimeproducts, and monetization.subscriptions return 403. Verify in Play Console under Users and permissions, then grant app level access to every package you intend to manage.
  2. API product surface. Identify which endpoint family each SKU currently lives under. Catalogs only ever managed in Play Console were migrated automatically and live under monetization.onetimeproducts, as do products created through that service. Products created or managed through the inappproducts service stay there until you migrate them (an update through monetization.onetimeproducts migrates them). Once migrated, the legacy surface stops serving that product.
  3. Existing catalog shape. List the current catalog with monetization.onetimeproducts.list and monetization.subscriptions.list. Record product IDs, base plan IDs, offer IDs, and activation state so you know what you are mutating.
  4. Quota posture. Review quota usage in the Google Cloud Console under APIs and Services > Quotas for the Google Play Android Developer API. The three tiers you depend on are the per minute query limit, the hourly modification limit, and the hourly latency sensitive modification limit.

Phase 2: Plan

Choose the management model that matches your scale.

Catalog sizeRecommended surfaceNotes
Under 100 products, rare changesPlay Console UINo automation overhead. Manual review before every change.
100 to 10,000 productsbatchUpdate with allowMissing=true, latency tolerantChunks of 100 clear the full catalog in minutes.
Over 10,000 productsbatchUpdate with pacing, latency tolerantAdd inter batch delay, schedule off peak, run dry runs locally.

Pick the right update mechanism per operation:

  • Use patch with an updateMask for targeted field changes on a single product.
  • Use monetization.subscriptions.batchUpdate for subscriptions and their nested base plans. Offers are a separate resource: write them with monetization.subscriptions.basePlans.offers.batchUpdate (or create) and activate them with offers.activate or offers.batchUpdateStates; new offers stay DRAFT until activated.
  • Use inappproducts.update only when you want to replace an entire legacy product resource and you send every field.

Plan the activation state explicitly. Base plans created through the API start in DRAFT. Users cannot purchase until you call monetization.subscriptions.basePlans.activate. One time products work the same way for new purchase options: a purchase option that has never been activated stays in Draft, invisible to the Play Billing Library, until you activate it with purchaseOptions.batchUpdateStates (and its offers with purchaseOptions.offers.activate). Updating a product never changes the state of its existing purchase options. Write the activation step into your runbook so you do not ship dark products.

Plan reconciliation before you plan writes. Define a policy for each diff class:

  • Missing remotely: create via batch with allowMissing=true.
  • Divergent: update via batch with the narrowest updateMask your system manages.
  • Missing locally: deactivate or delete based on whether any base plan has ever been activated.

Add a safety rail: if a reconciliation run proposes changes to more than a threshold percentage of the catalog, fail closed and require manual review.

Phase 3: Execute

Endpoint reference

CapabilityOne time productSubscription
Createmonetization.onetimeproducts.patch or batchUpdate with allowMissing=true (there is no create)monetization.subscriptions.create
Targeted updatemonetization.onetimeproducts.patchmonetization.subscriptions.patch
Bulk create/updatemonetization.onetimeproducts.batchUpdatemonetization.subscriptions.batchUpdate
Listmonetization.onetimeproducts.listmonetization.subscriptions.list
Deletemonetization.onetimeproducts.delete / batchDeletemonetization.subscriptions.delete (only if never activated)
Activatemonetization.onetimeproducts.purchaseOptions.batchUpdateStates (activatePurchaseOptionRequest); offers: purchaseOptions.offers.activatemonetization.subscriptions.basePlans.activate
DeactivatepurchaseOptions.batchUpdateStates (deactivatePurchaseOptionRequest); offers: purchaseOptions.offers.deactivatemonetization.subscriptions.basePlans.deactivate
Activate offerpurchaseOptions.offers.activate (see Activate row)monetization.subscriptions.basePlans.offers.activate
Price migrationn/amonetization.subscriptions.basePlans.migratePrices

Create or update a one time product in bulk

kotlin
val request = BatchUpdateOneTimeProductsRequest().apply {
    requests = chunk.map { product ->
        UpdateOneTimeProductRequest().apply {
            oneTimeProduct = product
            allowMissing = true
            updateMask = "listings,purchaseOptions,taxAndComplianceSettings"
            // Required. Use the regionVersion.version returned by monetization.convertRegionPrices.
            regionsVersion = RegionsVersion().setVersion(currentRegionsVersion)
            latencyTolerance =
                "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT"
        }
    }
}
androidPublisher.monetization()
    .onetimeproducts()
    .batchUpdate(packageName, request)
    .execute()

Send chunks of 100. Each batch counts as one query against the per minute and hourly modification tiers.

Patch a subscription listing

kotlin
val subscription = Subscription().apply {
    listings = listOf(
        SubscriptionListing().apply {
            languageCode = "en-US"
            title = "Premium Plan"
            description = "Access all premium features"
        }
    )
}
androidPublisher.monetization().subscriptions()
    .patch(packageName, productId, subscription)
    .setUpdateMask("listings")
    .setRegionsVersionVersion(currentRegionsVersion)
    .execute()

Every patch needs the regionsVersion.version query parameter (Java client: setRegionsVersionVersion(...)); in batchUpdate it goes in each request's regionsVersion field. Use the regionVersion.version returned by monetization.convertRegionPrices.

Activate a base plan

kotlin
androidPublisher.monetization().subscriptions()
    .basePlans()
    .activate(
        packageName, productId, basePlanId,
        ActivateBasePlanRequest()
    )
    .execute()

A subscription is not purchasable until at least one base plan is activated.

Archive rather than delete

For one time products, prefer removing them from your storefront while leaving the catalog entry intact, so restore flows still resolve product IDs. Only call monetization.onetimeproducts.delete when you are sure no restore path references the product.

For subscriptions, deactivate all base plans to stop new signups while existing subscribers continue renewing:

kotlin
androidPublisher.monetization().subscriptions()
    .basePlans()
    .deactivate(
        packageName, productId, basePlanId,
        DeactivateBasePlanRequest()
    )
    .execute()

Delete the subscription itself only when no base plan has ever been activated. After activation, deactivation is the terminal state.

Regional pricing automation

Regional price updates are high volume operations, so route them through batch methods with latency tolerant mode. Build the region map with monetization.convertRegionPrices (POST applications/{packageName}/pricing:convertRegionPrices), which applies Play's country pricing patterns and returns the regionVersion to send as regionsVersion, then submit batchUpdate calls of up to 100 products per request.

New prices apply to new subscribers only. Moving existing subscribers with monetization.subscriptions.basePlans.migratePrices is a price change that Google announces to them; for increases, choose priceIncreaseType deliberately (opt in increases cancel subscribers who do not accept). Do not run it automatically after a price sync. See the price-changes skill.

Handle quota errors

On HTTP 429 with reason: rateLimitExceeded, back off exponentially and resume. Keep batches at latency tolerant mode whenever visibility within 24 hours is acceptable, which keeps the hourly latency sensitive tier free for real time fixes like pricing corrections.

References

よくある質問

AIスキル「Catalog Management」では何ができますか?

Google Play Developer APIを使って、Google Playの商品カタログやサブスクリプションカタログをプログラムから管理するときに使うスキルです。monetization.onetimeproducts、monetization.subscriptions、従来のinappproductsエンドポイントでの商品やサブスクリプションの作成、更新、有効化、無効化、削除に加え、地域別価格の自動設定も網羅しています。

TypingMindでCatalog Managementを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Catalog Managementはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCatalog Managementをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/catalog-managementを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Catalog Managementを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Catalog Managementで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCatalog Managementを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Catalog Management」は無料ですか?

はい。RevenueCatがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇