Read a post’s Spark-Ads authorization status
get_tiktok_post_ad_authorizationRead a TikTok post's Spark Ads authorization status, including code and expiry, to avoid building campaigns on expired or missing authorizations.
Instructions
Read the Spark-Ads authorization status of a post the authorized account owns — whether it is promotable, its authorization CODE, and the window the authorization runs for. A SPARK AD CANNOT OUTLIVE ITS AUTHORIZATION, so check the end time before building a campaign around a post. TIKTOK ERRORS RATHER THAN ANSWERING when a post has no authorization code at all, so a not-found style refusal from here almost always means Ad authorization was never turned on (or the code was deleted) — turn it on with set_tiktok_post_ad_authorization — and not that anything is broken. NEEDS THE TIKTOK ACCOUNT AUTHORIZATION (see tiktok_account_status). Read-only, free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | the TikTok post id |