Google Local Services API 报告持续的服务器错误

问题描述

我正在尝试使用 Google Local Services API 下载帐户和详细的潜在客户报告,如 here 所述。我正在使用带有服务帐户的 Oauth2 身份验证。身份验证似乎没有遇到问题,因为我可以通过调用 local_services.authorization.fetch_access_token获取访问令牌,而且我没有收到任何类型的身份验证错误。但是,当我尝试获取潜在客户或客户报告时,我只会得到一个 Google::Apis::ServerError: Server error

我正在使用这些查询调用方法

local_services.search_detailed_lead_reports(query:'manager_customer_id:xxx-xxx-xxxx;customer_id:xxx-xxx-xxxx')

local_services.search_account_reports(query:'manager_customer_id:xxx-xxx-xxxx;customer_id:xxx-xxx-xxxx')

我仅使用 manager_customer_id 尝试过此操作,但仍然收到相同的结果。我也尝试使用 this question 中发布的这种格式:

query: "|manager_customer_id:xxx-xxx-xxxx | Get Account Report for Manager with id xxx-xxx-xxxx. |" 但是,这会导致无效请求错误删除帐户 ID 中的破折号也是如此。

包含日期参数仍会导致相同的服务器错误local_services.search_detailed_lead_reports(query:'manager_customer_id:xxx-xxx-xxxx;customer_id:xxx-xxx-xxxx',start_date_day:29,start_date_month:3,start_date_year:2021,end_date_day:30,end_date_month:3,end_date_year:2021)

最后,只是尝试使用我检索到的访问令牌使用 Curl 调用 API 仍然会导致 500 服务器错误

curl "https://localservices.googleapis.com/v1/accountReports:search?query=manager_customer_id:xxx-xxx-xxxx" -H "Authorization: Bearer TOKEN"

我的印象是 manager_customer_id 是查询字段中唯一需要的参数。这个假设我错了吗?我的 API 调用中还需要包含其他内容吗?如果我错误调用了 API,我可能会收到某种无效请求错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)