Price Changesのロゴ

Price Changes

組織
RevenueCat
price-changes

Use this skill when changing subscription prices on Google Play. Covers price decreases, opt in versus opt out price increases, the 30 to 37 day notification timeline, the OUTSTANDING price change state, and the API calls to manage price changes for existing subscribers.

Add to TypingMind

概要

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

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

AIスキル「Price Changes」を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/price-changes
  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/price-changes .claude/skills/price-changes
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Google Play Price Changes

Google Play price changes touch three separate systems: the base plan price itself, the legacy price cohorts holding existing subscribers, and the notification and consent flow that migrates those cohorts. You have to operate each one deliberately.

Phase 1: Understand

Know what you are actually changing before you touch any API.

  • New subscribers see the new base plan price within a few hours of the patch call. No further work.
  • Existing subscribers land in a legacy price cohort and keep paying their original price forever unless you migrate them. Up to 250 cohorts per base plan.
  • Offer pricing phases (free trial, intro price) cannot be migrated. A change there only affects new subscribers.
  • Installment subscribers under a commitment cannot have their price migrated until the commitment ends.

Two questions drive everything that follows:

  1. Is the new price higher or lower than the legacy cohort price?
  2. If higher, do you want opt in (default) or opt out (conditional)?

Phase 2: Plan

Decide opt in vs opt out

Price decreases skip this entirely. They apply automatically with email notification and no consent. The decision matters only for increases.

DimensionOpt in increaseOpt out increase
Subscriber consentRequired. Must accept or subscription auto cancels.Not required. Silent unless user cancels.
Freeze period7 days of silence before Google notifies users.None. Google notifies immediately.
Notification lead time30 days before the user's first renewal at the new price.30 or 60 days depending on country.
Effective date37 days after initiation (7 day freeze + 30 day notice).30 or 60 days after initiation.
Regional availabilityAll regions.Conditional. Subject to per region rules.
Frequency capNone.One per base plan per country per 365 day rolling window.
Amount capNone.Per country maximum increase amount.
First time requirementCan start from the API.First opt out for the app must start in the Play Console.
Failure modeN/A.Silently downgrades to opt in if eligibility fails.
In app noticeRecommended: tell users in app and deep link to the Play subscription screen.Required: a prominent in app notice at least 30 days before the new price applies (subscription name, current and new price, effective date, how to cancel) on every device type except watches; you certify it in Play Console when you start the increase.

Pick opt in when you need any region not on the opt out list, when the increase exceeds the regional cap, when you already used your annual opt out for that country, or when you have never done an opt out in this app before.

Plan the timeline

For an opt in increase, map backward from the target effective date. Add 37 days to your initiation date. During the 7 day freeze, plan your own in app messaging. Google starts sending emails and push notifications on day 7, but each subscriber is notified individually 30 days before their first renewal at the new price (the first renewal on or after day 37).

For an opt out increase, pick 30 or 60 days based on the subscriber's country. There is no freeze. Ship the required in app notice first; it must be live 30 days before the new price applies.

Plan overlapping migrations

If you initiate a second migration before the first resolves, only the latest applies. The older one transitions to CANCELED and fires a SUBSCRIPTION_PRICE_CHANGE_UPDATED RTDN. Plan your backend to treat every RTDN as a signal to re fetch, not as a state diff.

Phase 3: Execute

Step 1: Patch the base plan price

Updating the base plan itself changes the sticker price for new purchases only. Existing subscribers are untouched. patch requires the updateMask and regionsVersion query parameters, so fetch the subscription first, change only the target region's price inside the existing base plan's regionalConfigs, and send the whole subscription back.

kotlin
val subscription = androidPublisher.monetization().subscriptions()
    .get(packageName, productId)
    .execute()

val basePlan = subscription.basePlans.first { it.basePlanId == basePlanId }
val regionConfig = basePlan.regionalConfigs.first { it.regionCode == "US" }
regionConfig.price = Money().setCurrencyCode("USD").setUnits(6L).setNanos(990_000_000)

androidPublisher.monetization().subscriptions()
    .patch(packageName, productId, subscription)
    .setUpdateMask("basePlans")
    .setRegionsVersionVersion("2022/02") // required regionsVersion.version query parameter
    .execute()

Propagation to new purchases is typically under 4 hours. There is no way to force instant propagation, so build in a buffer for time sensitive launches.

Step 2: Migrate the legacy cohort

This is the action that actually moves existing subscribers. Use monetization.subscriptions.basePlans.migratePrices with a RegionalPriceMigrationConfig per region.

kotlin
val migration = RegionalPriceMigrationConfig()
    .setRegionCode("US")
    .setOldestAllowedPriceVersionTime("2025-01-01T00:00:00Z")
    .setPriceIncreaseType("PRICE_INCREASE_TYPE_OPT_IN")
val request = MigrateBasePlanPricesRequest()
    .setRegionalPriceMigrations(listOf(migration))
    .setRegionsVersion(RegionsVersion().setVersion("2022/02"))
androidPublisher.monetization().subscriptions().basePlans()
    .migratePrices(packageName, productId, basePlanId, request)
    .execute()

