-4

我在尝试开始通过 API 创建的调查时收到 503 错误(POST https://www.googleapis.com/consumersurveys/v2/surveys)。这是我可以解决的问题还是 GCS 需要更改后端计费?

要求

POST /consumersurveys/v2/surveys/pbn22yzmfnvaqwsiz2k5jbgx3i/start

回复

HTTP/1.1 503 Service Unavailable
Content-length: 732
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
Expires: Tue, 24 May 2016 20:56:17 GMT
Vary: Origin,X-Origin
Server: GSE
Cache-control: private, max-age=0
Date: Tue, 24 May 2016 20:56:17 GMT
X-frame-options: SAMEORIGIN
Content-type: application/json; charset=UTF-8
{
  "error": {
    "code": 503, 
    "message": "Billing Transaction Error: Account must be a service account with billing enabled to start/stop a survey. Use 2-Legged OAuth and contact 'gcs-api@google.com' to enable billing.. Request Id: 5744bff000ff04244be71b067a0001737e3430322d747269616c320001707573682d30352d32342d72303400010111", 
    "errors": [
      {
        "domain": "global", 
        "message": "Billing Transaction Error: Account must be a service account with billing enabled to start/stop a survey. Use 2-Legged OAuth and contact 'gcs-api@google.com' to enable billing.. Request Id: 5744bff000ff04244be71b067a0001737e3430322d747269616c320001707573682d30352d32342d72303400010111", 
        "reason": "BILLING_TRANSACTION_ERROR"
      }
    ]
  }
}
4

1 回答 1

0

目前我们仅支持使用 2LO 服务帐户开始调查。要开始调查,请通过访问设置服务帐户

https://console.cloud.google.com/apis/credentials

然后联系 gcs-api@google.com 并请求将该服务帐户添加到您公司的共享余额中。代表服务帐户发起调查的所有调用都不会计入该共享余额。

在创建调查或更新所有者字段时,您必须在所有者中包含将开始调查的服务帐户以及在调查出现问题时可以联系的非服务人员帐户。

于 2016-05-26T18:56:48.660 回答