1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "feedText": "<?xml version=\"1.0\"?><rss xmlns:g=\"http://base.google.com/ns/1.0\"><channel><item><g:id>SMOKE-1</g:id><g:title>Smoke Test Shoe</g:title><g:description>A comfortable smoke-test shoe.</g:description><g:link>https://example.com/products/smoke-shoe</g:link><g:image_link>https://example.com/images/smoke-shoe.jpg</g:image_link><g:brand>ExampleBrand</g:brand><g:price>49.99 USD</g:price><g:availability>in_stock</g:availability></item><item><g:id>SMOKE-BAD</g:id><g:title>Broken</g:title><g:description>Missing link</g:description><g:image_link>https://example.com/x.jpg</g:image_link><g:brand>ExampleBrand</g:brand><g:price>1.00 USD</g:price><g:availability>in_stock</g:availability></item></channel></rss>",
10 "sellerName": "Example Store",
11 "targetCountries": ["US"],
12 "formatHint": "auto",
13 "isAdsEligible": True,
14 "excludeInvalidRows": True,
15 "maxProducts": 50,
16 "schemaVersion": "openai-ads-2026-09-09",
17}
18
19
20run = client.actor("kondasviktor/openai-ads-feed-converter").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27