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.
Hướng dẫn này sẽ chỉ cho bạn cách thiết lập OAuth2 để truy cập API bằng
thông tin đăng nhập riêng bằng tài khoản dịch vụ.
Bạn chỉ cần thực hiện các bước này một lần, trừ phi bạn thu hồi hoặc xoá OAuth2
thông tin xác thực.
Thêm khoá riêng tư JSON và email mạo danh vào cấu hình
Đặt đường dẫn tệp JSON của khoá riêng tư và email mạo danh trong cấu hình của bạn.
Nếu bạn đang sử dụng tệp google-ads.yaml, chuỗi YAML hoặc dict, hãy thêm
sau:
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-11-24 UTC."],[[["This guide explains how to set up OAuth2 for API access using service accounts, a one-time process unless credentials are revoked."],["The setup requires a Google Workspace domain and a service account with domain-wide delegation access granted by a super administrator."],["You need to generate a service account ID and a JSON file, then add the private key JSON file path and impersonated email to your configuration."],["Configuration can be set using a `google-ads.yaml` file, YAML string, `dict`, or environment variables."],["The library prioritizes credentials for desktop or web app flows, so ensure these are not present if you want to use Service Account authentication."]]],[]]