Google Play开发人员API使用的区域属性是什么?

发布于 2025-02-03 05:51:47 字数 1006 浏览 1 评论 0 原文

我正在尝试使用Google Play开发人员API使用其余端点来修补订阅。

所需的查询参数为 forde> foodatedmask and grounsversion 。当我单击 egionversion 用于文档的文档时,它只是说:

代表用于使用的可用区域的字符串 指定的资源。

https://developers.google.com/android-puplisher.com/android-publisher/ API-REF/REST/V3/REGIANSVERION

基于该描述,我不确定除了具有字符串版本属性的对象外,它会期望什么样的值。当我省略 segionsversion 参数返回以下错误:

{
    "error": {
        "code": 400,
        "message": "Regions version should be set to the default value 2022/01.",
        "status": "INVALID_ARGUMENT"
    }
}

有人对如何使用此必需参数有任何想法或示例吗?

I am trying to use the Google Play Developer API to patch a subscription using the REST endpoint.

https://developers.google.com/android-publisher/api-ref/rest/v3/monetization.subscriptions/patch

The required query parameters are updatedMask and regionsVersion. When I click on the RegionsVersion for documentation it just says:

A string representing version of the available regions being used for
the specified resource.

https://developers.google.com/android-publisher/api-ref/rest/v3/RegionsVersion

Based on that description I'm not sure what kind of value it's expecting other than an object with a version property that is a string. When I omit the regionsVersion parameter is returns the following error:

{
    "error": {
        "code": 400,
        "message": "Regions version should be set to the default value 2022/01.",
        "status": "INVALID_ARGUMENT"
    }
}

Does anyone have any idea or an example of how this required parameter is intended to be used?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

桜花祭 2025-02-10 05:51:47

我遇到了同样的问题,我发现,由于它是S JSON对象,您必须使用查询参数设置其属性:

?updatemask = listings& empionsversion.version = 2022/01

此工作正常为我!

I had the same issue and I found that since it's s JSON object you'll have to set its property like that with query params:

?updateMask=listings®ionsVersion.version=2022/01

This worked fine for me!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文