【发布时间】:2019-02-03 13:11:20
【问题描述】:
为了从他们的 API 获取 Google Analytics 数据,我们使用了一个带有 p12 密钥的服务帐户,GA API 工作正常,但有时我收到 Rate Limit 错误,所以我打算更新我的限制来自控制台,但我只是忘记了以前用于该开发者控制台项目的电子邮件帐户。所以现在我只想知道有什么方法可以找出哪个 email 帐户与我的 Google Analytics Service 帐户的项目 ID 相关联?
目前,当超过该 GA API 的每日调用率时,我会收到此错误。
致命错误:未捕获的异常“Google_Service_Exception”与 message '调用 GET 时出错 https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A79X6089300&start-date=2019-01-31&end-date=2019-01-31&metrics=ga%3AuniqueEvents&dimensions=ga%3AeventLabel&filters=ga%3AeventCategory%3D%3DImage+Missing%3Bga%3AeventAction%3D%3D11%3Bga%3AuniqueEvents%3E2&start-index=1&max-results=1000: (403) 超出每日限额。配额将在午夜重置 太平洋时间 (PT)。您可以监控您的配额使用情况并调整限制 在 API 控制台中: https://console.developers.google.com/apis/api/analytics.googleapis.com/quotas?project=XXXXXXXXXXXX' 在 /var/www/html/GoogleServerApi/src/Google/Http/REST.php:79 堆栈中 跟踪:#0 /var/www/html/GoogleServerApi/src/Google/Http/REST.php(44): Google_Http_REST::decodeHttpResponse(Object(Google_Http_Request)) #1 /var/www/html/GoogleServerApi/src/Google/Client.php(499): Google_Http_REST::execute(对象(Google_Client), 对象(Google_Http_Request))#2 /var/www/html/GoogleServerApi/src/Google/Service/Resource 在 /var/www/html/GoogleServerApi/src/Google/Http/REST.php 在第 79 行
错误本身表示监控我的配额使用情况并在 API 控制台中调整限制,但我不记得我关联的电子邮件 ID。 所以我只需要帮助它如何通过我的项目 ID 获取关联的 EMAIL? 您也可以让我知道任何可以在此方面获得帮助的论坛或群组。
【问题讨论】:
标签: google-api google-oauth google-analytics-api service-accounts google-developers-console