對要求進行授權
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
當您的應用程式要求私人資料時,這個要求必須取得可存取該資料的已驗證使用者的授權。
當您的應用程式要求公開資料時,這個要求不須取得授權,但須要附有 ID,例如 API 金鑰。
應用程式每次傳送 Google Ad Experience Report API 要求時,都必須加入 API 金鑰,藉此識別自己。
取得並使用 API 金鑰
取得金鑰
您也可以在「憑證」頁面中建立憑證。
取得 API 金鑰後,您的應用程式可以將查詢參數 key=yourAPIKey
附加到所有的要求網址。
API 金鑰可以安全地嵌入網址中,不需任何編碼。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間:2025-08-31 (世界標準時間)。"],[],["Applications interacting with the Google Ad Experience Report API must include an identifier with each request. For private data, user authorization is required. For public data, an API key suffices. To obtain an API key, users can get a key or create one on the Credentials page. Once obtained, the key should be appended to all request URLs using the `key=` parameter. The API key can be directly embedded and requires no encoding.\n"],null,[]]