Use the expiration date [expiration_date]
attribute to cause a product to stop showing on a specific date. For example, you might want to do this for limited stock or seasonal products.
When to use
- Optional for each product
If you want to set an earlier expiration date than the 30-day default, use the expiration date [expiration_date]
attribute to submit that date. Your product data expires after 30 days, because it's no longer fresh, and your product stops showing.
Format
Follow these formatting guidelines to make sure Google understands the data you're submitting.
Type |
Date, time, and timezone, ISO 8601 compliant ( |
---|---|
Limits | 25 characters |
Repeated field | No |
File format | Example value |
---|---|
Text feeds |
|
XML feeds | <g:expiration_date>2016-02-24T00:30-0800</g:expiration_date> |
To format your data for Content API, see the Content API for Shopping.
Minimum requirements
These are the requirements you'll need to meet to show your product. If you don't follow these requirements, we'll disapprove your product and let you know in the Diagnostics page in your Merchant Center account.
- Provide a date up to 1 year in the future.
Best practices
These best practices can help you go beyond the basic requirements to optimize your product data for performance.
- Specify a time and timezone in addition to the date. If you don't, the default time is 12 AM, midnight, in the UTC timezone.
- Specify when your product should stop showing. If you’re selling a product for a brief period of time, use this attribute to stop showing your product on a specific day.
Examples
Product data for brown lederhosen | |
Attribute | Value |
Title [title] |
Lederhosen - brown - L |
Expiration date [expiration_date] |
2016-12-25T00:01-0800 |