Use the sale price effective date [sale_price_effective_date]
attribute to tell us how long you want a specific sale price to be shown to users.
In this article
When to use
If you use the sale price
[sale_price]
attribute to indicate that a product is on sale, you can tell us how long the sale will run using the sale price effective date [sale_price_effective_date]
attribute
.
Format
Follow these formatting guidelines to make sure Google understands the data you submit.
Learn when and how to submit your product data in English
Type | Date range (use ISO 8601 standard). Submit a start date and an end date with time and timezone of format YYYY-MM-DDThh:mm[±hhmm]
or YYYY-MM-DDThh:mmZ
, separated by slash ( /
) (for example, 2016-02-24T13:00-0800/2016-02-29T15:30-0800
). |
---|---|
Limits | 0–51 characters |
Repeated field | No |
File format | Example entry |
---|---|
Text feeds | |
XML feeds | <g:sale_price_effective_date>2016-02-24T13:00-0800/2016-02-29T15:30-0800</g:sale_price_effective_date>
|
To format your data for Content API, go to the Content API for Shopping resource
Minimum requirements
There are no minimum requirements for this attribute.Follow the formatting guidelines or the information you submit can't be used.
Best practices
These best practices can help you go beyond the basic requirements to optimize your product data for performance.
- Include start and end times (including time zones)along with the date. If you don’t include a time, the sale price starts at 12 AM, midnight, on the start date and ends at 11:59 PM on the end date. If you don’t include a timezone, we default to the UTC timezone.
Examples
VariantsIf your product comes in multiple colors or sizes, you might also have different prices for each of these variants. For example:
[title]
[price]
[sale_price]
[sale_price_effective_date]
[color]
[size]
[id]
[item_group_id]
[title]
[price]
[sale_price]
[sale_price_effective_date]
[color]
[size]
[id]
[item_group_id]
[title]
[price]
[sale_price]
[sale_price_effective_date]
[color]
[size]
[id]
[item_group_id]
You can submit a price as low as 0 for mobile phones or tablets that come with a contract. Learn more about price requirements .
[title]
[price]
[sale_price]
[sale_price_effective_date]
[google_product_category]
Electronics > Communications > Telephony > Mobile Phones
[title]
[price]
[sale_price]
[sale_price_effective_date]
[color]
[size]