templates_create
Create a new saved template for the authenticated user. Mirrors Meta templates_create. adset_params is accepted as the Meta wire alias for adgroup_params (TikTok native); pass either — adset is the MCP wire name for what TikTok calls adgroup. Same shape on both products. Image templates may store ad_params.music_info={music_id:} with one nonempty ID of at most 256 characters. Select it with assets_list_music for the intended advertiser; omit music_info to select music during create preparation. Store media selections on the create request, not in the template.
REQUIRED: name (str, <= 200 chars). OPTIONAL: tags (list[str]), campaign_params (dict), adset_params / adgroup_params (dict), ad_params (dict), source_advertiser_id (str), source_adset_id / source_adgroup_id (str), source_receipt (str; required for reverse-engineered source fields), source_campaign_name (str), source_adset_name / source_adgroup_name (str), campaign_naming (str), adset_naming / adgroup_naming (str). EXAMPLE: templates_create({"name": "WebConv VN", "tags": ["vn", "prospecting"], "campaign_params": {"objective_type": "WEB_CONVERSIONS"}, "adset_params": {"bid_type": "BID_TYPE_NO_BID"}})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| tags | No | ||
| ad_params | No | ||
| adset_naming | No | ||
| adset_params | No | ||
| adgroup_naming | No | ||
| adgroup_params | No | ||
| source_receipt | No | ||
| campaign_naming | No | ||
| campaign_params | No | ||
| source_adset_id | No | ||
| source_adgroup_id | No | ||
| source_adset_name | No | ||
| source_adgroup_name | No | ||
| source_advertiser_id | No | ||
| source_campaign_name | No |