Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Android Developer: `productId` argument required inconsistency

オープン
#32,796 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
api, mobile

調査の方向性

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
主要言語
Java
スター
725
フォーク
394
平均マージ
45分
マージ済み PR(30日)
240

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleapis/google-api-java-client-services のほかの issue

googleapis/google-api-java-client-services の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。