# Changelog of Tiktok Ads Intelligence (`opspilot.cc/tiktok-ads-intelligence`) Actor

- **URL**: https://apify.com/opspilot.cc/tiktok-ads-intelligence/changelog.md
- **Full Actor documentation**: https://apify.com/opspilot.cc/tiktok-ads-intelligence.md

## Changelog

### \[0.5] - 2026-10-12

- The run can no longer be killed by the key-value store. Under
  `LIMITED_PERMISSIONS` — how Apify's automated QA and every API-triggered run
  starts an Actor — opening the store is refused with HTTP 403
  (`KeyValueStoreCollectionClient.getOrCreate`, path `/v2/key-value-stores`).
  That call sat in a `||` fallback chain and was never inside a `try/catch` of
  ours, so the throw ended the run with exit code 91 and a reported FAILED run
  with zero items. Every store open now goes through a wrapper that returns a
  no-op store instead of throwing, so the free-run counter and the run SUMMARY
  degrade and the actual work proceeds.
- The gate store's name-to-id lookup no longer depends on the store still being
  on the first page. There is no GET-by-name endpoint, so the lookup pages
  through `/v2/key-value-stores`; it used a fixed `limit=50`, which silently
  stopped containing gate stores once the account passed 50 of them — and the
  account creates a new default store on every run, so that list grows on its
  own. The lookup now pages (100 per page, up to 20 pages).
- Medians on an even-sized sample returned the upper-middle element, not the
  median. `arr[Math.floor(arr.length / 2)]` yields the larger of the two middle
  values, which biases the number upward — the exact bias a median exists to
  remove. It now averages the two middle values.

### \[0.4] - 2026-10-09

#### Changed

- README: added three sections before Quick start - what you can use it for, who it fits, and who it does **not** fit. The last section now names the Actor's real limits (what it cannot reach, which field is unavailable, which reading of a metric is wrong), so a buyer can tell whether it is the wrong tool before paying.

### 0.1.0 (2026-10-02)

- Initial release: TikTok Ads Intelligence.
- One run assembles three upstream calls:
  - Keyword-matched competitor ads (`search_ads`) with CTR, likes, days running, video URLs.
  - Top-performing ads spotlight (`top_ads_spotlight`) with creative pattern highlights.
  - Trending hashtags with popularity curves (`trends_hashtag_list`), 7/30/90-day windows.
- Run-level SUMMARY digest: topBrands, avgCtr, medianVideoDurationSec, objectiveMix.
- Free tier: 5 runs/day; paid users unlimited.
- Empty-result honesty: 0-match keywords produce a notice item and truthful SUMMARY, never placeholder rows.

### \[0.3] - 2026-10-03

#### Fixed

- Free-tier gate counter now persists across runs (moved to a named KV store). The default KV store is run-scoped on the Apify platform, so the previous 5 runs/day counter silently reset on every run.

### \[0.2] - 2026-10-03

#### Fixed

- Free-tier gate KV key now includes APIFY_USER_ID (per-user quota isolation instead of one shared counter).
- Runtime error/log wording sweep: upstream provider names removed from user-visible messages.
