When an expired discount code keeps appearing in AI answers, there is one cause: some copy of it is still live somewhere a system can read. The code might be gone from checkout, yet still printed on a guide page, still listed in a Merchant Center promotion, still sitting in a feed row, or still quoted in an old blog post. The assistant did not invent that code. It is reading a copy that is still there because you have not taken it down.
Treat a discount code the way you treat a product fact: one record, one end, and one routine that takes it out everywhere on the same day.
Platform screens change. If a menu name here does not match what you see, check the vendor docs linked in Sources for the current path.
What this guide covers
This guide walks through the full job in order. First, you make one record for every code. Second, you end the promotion in Merchant Center on the same day the code ends. Third, you remove the code from the feed the same day. Fourth, you sweep the site for the code. Fifth, you test the code at checkout, as a shopper would. Sixth, you ask the third parties to remove it, and record the answer.
A code with no end date attached will keep circulating. Take a code out of checkout and leave it in a promotion feed, and it will keep showing up. Take it out of every copy, including the ones you do not own.
Who does each step
Owner work is keeping the code list, ending the promotion, sweeping the site, testing the code at checkout, and asking third parties to remove it. Developer work is fixing a feed that does not regenerate, and fixing a template that prints a code from a stale record. If your platform updates the feed from the product record on its own, most of this guide is owner work. If it does not, get a developer in for the step that stays stale, rather than working around it by editing the output by hand.
Step 1: make one record for every code
Keep a single list of every live code: the code itself, the discount it gives, the products it applies to, the start, and the end. Nothing counts as a code unless it is on that list. Any code missing from the list is not live, and it has no business appearing anywhere public. A code that exists only in someone's head will be forgotten, and a forgotten code is one that keeps circulating long after it ended.
Step 2: end the promotion in Merchant Center on the same day the code ends
Open Merchant Center, find the promotion, and end it or remove it, so it no longer shows in Shopping ads and free listings. Google says you cannot extend the end of a promotion that has already expired, so do not try to revive it by editing the end. To run the same offer again, set up a new promotion with a fresh start and end. After the end, open the promotion list and check that the expired promotion is no longer in the live list.
Google says a promotion must be redeemable at checkout, and must expire within a set window after it starts. A promotion with no end is a promotion that was never set up properly.
Step 3: remove the code from the feed the same day
Remove the promotion_id from every product feed row that carried it, and regenerate the feed from the product record. A feed row that still carries a promotion_id keeps tying products to a promotion that is already over. Do not fix the feed by hand and leave everything else alone. Regenerate the feed, then go through the first export line by line and compare it with the product pages.
Step 4: sweep the site for the code
Search the shop for the code itself, and for the discount wording that went with it: guides, comparison pages, collection descriptions, blog posts, sale pages, banners, and the shipping and returns page if it mentions a code. Fix each one, or take the code out of it. A guide that prints a code goes wrong the day that code ends, so have guides link to the product page for the current offer rather than printing a code. Check the shop search too. A search result that still shows an expired code teaches shoppers and assistants the wrong offer.
Step 5: test the code at checkout, as a shopper would
Open the shop in a browser where you are not logged in, add a product the code was meant for, and enter the expired code at checkout. It ought to fail in a clear way, with a message saying the code has expired. If it still works, the code was never really ended, and the checkout is the copy that needs fixing. Fix the checkout before anything else, then run the sweep again. If a code still works when a shopper tries it, it has not really expired. That means it is a live code you simply forgot to end.
Step 6: ask the third parties to remove it, and record the answer
List the coupon sites, roundups, and old posts that still quote the code, and ask each one to remove it. You cannot make a third party take a code down, but you can ask, and you can write down the answer. When a third party will not take it down, make your own pages plain about it: the code is over, and any current offer is on the product page. The assistant will keep reading the third party, but at least your own pages will agree with each other.
Where expired codes hide
Expired codes hide in places you do not check every day, and each one is a copy a system can read. The first place is the sale page itself. A sale page that is left up after the sale ends, with the code still printed on it, will keep being read. Take the page down, or remove the code from it, on the same day the code ends. The second place is the email archive on your own site. If you publish past emails as web pages, a code in an old email becomes a live copy on your site. Remove the code from the archived page, or take the page down.
The third place is the product page. A product page that mentions a code in its description, or in a review that quotes the code, keeps the code alive. Check the description and the reviews, and remove the code from the description. You cannot edit a customer's review, but you can answer it, and you can make your own pages clear that the code has ended. The fourth place is the app or the plugin that generated the code. A discount app that still lists the code as active will keep applying it, or keep exporting it to the feed. Open the app, check the list, and end the code there as well.
The fifth place is the social post that announced the code. An old post on a social profile still lists the code, and a system that reads the profile can quote it. You cannot always edit an old post, but you can add a follow-up that says the code has ended, and you can link to the product page for the current offer. The sixth place is the marketplace listing. A listing on a marketplace you sell through may still show the code, even after you ended it in your own shop. Check the marketplace, and end the code there too, or ask the marketplace to remove it.
Machine-readable version you can copy
This section gives you a single copy-ready block, built only from fields and values verified in the vendor docs linked in Sources. Swap the example values for your own facts, and keep every fact identical to the product page.
That is what a product's feed row looks like once its promotion has ended. There is no promotion_id in that row any more. The fields in that row come from Google's product data specification. That row uses tabs to separate the values.
id title link price availability
example-toy-01 Example wooden train set https://[yourdomain.com]/products/example-train-set 59.00 USD in_stock
For the promotion itself, keep the Merchant Center record: a title, an ID, a start, and an end. Once the end has passed, the promotion is expired, and the way to run the offer again is to create a new promotion, not to stretch the old one. Keep the promotion record in the same list as the code, so they can never fall out of step.
Worked example: a toy shop with a code that would not die
Take a small toy shop that sells wooden train sets, puzzles, and dolls online, with a code that gave a discount on train sets for a few days. The owner ended the promotion in Merchant Center on the last day, removed the promotion_id from the feed rows for the train sets, and searched the site for the code. She found it still printed in a guide and in a sale banner, and removed it from both. She tested the code at checkout, and it failed with a message that it had expired. She asked two coupon sites to remove it, and one did. A shopper asked an assistant for a train set discount code. The assistant read the site, the feed, and the promotion list, found no live code, and said so, instead of quoting a code that no longer works.
Frequently Asked Questions
Why does AI still show my expired code?
Because some copy of it is still live somewhere a system can read: a guide page, a Merchant Center promotion, a feed row, or an old blog post. Take it out of every copy, including the ones you do not own.
Can I extend an expired promotion?
No. Google says you cannot extend the end of a promotion that has already expired. To run the same offer again, set up a new promotion with a fresh start and end.
Should I keep the code on the site after it ends?
No. Remove it from guides, banners, and sale pages, or link to the product page for the current offer instead of printing a code.
What if a coupon site will not remove my code?
Ask, record the answer, and make your own pages clear that the code has ended. Your own pages will at least agree with each other, even if the third party keeps quoting it.
How do I know the code is really ended?
Test it at checkout, as a shopper would, in a browser where you are not logged in. It ought to fail in a clear way, with a message saying the code has expired.
Verified Sources & Technical Documentation
- Google Merchant Center, How to fix: Promotion expired Specific https://support.google.com/merchants/answer/14783588
- Google Merchant Center, Get started with Promotions Specific https://support.google.com/merchants/answer/7322422
- Google Merchant Center, Product data specification Specific https://support.google.com/merchants/answer/7052112
- Google Search Central, Product structured data Specific https://developers.google.com/search/docs/appearance/structured-data/product
- Google Search Central, Optimizing your website for generative AI features on Google Search Specific https://developers.google.com/search/docs/fundamentals/ai-optimization-guide
- Schema.org, Product type Specific https://schema.org/Product
links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.