Skip to main content
Cookbook Marketing Product Feed PRO

Keep the Wrong Products Out of Your Google Shopping Feed with Product Feed PRO and AI

Exclude filters tried on a draft copy and the drop checked against your products, then added to the real feed after your yes.

Difficulty Intermediate
Time ~10 min

Prerequisites

A WooCommerce store connected to WPVibe running Product Feed PRO for WooCommerce 13.5.9 or newer (tested on 13.5.9, free) on WordPress 6.9 or newer, with an administrator account. A product feed already set up in Product Feed PRO.

The prompt
My WooCommerce store uses Product Feed PRO by AdTribes. Keep [describe the products, for example: everything in the Experiences category, or anything under 20 in my store currency] out of my [feed name, for example Google Shopping] feed.

1. Run discover_abilities with category adtribes. If the abilities this needs are not there, stop and tell me to install or update the free Product Feed PRO for WooCommerce plugin by AdTribes (13.5.9 or newer, with WooCommerce active, on WordPress 6.9 or newer).
2. Run adtribes/list-feeds. If more than one feed could be the one I mean, show them and ask which. Note its id (FEED_ID). Run adtribes/get-feed with feed_id FEED_ID and tell me in plain words which filters it already has (feed_filters). If filters is not empty while feed_filters is empty, the feed's filters are in the plugin's older format, and adding a filter now would stop them applying: stop and ask me to open the feed's Filters tab in Product Feed PRO once, which converts them, then to run this again.
3. Turn my description into exclude conditions. Run adtribes/list-feed-attributes to find the attribute names, such as price for the price. For a category, Product Feed PRO matches the category's slug, not its name: get the categories with rest_api GET /wc/v3/products/categories with per_page 100 (and page 2 and up while there are more), and use attribute categories, condition equals and the category's slug as the value. A category filter only catches products assigned to that exact category: if it has subcategories (categories whose parent is its id), ask me whether to add a condition for each of them too. Conditions include contains, equals, less_than, greater_than and is_empty. Then count the products the conditions should leave out: for a category, rest_api GET /wc/v3/products with category set to its id, status publish and per_page 100 (and page 2 and up while there are more), keeping only products whose categories include that exact id; for a price, the same call with max_price or min_price instead of category. For a less_than or greater_than condition, leave out products priced exactly at the limit. Count each product once (EXPECTED); no ability shows whether Include product variations is ticked, so if any of those products is variable, ask me whether it is ticked in the feed's General tab; if it is, a variable product shows in the feed once per variation, so count its published variations instead. Show me each condition (attribute, condition, value, and the category's name next to a slug), EXPECTED and up to 20 of those products' names, and wait for my yes.
4. On my yes, try them on a copy first: run adtribes/clone-feed with feed_id FEED_ID and title Test copy of the feed's title. The copy is a draft with the same settings. Note its feed_id (COPY_ID) and file_url. The copy keeps the source feed's refresh schedule even as a draft: run adtribes/set-feed-schedule with feed_id COPY_ID and refresh_interval set to an empty string, so the test copy never refreshes on its own.
5. For each condition, run adtribes/add-filter-rule with feed_id COPY_ID, type filter, mode exclude, the attribute, condition and value, and group_logic or, so a product matching any one condition is left out.
6. Regenerate the copy. First run adtribes/get-feed-stats with feed_id COPY_ID and note its last_updated, then run adtribes/regenerate-feed with feed_id COPY_ID. Generation is queued and runs in the background, so the status can stay ready with the old last_updated for a minute or more: run adtribes/get-feed-stats about every 30 seconds until last_updated has changed and status is ready, or has_error is true, at most 10 times. If it hasn't finished by then, tell me it is still queued and stop there; when I say continue, pick up from this step without starting over. In adtribes/get-feed-stats, products_count is the total before filters, and products_in_feed is counted from the finished file a minute or two after the status turns ready, so don't rely on the counts right away. A new copy also starts with the real feed's count until that background count runs. So after the copy shows ready, run adtribes/get-feed-stats on FEED_ID once, then on COPY_ID about every 30 seconds, at most 6 times, until its products_in_feed differs from the real feed's. Take the real feed's products_in_feed minus the copy's (DROPPED) and tell me DROPPED next to EXPECTED. If DROPPED is still 0 while EXPECTED is not, the counts may not have updated yet: if you can fetch files, count the items in the copy's file and use that instead; if not, give me both file links and stop. If the copy's file really left out nothing, stop and change nothing: if a category value is not a slug from step 3, tell me which; if they are all slugs, tell me to check whether the Use legacy filters and rules setting is on in Product Feed PRO's settings, which makes it ignore filters added this way. If DROPPED is below 0, the real feed's file may be out of date or an existing filter stopped working in the copy: tell me both last_updated values and don't apply anything; if the real feed's file is the older one, offer to regenerate the real feed (it keeps all its settings) and compare again. If DROPPED and EXPECTED differ otherwise, say so and ask me before going on. If the feed has 200 products or fewer and you can fetch files, also fetch both file_urls and list the products in the real feed but not in the copy.
7. Ask me to confirm. On my yes, run adtribes/add-filter-rule on FEED_ID with exactly the same filters, then regenerate it the same way, noting last_updated first and waiting until it changes and status is ready.
8. Don't delete the copy. Tell me it stays as a draft that never refreshes, and that I can delete Test copy of the feed's title in Product Feed PRO when I'm done.
9. List each filter you added to the real feed so I can spot-check it.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Keep the Wrong Products Out of Your Google Shopping Feed with Product Feed PRO and AI” recipe from the WPVibe cookbook on my connected site.

Your product feed sends everything you sell: services, experiences, gift cards, the cheap add-ons that cost more in clicks than they earn. Product Feed PRO can leave them out with filters, but its filter builder takes a while to learn, and a wrong filter can empty a feed Google is already reading.

The AI turns your description into exclude filters and shows them to you in plain words. If the feed still has filters saved in the plugin’s older format, it stops and asks you to open the feed’s Filters tab once in Product Feed PRO first. It tries them on a draft copy of the feed first, generates the copy and checks how many products dropped out against the products your description covers. Only after your yes does it add the same filters to the real feed and regenerate it.

Describe what to leave out, for example a category name or a price under a set amount. The AI looks up each category’s slug, which is what Product Feed PRO matches, and asks before it covers subcategories too. Product Feed PRO’s product counts update a minute or two after a feed is generated, so the prompt waits before it compares them. The test copy stays as a draft that never refreshes; delete it in Product Feed PRO when you’re done. To set up a feed first, use this recipe.

Outcome

Your feed leaves out the products you described, after you saw exactly which ones drop out.