我尝试开始通过API(POST https://www.googleapis.com/consumersurveys/v2/surveys)创建的调查时收到有关结算的503错误。这是我可以解决的问题,还是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"
}
]
}
}
答案 0 :(得分:1)
目前,我们仅支持使用2LO服务帐户启动调查。要开始调查,请访问
设置服务帐户https://console.cloud.google.com/apis/credentials
然后与gcs-api@google.com联系,请求将该服务帐户添加到公司的共享余额中。代表服务帐户开展调查的所有电话都不会向该共享余额收费。
创建调查或更新所有者字段时,您必须在所有者中包含将开始调查的服务帐户以及在您的调查存在问题时可以联系的非服务人工帐户。