我即将发布我的游戏,但遇到了障碍.我不明白我被要求做什么,我无法找到答案或解决方案.这就是它要求我做的事情:
FINAL CHECKS
None of your Android linked apps that support Android tablet are set as preferred for new players
None of your Android linked apps that support Android tv are set as preferred for new players
Run Code Online (Sandbox Code Playgroud)
我不知道如何设置preffered给玩家的东西.有人可以帮帮我吗?
android google-play google-play-services google-play-games google-play-developer-api
我使用了google play开发者控制台,并希望设置API访问权限.我之前有一个谷歌开发人员项目所以我想添加现有的项目.
我按照文档链接:
使用现有的API项目
如果您已经是Google Play Developer API的用户,则可以按照以下步骤链接到现有的API项目.如果未列出您要链接到的API项目,请确定您的Google Play开发者控制台帐户已被指定为所有者,并且已启用Google Play Developer API.
转到Google Play开发者控制台上的API访问页面.
接受API服务条款.
选择您要链接的项目.
单击链接.
您的Google Play开发者控制台现已链接到API项目.
但是,在我的API访问页面中,只有Create new project按钮,我不知道按照步骤链接现有的.没有列出项目.
有人有想法吗?谢谢.
根据Google Play Developer API的文档,我应该可以批量插入或更新请求.但是,我遇到的问题似乎是文档错误,API坏了,或者我只是遗漏了一些东西.
我正在POST访问URL:https://www.googleapis.com/androidpublisher/v2/applications/inappproducts/batch?access_token=<my token here>&autoConvertMissingPrices=true'
MyContent-Type is set to:application/json
And the body of myPOST`如下:
{
"entrys": [{
"batchId": "<my batch id>",
"methodName": "update",
"inappproductsupdaterequest": {
"inappproduct": {
"packageName": "<my package name>",
"sku": "<my product sku>",
"status": "active",
"purchaseType": "managedUser",
"defaultPrice": {
"priceMicros": "<my price>",
"currency": "USD"
},
"listings": {
"en-US": {
"title": "<my title> ",
"description": "<my description>"
}
},
"defaultLanguage": "en-US"
}
}
}]
}
Run Code Online (Sandbox Code Playgroud)
当我POST这样,我得到以下错误:
{ …Run Code Online (Sandbox Code Playgroud) 使用 Java Google Play Developer API(版本 3)并请求有效购买令牌的购买信息时,出现以下异常。API 调用返回 400 Bad Request 响应以及以下消息。
{
"code" : 400,
"errors" : [ {
"domain" : "global",
"message" : "Invalid Value",
"reason" : "invalid"
} ],
"message" : "Invalid Value"
}
Run Code Online (Sandbox Code Playgroud)
遗憾的是没有进一步的信息。我不知道什么值是无效的。
首先,我们已就此事联系了 Google 支持人员。不幸的是,我们与 Google 支持人员来回沟通了近 2 个月,但他们仍然没有表明他们正确理解了我们的问题所在。每次他们回复时,他们都会给我们提供与 Google Play Developer API 实际上无关的建议,即使在多次彻底解释问题之后也是如此。这是我 20 年来最令人沮丧的支持经历。谷歌的支持显然不会有任何帮助。
其次,我们已经成功链接了 Google Play 帐户和后端。所有必要的配置均已完成并且可以正常工作。在我们的后端,每当进行 Android 应用内购买时,我们都会收到来自 Google Play 的通知,这些通知包含购买令牌。这需要付出一些巨大的努力,但我相信现在一切都是正确的,我们的服务帐户配置正确,并且所有权限等都很好。
我能够成功调用返回可用应用内购买产品列表的 API。我获得了我们在 Google Play 中配置的产品的完整且正确的列表,供用户在我们的应用程序中购买。为了进行此调用,我们必须提供凭据,并且我假设当我们进行此调用时服务器正在验证这些凭据。由于我可以成功拨打此电话,因此我假设“无效值”与我们的凭据无关。我们正在使用为特定服务帐户创建的 Google 生成的 JSON 文件(不使用 p12 文件)。
我搜索了 StackOverflow 以及互联网的其余部分来寻找有关此问题的信息。我发现许多页面都指出了相同或类似的问题,但使用的是旧版本的 Google Play Developer API,这显然会导致不同的情况。提供的解决方案似乎不适用于 v3 …
java android in-app-purchase google-play-developer-api android-inapp-purchase
当前,我使用一台服务器来接收GCP发布/ Purchase.Subscriptions:acknowledge订阅消息,并且我想执行一次呼叫以确认在服务器收到通知后尚未确认的订阅。
这是方案...
用户购买订阅A,期限为30天,然后升级到1年。在服务器端,当30天期限的订阅即将到期时,将收到升级交易的通知。当服务器使用检索信息时,Purchase.Subscription:Get您可以看到此升级后的交易的acceptState为0,因此服务器调用Purchase.Subscription:Acknowledge以确认此交易,但问题是它返回一条错误消息,说明“订阅购买不归用户所有” 。
错误消息如下所示:
{
"error": {
"errors": [
{
"domain": "androidpublisher",
"reason": "subscriptionNotOwnedByUser",
"message": "The subscription purchase not is owned by the user."
}
],
"code": 400,
"message": "The subscription purchase not is owned by the user."
}
}
Run Code Online (Sandbox Code Playgroud)
有人有同样的问题吗?
另一个信息是,在Android App中,我DEFERRED在BillingFlowParams类中将按比例分配模式设置为,这就是为什么我不能立即在App中确认新交易的原因,因为新交易的状态尚未被购买,我可以仅在服务器端进行确认。
android in-app-purchase google-play google-play-developer-api
我们最近在Google Play控制台中收到此错误:
ACTION REQUIRED: Your server-side billing confirmations will stop working on December 1, 2019
Your app is using an old version of the Google Play Developer API. From December 1 2019, versions 1 and 2 of this API will no longer be available, and any calls to these versions will fail. Update to version 3 before this date. Note that this is not related to the AIDL/Billing Library deprecation. Learn more
Run Code Online (Sandbox Code Playgroud)
但是,我们当前在服务器中使用正确的API版本3来验证我们的应用内购买帐单收据。我们正在使用的应用程序内购买库还在客户端公开了该功能,并且我已经确认其源代码也正在使用v3。两者都在呼叫请求https://www.googleapis.com/androidpublisher/v3/applications/...
我们已经在生产中验证了真实的购买,因此我知道它的功能,并且我试图了解问题的根源在哪里。
我在这里还读到这可能是由于第三方插件造成的。
如果有的话,我们最近已经集成了Facebook SDK,该软件表示可以为我们执行android收据验证,以确保它没有报告任何欺诈/沙盒购买行为。 …
android facebook-android-sdk google-play-developer-api google-play-console
使用 Google Play Developer API,似乎有很多方法可以对现有应用程序进行编辑。
https://developers.google.com/android-publisher/api-ref
通过查看 API,似乎所有 API 请求都使用“packageName”。
例如
POST https://www.googleapis.com/androidpublisher/v3/applications/packageName/edits
Run Code Online (Sandbox Code Playgroud)
这表明您已经需要一个可用的应用程序,并且至少已上传 1 个 APK。
这非常适合编辑现有应用程序。但是,如何使用 API 创建新应用程序而不添加现有列表或 APK?
我正在应用程序更新中实施。谁能指导我如何在 Play 控制台上设置灵活或立即更新请求的更新优先级
我开始使用 Golang 来使用 Google Play 开发者报告 API(https://pkg.go.dev/google.golang.org/api@v0.79.0/playdeveloperreporting/v1beta1),并面临与 API 范围相关的问题:
代码:
package main
import (
"context"
"encoding/json"
"fmt"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"golang.org/x/oauth2/jwt"
"google.golang.org/api/option"
"google.golang.org/api/playdeveloperreporting/v1beta1"
"io/ioutil"
)
const (
GoogleApplicationCredentials = "path_to_service_account_credentials"
ProjectID = "apps/{project_id}"
)
func main() {
tokenSource, err := getTokenSource(GoogleApplicationCredentials)
if err !=nil {
panic(err)
}
if err := getAnomalies(tokenSource, ProjectID); err != nil {
panic(err)
}
}
func getAnomalies(tokenSource oauth2.TokenSource, projectID string) error {
ctx := context.Background()
service, err := playdeveloperreporting.NewService(ctx, option.WithTokenSource(tokenSource))
if err != nil { …Run Code Online (Sandbox Code Playgroud) google-api go google-play-developer-api google-api-go-client
I need to verify purchases of my android App from my AWS lambda in python.
I have seen many posts of how to do so and the documentation and here is the code I have written :
url = f"{google_verify_purchase_endpoint}/{product_id}/tokens/{token}"
response = requests.get(url=url)
data = response.json()
logging.info(f"Response from Google Play API : {data}")
Run Code Online (Sandbox Code Playgroud)
When I do so, it throws a 401 status code not allowed. Alright, I have created a service account to allow the request with OAuth, but how …
python android in-app-purchase google-api-python-client google-play-developer-api