spark_ads_authorize_codes
Authorize 1..20 fresh TikTok Spark Ad authorization codes for one exact advertiser and return route-bound identity/item receipts. This tool performs the provider authorization immediately: call it only after the user explicitly supplies the codes and asks to authorize them. The server checkpoints each code before the provider call, stores only a tenant/advertiser-scoped fingerprint, executes serially, and never returns a raw authorization code.
REQUIRED: advertiser_id from assets_list_ad_accounts; auth_codes (1..20 strings); ad_names (the same length, in matching order). Each result carries request_index. Pass every status=ok row's identity_id, identity_type, tiktok_item_id, and spark_receipt unchanged to campaigns_quick_create or its batch variant, and set ad_params.ad_format from that row's supported_ad_formats.
SAFETY: never call for discovery and never automatically retry the whole request. If authorization_applied is true, or the row is outcome_uncertain, do not resubmit that code; use its support_ref for receipt reconciliation or call spark_ads_list_posts read-only. Retry only a row explicitly marked authorization_applied=false and retryable=true, after the stated backoff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_names | Yes | ||
| auth_codes | Yes | ||
| advertiser_id | Yes |