Android Developer: `productId` argument required inconsistency
还没有人认领这个 Issue。
评估
调研方向
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 分钟
- 30 天内合并 PR
- 240
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 一周以上 新手友好度 35/100
googleapis/google-api-java-client-services#26505 · 7 条评论 · 1 个 reaction ·
-
priority: p3 type: bug
难度 3/5 1-2 天 新手友好度 35/100
查看 googleapis/google-api-java-client-services 的全部 Issue
相似的 Issue
-
certification
难度 1/5 1 小时以内 新手友好度 80/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's 未关闭bug ecr
难度 2/5 1-3 小时 新手友好度 75/100
-
Needs: Triage Type: Feature request
难度 2/5 1-3 小时 新手友好度 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 65/100
github/copilot-sdk#2760 ·