OAuth2 trong API Google Ads
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
ondemand_video
Video: Xem bài nói chuyện về OAuth2 trong hội thảo năm 2019
Tất cả lệnh gọi API Google Ads phải được ủy quyền thông qua OAuth2.
OAuth2 cho phép ứng dụng khách API Google Ads truy cập vào tài khoản Google Ads của người dùng mà không cần xử lý hoặc lưu trữ thông tin đăng nhập của người dùng.
Bạn phải hoàn thành các bước sau để uỷ quyền cho các yêu cầu gửi tới API Google Ads.
Định cấu hình dự án Cloud cho API Google Ads
Định cấu hình thư viện ứng dụng cho OAuth trong API Google Ads
Tài liệu hỗ trợ cũng có sẵn cho các chủ đề có liên quan.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-27 UTC."],[[["\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."]]