使用和测试社区连接器
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
开发社区连接器时,您可以在 Looker 中使用和测试连接器
Studio 中的 Head 部署。
使用 Head 部署
默认情况下,Head 部署在 Apps 脚本中创建,其中始终包含
代码的当前工作版本。
- 在 Apps 脚本开发环境中,点击部署 >测试
部署以打开测试部署对话框。

- 点击 Copy(复制)以复制 Head Deployment ID。
- 如需在 Looker Studio 中加载连接器,请将
HEAD_DEPLOYMENT_ID
占位符(位于以下链接中)与您的连接器的 Head 部署相关联
ID,然后在浏览器中访问相应链接:
https://lookerstudio.google.com/datasources/create?connectorId=HEAD_DEPLOYMENT_ID
如需详细了解部署,请查看
部署社区连接器指南。
更新 Head 部署的代码
更新代码时,保存 Apps 脚本项目还会更新最新版本/Head 部署。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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*."]]