templates_reverse_engineer
Reverse-engineer a template preview from one live TikTok adgroup. Fans out /campaign/get/ + /adgroup/get/ + /ad/get/ and returns an unsaved preview plus a signed source_receipt. Review the preview, then pass its extracted fields and source_receipt unchanged to templates_create before expiry. Mirrors Meta templates_reverse_engineer (Meta adset_id == TikTok adgroup_id — adset is the MCP wire name for what TikTok calls adgroup; either spelling is accepted). Image music is retained only when every actual image variant uses one unambiguous track. Video cover images and Spark post previews do not supply reusable image music. Conflicting or missing source tracks are omitted for target-specific selection.
REQUIRED: advertiser_id (str — TikTok advertiser_id this user owns), adgroup_id OR adset_id (str — TikTok adgroup_id; both names work). EXAMPLE: templates_reverse_engineer({"advertiser_id": "7390000000000000000", "adset_id": "1820000000000000000"})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adset_id | No | ||
| adgroup_id | No | ||
| advertiser_id | Yes |