Extend a post’s Spark-Ads authorization
extend_tiktok_post_ad_authorizationAdd days to a TikTok post's Spark Ad authorization window (7,30,60,180,365), extending its promotable period. Regenerates the ad code if the post was deleted.
Instructions
Extend how long a post the authorized account owns stays promotable as a Spark Ad — and REGENERATE its code if it was deleted. THE DAYS ARE ADDED, NOT SET: TikTok's own example is that a post with 180 days remaining, extended by 180, ends up at 360 — so passing '365' to a post that already has time left does not mean 'expires in a year'. Must be one of 7, 30, 60, 180, 365. Ad authorization has to be ON already (set_tiktok_post_ad_authorization) or TikTok refuses. The reply reads the new window back, because TikTok's own response body is empty. NEEDS THE TIKTOK ACCOUNT AUTHORIZATION (see tiktok_account_status).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | the TikTok post id | |
| authorizationDays | No | 7 | 30 | 60 | 180 | 365 — ADDED to whatever is left, not set as an absolute. Default 30. |