1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "adId": "AD100",
12 "advertiser": "Acme Retail",
13 "campaign": "Summer",
14 "status": "active",
15 "creativeCount": 1,
16 "date": "2026-10-12",
17 },
18 {
19 "adId": "AD101",
20 "advertiser": "Acme Retail",
21 "campaign": "Fall",
22 "status": "new",
23 "creativeCount": 1,
24 "date": "2026-10-12",
25 },
26 {
27 "adId": "AD210",
28 "advertiser": "North Shop",
29 "campaign": "Brand",
30 "status": "active",
31 "creativeCount": 1,
32 "date": "2026-10-12",
33 },
34 ],
35 "previousItems": [
36 {
37 "adId": "AD100",
38 "advertiser": "Acme Retail",
39 "campaign": "Summer",
40 "status": "active",
41 "creativeCount": 1,
42 "date": "2026-10-05",
43 },
44 {
45 "adId": "AD099",
46 "advertiser": "Acme Retail",
47 "campaign": "Spring",
48 "status": "removed",
49 "creativeCount": 1,
50 "date": "2026-10-05",
51 },
52 ],
53}
54
55
56run = client.actor("quanmatrix/meta-ad-creative-turnover-analyzer").call(run_input=run_input)
57
58
59print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
60for item in client.dataset(run.default_dataset_id).iterate_items():
61 print(item)
62
63