1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "inlineAds": [
10 {
11 "pageName": "Alpha Skin",
12 "adText": "Tired of dull, tired skin? Our serum fixes the problem in minutes.",
13 "startDate": "2026-09-01",
14 "videos": [{ "url": "https://example.com/v.mp4" }],
15 "ctaText": "Shop Now",
16 "linkUrl": "https://alphaskin.example/shop",
17 },
18 {
19 "pageName": "Alpha Skin",
20 "adText": "Save 40 percent this week. Premium quality serum, now on sale with free shipping.",
21 "startDate": "2026-06-01",
22 "images": ["https://example.com/a.jpg"],
23 "ctaText": "Shop Now",
24 "linkUrl": "https://alphaskin.example/sale",
25 },
26 {
27 "pageName": "Beta Gear",
28 "adText": "5 reasons ten thousand runners switched. Loved by customers everywhere, rated five stars.",
29 "startDate": "2026-08-15",
30 "endDate": "2026-10-01",
31 "images": ["https://example.com/b.jpg"],
32 },
33 {
34 "pageName": "Beta Gear",
35 "adText": "Introducing the brand new trail shoe. Our newest design is now available.",
36 "startDate": "2026-09-20",
37 "cards": [
38 { "image": 1 },
39 { "image": 2 },
40 { "image": 3 },
41 ],
42 },
43 {
44 "pageName": "Gamma Learn",
45 "adText": "How it works: learn the system step by step in this free guide and discover more.",
46 "startDate": "2026-09-10",
47 },
48 ],
49 "maxAds": 5000,
50}
51
52
53run = client.actor("delta_tools/ad-creative-pattern-analyzer").call(run_input=run_input)
54
55
56print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
57for item in client.dataset(run.default_dataset_id).iterate_items():
58 print(item)
59
60