使用及測試社群連接器
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
開發 Community Connector 時,可在 Looker 中使用及測試
使用 Head Deployment
使用 Head Deployment
系統會根據 Apps Script 預設建立 Head Deployment,其中一律含有
現行運作中的程式碼版本
- 在 Apps Script 開發環境中,依序按一下「部署」>「部署」測試
,開啟「測試部署作業」對話方塊。

- 點選「Copy」即可複製「Head Deployment ID」。
- 如要在 Looker Studio 中載入連接器,請替換
HEAD_DEPLOYMENT_ID
下列連結的預留位置,以及連接器的主要部署作業
ID,然後在瀏覽器中前往以下連結:
https://lookerstudio.google.com/datasources/create?connectorId=HEAD_DEPLOYMENT_ID
如要進一步瞭解 Deployment,請參閱
「部署社群連接器」指南。
更新 Head Deployment 的程式碼
更新程式碼時,儲存 Apps Script 專案會一併更新
最新版本 / 主要部署。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\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*."]]