向请求授权
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
当您的应用请求不公开的数据时,该请求必须经过有权访问相应数据并且已通过身份验证的用户授权。
当您的应用请求公开的数据时,该请求不需要经过授权,但需要附带标识符,如 API 密钥。
您的应用每次向 Google Ad Experience Report API 发送请求时,都需要通过在每个请求中添加 API 密钥来标识自己。
获取和使用 API 密钥
获取密钥
或者在“凭据”页面中创建一个 OAuth 客户端 ID。
在您获得 API 密钥后,您的应用便可在所有请求网址后附加查询参数 key=yourAPIKey
。
API 密钥可以安全地嵌入网址中,而无需进行任何编码。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):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,[]]