The oldestAllowedPriceVersionTime cutoff lets you migrate only cohorts older than a given timestamp. A successful call returns an empty body and queues the migration.

If you request PRICE_INCREASE_TYPE_OPT_OUT and the migration fails any eligibility check (region, amount, frequency, first time rule), Google silently downgrades it to opt in. Your API call still succeeds. Watch the resulting RTDN to see which mode actually took effect.

Step 3: Handle SUBSCRIPTION_PRICE_CHANGE_UPDATED RTDN (type 19)

Every price change event fires this RTDN. Always fetch the current state with purchases.subscriptionsv2.get and inspect autoRenewingPlan.priceChangeDetails on each line item. Do not assume which migration the notification refers to.

kotlin
fun handlePriceChangeRtdn(purchaseToken: String) {
    val sub = playApi.getSubscriptionV2(packageName, purchaseToken)
    for (item in sub.lineItems) {
        val pc = item.autoRenewingPlan?.priceChangeDetails ?: continue
        when (pc.priceChangeState) {
            "OUTSTANDING" -> recordPendingOptIn(pc)
            "CONFIRMED"   -> recordAcceptedOrAutomatic(pc)
            "APPLIED"     -> markPriceApplied(pc)
            "CANCELED"    -> clearMigrationState(pc)
        }
    }
}

State meanings:

priceChangeStateWhat it means
OUTSTANDINGOpt in increase pending user acceptance.
CONFIRMEDUser accepted, or opt out increase, or decrease. Applies at next renewal.
APPLIEDPrice change already took effect at a renewal.
CANCELEDMigration canceled by an overlapping change or reversal.

The priceChangeMode field distinguishes PRICE_DECREASE, PRICE_INCREASE (opt in), and OPT_OUT_PRICE_INCREASE. The expectedNewPriceChargeTime field tells you when the user will first be charged at the new price and is only populated before the change applies.

Step 4: Watch for OUTSTANDING opt in increases and auto cancel

For opt in increases, a user who neither accepts nor cancels gets auto canceled by Google at their renewal. The user keeps access through the end of the current period, then the subscription expires. Treat priceChangeState == OUTSTANDING past the effective date as a churn risk and surface an in app prompt with a deep link to the Play Store subscription management screen.

Step 4.1: Confirm the increase in app with showInAppMessages (PBL 9+)

PBL 9 lets the user accept an opt in price increase without leaving your app. Google surfaces the consent flow through the existing showInAppMessages entry point and the TRANSACTIONAL category (the same one used for payment recovery). The message appears starting the first day the user can accept the increase and at most once every 7 days, which raises acceptance and reduces involuntary churn versus a Play Store deep link alone.

kotlin
// PBL 9.x
fun promptPriceIncrease(activity: Activity) {
    val params = InAppMessageParams.newBuilder()
        .addInAppMessageCategoryToShow(
            InAppMessageParams.InAppMessageCategoryId.TRANSACTIONAL
        ).build()
    billingClient.showInAppMessages(activity, params) { r ->
        if (r.responseCode ==
            InAppMessageResult.InAppMessageResponseCode.SUBSCRIPTION_STATUS_UPDATED
        ) {
            // User accepted the new price in the dialog. Re sync from your backend;
            // the priceChangeState moves to CONFIRMED once the RTDN lands.
            refreshSubscriptionStatus()
        }
    }
}

Call this at natural moments (app launch, entering a gated feature) for subscribers whose line item shows priceChangeState == OUTSTANDING. On SUBSCRIPTION_STATUS_UPDATED, re fetch with purchases.subscriptionsv2.get rather than trusting client state. See payment-recovery for the same API applied to grace period and account hold.

Step 5: Handle the payment authorization window on decreases

Google authorizes payment up to 48 hours before renewal in most regions, and up to 5 days before in India and Brazil. A subscriber whose payment was already authorized at the old higher price pays that price for the current cycle. The decrease applies at the following renewal. Do not treat this as a bug.

Step 6: Recover from accidents quickly

  • Accidental increase: Patch the price back to the original, then initiate a price decrease migration. If you catch it inside the 7 day opt in freeze, no user was ever notified.
  • Accidental decrease: Patch the price back up, then initiate an increase migration. If the time to each subscriber's renewal exceeds the country notification window (30 or 60 days), the reversal holds. Otherwise they pay the lower price for one cycle.

Step 7: Test with Play Billing Lab

Never test price changes on production subscribers. Use the Play Billing Lab app on a license tester device. It compresses renewal and notification timelines from weeks to minutes. Defer billing by at least one hour after applying a test price change so the system can register the notification before the compressed renewal fires.

References

よくある質問

AIスキル「Price Changes」では何ができますか?

Use this skill when changing subscription prices on Google Play. Covers price decreases, opt in versus opt out price increases, the 30 to 37 day notification timeline, the OUTSTANDING price change state, and the API calls to manage price changes for existing subscribers.

TypingMindでPrice Changesを使うメリットは何ですか?

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

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

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

Price Changesを使えるAIモデルはどれですか?

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

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

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

AIスキル「Price Changes」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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