Để thảo luận và đưa ra ý kiến phản hồi về các sản phẩm của chúng tôi, hãy tham gia kênh Discord chính thức của Google Ads trong máy chủ Cộng đồng quảng cáo và đo lường của Google.
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.
Bạn cần có một dự án trên Google API Console để tạo thông tin đăng nhập OAuth 2.0 và bật Google Ads API cho ứng dụng của mình.
Thông tin xác thực là cần thiết để máy chủ Google xác thực và uỷ quyền cho người dùng Google Ads. Thông tin đăng nhập này cho phép bạn tạo mã thông báo OAuth để dùng trong các lệnh gọi đến API.
Mặc dù bạn có thể dùng một mã thông báo nhà phát triển cho nhiều dự án, nhưng mỗi dự án chỉ có thể dùng một mã thông báo nhà phát triển.
Chọn hoặc tạo một dự án trên Bảng điều khiển API của Google
Làm theo hướng dẫn để tạo một dự án. Bạn không bắt buộc phải bật tính năng thanh toán cho dự án. Nếu bạn đã bật tính năng thanh toán, hãy chọn một tài khoản thanh toán cho dự án mới. Bạn không phải trả phí khi sử dụng Google Ads API, nhưng có hạn mức về tổng số dự án trên đám mây.
Bật API Google Ads trong dự án của bạn
Để bật Google Ads API trong dự án của bạn, hãy làm theo các bước sau:
Mở Thư viện API trong Google API Console. Nếu bạn nhận được lời nhắc, hãy chọn dự án của bạn hoặc tạo một dự án mới. Thư viện API liệt kê tất cả những API có sẵn, được nhóm theo nhóm sản phẩm và mức độ phổ biến.
Sử dụng chức năng tìm kiếm để tìm Google Ads API nếu API này không xuất hiện trong danh sách.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eBefore making API calls, you must create an OAuth 2.0 client ID and client secret within a Google API Console project and note their values.\u003c/p\u003e\n"],["\u003cp\u003eYou need to configure an OAuth consent screen to define what users see regarding your project's access and data usage.\u003c/p\u003e\n"],["\u003cp\u003eTo use the Google Ads API, you must enable it within your Google API Console project using the API Library.\u003c/p\u003e\n"],["\u003cp\u003eCreating a client ID and client secret requires selecting an application type (Desktop app or Web application) and saving the generated credentials.\u003c/p\u003e\n"]]],[],null,["# Set up a Google API Console project\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nYou need a Google API Console project for creating OAuth 2.0 credentials, and\nenabling the Google Ads API for your app.\n\nThe credentials are needed for the authentication and authorization of Google Ads\nusers by Google servers. These credentials let you generate OAuth tokens to be\nused in calls to the API.\n\nAlthough you can use a single developer token for multiple projects, each\nproject can use only a single developer token.\n\nSelect or create a Google API Console project\n---------------------------------------------\n\n| **Note:** If you already have a Google API Console project and want to use it to create credentials, you can skip to [Enable the Google Ads API in your project](#enable-api). However, you shouldn't have used this project for Google Ads API access in the past with another developer token.\n\nFollow the [instructions](/workspace/guides/create-project#project)\nto create a project. [Enabling billing for your project](/workspace/guides/create-project#billing)\nis optional. If you have billing enabled, select a billing account for the new\nproject. There is no charge for using the Google Ads API, but there is a quota on the\ntotal number of Cloud projects.\n\nEnable the Google Ads API in your project\n-----------------------------------------\n\nTo enable the Google Ads API in your project, follow these steps:\n\n1. [Open the API Library](https://console.cloud.google.com/apis/library) in the Google API Console. If prompted, select your\n project or create a new one. The API Library lists all available\n APIs, grouped by product family and popularity.\n\n2. Use search to find the Google Ads API if it isn't visible in the list.\n\n3. Select the Google Ads API, then click the **Enable** button.\n\n[Enable Google Ads API](https://console.cloud.google.com/flows/enableapi?apiid=googleads.googleapis.com)"]]