Sử dụng và kiểm tra Trình kết nối cộng đồng
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.
Khi phát triển Trình kết nối cộng đồng, bạn có thể sử dụng và thử nghiệm Trình kết nối này trong Looker
Studio bằng cách sử dụng Triển khai đầu.
Sử dụng tính năng triển khai đầu
Triển khai tiêu đề được tạo theo mặc định trong Apps Script và sẽ luôn chứa
phiên bản hoạt động hiện tại của mã.
- Trong môi trường phát triển Apps Script, hãy nhấp vào Triển khai > Thử nghiệm
triển khai để mở hộp thoại Test triển khai.

- Nhấp vào Sao chép để sao chép Mã triển khai tiêu đề.
- Để tải trình kết nối trong Looker Studio, hãy thay thế
HEAD_DEPLOYMENT_ID
phần giữ chỗ trong liên kết sau với Triển khai phần đầu của trình kết nối
Mã nhận dạng và truy cập vào đường liên kết trong trình duyệt của bạn:
https://lookerstudio.google.com/datasources/create?connectorId=HEAD_DEPLOYMENT_ID
Để biết thêm thông tin về các đợt triển khai, hãy xem
Hướng dẫn về Triển khai Trình kết nối cộng đồng.
Cập nhật mã của bạn cho Triển khai đầu
Khi bạn cập nhật mã, việc lưu dự án Apps Script cũng sẽ cập nhật
Phiên bản mới nhất / Triển khai đầu.
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-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThe Head Deployment in Apps Script allows you to test your Community Connector directly within Looker Studio using the most recent version of your code.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize the Head Deployment, copy its ID and replace the placeholder in the provided link to access your connector in Looker Studio.\u003c/p\u003e\n"],["\u003cp\u003eSaving your Apps Script project automatically updates the Head Deployment with your latest code changes, ensuring you're always testing the most recent version.\u003c/p\u003e\n"]]],[],null,["# Use and test a Community Connector\n\nAs you develop your Community Connector, you can use and test it in Looker\nStudio using the Head Deployment.\n\nUsing Head Deployment\n---------------------\n\nThe Head Deployment is created by default in Apps Script and will always contain\nthe current working version of the code.\n\n1. In the Apps Script development environment, Click **Deploy \\\u003e Test\n deployments** to open the *Test deployments* dialog.\n2. Click *Copy* to copy the **Head Deployment ID**.\n3. To load your connector in Looker Studio, replace the `HEAD_DEPLOYMENT_ID` placeholder in the following link with your connector's **Head Deployment\n ID** and follow the link in your browser:\n\n https://lookerstudio.google.com/datasources/create?connectorId=\u003cvar translate=\"no\"\u003eHEAD_DEPLOYMENT_ID\u003c/var\u003e\n\nFor more information on deployments, view the\n[Deploy a Community Connector](/looker-studio/connector/deploy) guide.\n\nUpdate your code for Head Deployment\n------------------------------------\n\nAs you update your code, saving your Apps Script project will also update the\n*Latest Version / Head Deployment*."]]