Google Ads API 中的 OAuth2
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
ondemand_video
视频:观看 2019 年研讨会的 OAuth2 讲座
所有 Google Ads API 调用都必须通过 OAuth2 授权。借助 OAuth2,您的 Google Ads API 客户端应用就能够访问用户的 Google Ads 帐号,而无需处理或存储用户的登录信息。
您必须完成以下步骤才能对 Google Ads API 请求进行授权。
为 Google Ads API 配置 Cloud 项目
在 Google Ads API 中为 OAuth 配置客户端库
此外,我们还提供了相关主题的支持材料。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-27。
[null,null,["最后更新时间 (UTC):2025-08-27。"],[[["\u003cp\u003eAll Google Ads API calls require authorization through OAuth2, safeguarding user login information.\u003c/p\u003e\n"],["\u003cp\u003eAuthorizing requests involves configuring a Cloud project and a client library for OAuth in the Google Ads API.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize service accounts, delve into OAuth2 internals, and employ the OAuth Playground for advanced functionalities.\u003c/p\u003e\n"]]],[],null,["# OAuth2 in the Google Ads API\n\nondemand_video\n[Video: Check out the OAuth2 talk from the 2019 workshop](https://www.youtube.com/watch?v=2GWx6jI7Ib4&list=None&start=124)\n\nAll Google Ads API calls must be authorized through [OAuth2](http://oauth.net/2/).\nOAuth2 enables your Google Ads API client app to access a user's Google Ads account\nwithout having to handle or store the user's login info.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThe following steps must be completed to authorize requests to the Google Ads API.\n\n1. [Configure a Cloud project for the Google Ads API](/google-ads/api/docs/oauth/cloud-project)\n\n2. [Configure a client library for OAuth in the Google Ads API](/google-ads/api/docs/oauth/client-library)\n\nSupporting materials are also available for related topics.\n\n- [Using Service Accounts](/google-ads/api/docs/oauth/service-accounts).\n\n- Getting familiar with [OAuth2 internals for the Google Ads API](/google-ads/api/docs/oauth/internals).\n\n- Using the [OAuth Playground](/google-ads/api/docs/oauth/playground) to generate refresh\n and access tokens."]]