向這個 Webhook 伺服器發出的要求會包含用於驗證服務帳戶「google-analytics-audience-export@system.gserviceaccount.com」的 ID 權杖。如要進一步瞭解 ID 權杖,請參閱 https://cloud.google.com/docs/authentication/token-types#id。針對 Google Cloud Functions,可讓您將函式設定為需要驗證。在 Cloud IAM 中,您必須將服務帳戶權限授予 Cloud Run 叫用者 (roles/run.invoker),以及用於通過 Google Cloud Functions 驗證的 Webhook 發布要求 Cloud Functions 叫用者 (roles/cloudfunctions.invoker) 角色。這個 API 可傳送 Webhook 通知給任意 URI;如果是 Google Cloud Functions 以外的 Webhook 伺服器,如果您不需要這個 ID,請忽略授權不記名標頭中的這個 ID 權杖。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-04-24 (世界標準時間)。"],[],["This document outlines the configuration for webhook notifications from the Google Analytics Data API. You can set up a webhook server (`uri`) to receive POST requests containing long-running operation resource updates in JSON format, along with a `sentTimestamp`. The `uri` must be HTTPS with a valid SSL certificate and is required for webhook notifications. Optionally, use a `channelToken` for source verification, which is included in the `X-Goog-Channel-Token` header. Notifications will include an ID token for authentication.\n"]]