Android Developer: `productId` argument required inconsistency
まだ誰も着手していません。
評価
調査の方向性
The issue points to the AndroidPublisher.java file line 21976 where a precondition check on subscriptionId occurs. First, examine the generated client library structure and the API specification to understand the parameter requirement. Check if the method can be overloaded or the precondition relaxed. Running the provided code example will reproduce the error. Verify the fix by testing with a null subscriptionId as per the API docs.
索引モデルが issue の本文から書いたものです。
説明
hi!
in the Android Developer API, the purchases.subscriptions.acknowledge method has a subscriptionId path parameter, which the docs specify is not required and not recommended in some scenarios (docs link).
it seems the Java client library in this repo has a non-null precondition on subscriptionId, failing the request client-side (see code). should this be updated in the generated client library, either by overloading this method or allowing null values for this param?
Environment details
google-api-services-androidpublisher version: v3-rev20260909-2.0.0 (maven central)
Code example
client.purchases()
.subscriptions()
.acknowledge(appName, null, purchaseToken, requestBody) // throws precondition error
.execute();
External references such as API reference guides
- https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions/acknowledge#path-parameters
- https://github.com/googleapis/google-api-java-client-services/blob/main/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java#L21976
- 主要言語
- Java
- スター
- 725
- フォーク
- 394
- 平均マージ
- 45分
- マージ済み PR(30日)
- 240
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googleapis/google-api-java-client-services のほかの issue
-
priority: p3 type: docs
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
priority: p3 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
googleapis/google-api-java-client-services#29581 · コメント 2 件 ·
-
priority: p3 type: feature request
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
googleapis/google-api-java-client-services#29317 · コメント 1 件 ·
-
priority: p3 type: bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
googleapis/google-api-java-client-services#26505 · コメント 7 件 · リアクション 1 件 ·
-
priority: p3 type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
googleapis/google-api-java-client-services の issue をすべて見る
似ている issue
-
area/plugin
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
kestra-io/plugin-kestra#190 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/rocketmq-dashboard#5064 ·