Google Analytics(分析)API 密钥限制

Google Analytics API Key restriction

提问人:Alexander Zhidkov 提问时间:11/12/2023 更新时间:11/23/2023 访问量:34

问:

我正在尝试将 GCP API 密钥限制为运行 Firebase 应用所需的绝对最低限度。我收到此错误:Browser key (auto created by Firebase)

@firebase/analytics: Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID G-VBVFV9NYDB provided in the "measurementId" field in the local Firebase config. [Analytics: Dynamic config fetch failed: [403] Requests to this API firebase.googleapis.com method google.firebase.service.v1alpha.DynamicConfigService.GetDynamicWebConfig are blocked. (analytics/config-fetch-failed).]

我需要启用哪个 API 才能解决它?

Firebase 谷歌分析

评论

0赞 Leonardo Barbosa 11/14/2023
我有同样的问题。另:FirebaseError:安装:创建安装请求失败,出现错误“400 INVALID_ARGUMENT:请求包含无效参数”。(安装/请求失败)。
0赞 Leonardo Barbosa 11/14/2023
试过这个: stackoverflow.com/questions/58495985/... 没用。
0赞 Alexander Zhidkov 11/15/2023
您需要允许 Firebase Installations API @LeonardoBarbosa

答:

0赞 Alexander Zhidkov 11/23/2023 #1

启用解决了问题。Firebase Management API