このドキュメントでは、非推奨期間中の Google Play Developer API と関連機能の一覧を示します。
非推奨のタイムライン - 2026 年 5 月 19 日~ 2028 年 8 月 31 日
このセクションの機能と API は 2026 年 5 月 19 日をもって非推奨となり、2028 年 8 月 31 日にシャットダウンされます。非推奨の項目については、 Google Play Console > [ヘルプ]からサポート チケットを送信して、2028 年 11 月 1 日までの延長をリクエストできます。
非推奨の Subscription API
このセクションでは、API の非推奨について説明します。
非推奨のタイムライン - 2025 年 5 月 21 日~ 2027 年 8 月 31 日
このセクションの機能と API は 2025 年 5 月 21 日をもって非推奨となり、2027 年 8 月 31 日にシャットダウンされます。非推奨の 項目については、[Google Play Console > ヘルプ] からサポート チケットを送信して 2027 年 11 月 1 日までの延長をリクエストできます。
非推奨の Subscription API
このセクションでは、API の非推奨について説明します。
| API | 交換用デバイス |
|---|---|
| subscriptions.get | subscriptionsv2.get |
| subscriptions.refund | subscriptionsv2.get を呼び出して SubscriptionPurchaseLineItem. latest_successful_order_id, を取得し、Orders.refund を呼び出して注文を払い戻します。 |
| subscriptions.revoke | subscriptionsv2.revoke |
| SubscriptionPurchaseV2. latestOrderId | SubscriptionPurchaseLineItem. latest_successful_order_id |
| RealTimeDeveloperNotification. SubscriptionNotification.subscriptionId | 代替はありません。 |
| RealTimeDeveloperNotification. SubscriptionNotification. notificationType SUBSCRIPTION_PRICE_CHANGE_CONFIRMED | SUBSCRIPTION_PRICE _CHANGE_UPDATED |
SubscriptionPurchaseV2 フィールド(定期購入の場合)
purchases.subscriptionv2 には、新しい定期購入オブジェクトに関する詳細情報を提供する新しいフィールドが含まれています。従来の定期購入エンドポイントのフィールドが、purchases.subscriptionv2 の対応するフィールドにどのようにマッピングされているかを次の表に示します。
| SubscriptionPurchase | SubscriptionPurchaseV2 |
|---|---|
countryCode |
regionCode |
orderId |
lineItems.latestSuccessfulOrderId保留中の注文 ID は inGracePeriodStateContext.renewalDeclined.pendingOrderId または
onHoldStateContext.renewalDeclined.pendingOrderId から取得できます。 |
startTimeMillis |
startTime |
expiryTimeMillis |
lineItems.expiryTime(購入により獲得された定期購入にはそれぞれ固有の expiryTime があります) |
autoResumeTimeMillis |
pausedStateContext.autoResumeTime |
autoRenewing |
lineItems.autoRenewingPlan.autoRenewEnabled |
priceCurrenceCode、
priceAmountMicros |
lineItems.autoRenewingPlan.recurringPrice |
introductoryPriceInfo |
lineItems.offerPhase.introductoryPriceこの情報は、購入された各定期購入の offer でも確認できます。 |
developerPayload |
(対応するフィールドなし)デベロッパー ペイロードは非推奨になりました |
paymentState |
(対応するフィールドなし) 支払いステータスは次のように subscriptionState から推測できます。
|
cancelReason、userCancellationTimeMillis、cancelSurveyResult |
canceledStateContext |
linkedPurchaseToken |
linkedPurchaseToken(変更なし) |
purchaseType |
テスト: testPurchaseを使用 プロモーション: signupPromotion |
priceChange |
lineItems.autoRenewingPlan.priceChangeDetails |
profileName、
emailAddress、
givenName、
familyName、
profileId |
subscribeWithGoogleInfo |
acknowledgementState |
acknowledgementState (no change) |
promotionType、
promotionCode |
signupPromotion |
externalAccountId、
obfuscatedExternalAccountId、
obfuscatedExteranlProfileId |
externalAccountIdentifiers |