Create Template
create_templateCreate a custom template in a Google Tag Manager workspace by providing account, container, workspace IDs and the template definition in sandboxed JavaScript format.
Instructions
Create a custom template in a workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | CustomTemplate resource, e.g. {"name": "My pixel", "templateData": "___INFO___\n..."}. templateData is the full template definition in Tag Manager's sandboxed JavaScript format, including its ___INFO___, ___TEMPLATE_PARAMETERS___ and ___SANDBOXED_JS_FOR_WEB_TEMPLATE___ sections. | |
| account_id | Yes | Numeric Tag Manager account ID. | |
| container_id | Yes | Numeric container ID. | |
| workspace_id | Yes | Numeric workspace ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||