Delete a post’s Spark-Ads authorization code
delete_tiktok_post_ad_authorizationDelete the Spark-Ads authorization code for a TikTok post to prevent new ad creation. Requires confirmation; pause active campaigns or ads using the post first.
Instructions
Delete the Spark-Ads authorization code for a post the authorized account owns. CONFIRM-GATED, and not because it spends: ads already built on the post keep running, but no NEW ad can be built against it until a fresh code exists, and TikTok REFUSES this outright while any campaign or ad using the post is still ACTIVE — pause those first. Calling it without confirm changes nothing and returns the sentence describing exactly what would happen. THE READ-BACK INVERTS: proof of success is that TikTok no longer reports a code for the post, and a code that is still there is reported as not confirmed rather than done. NEEDS THE TIKTOK ACCOUNT AUTHORIZATION (see tiktok_account_status).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | the TikTok post id | |
| confirm | No | REQUIRED true — call without it first to see exactly what would change |