Price Attribute
The price attribute defines the current, non-discounted cost of a product. It is a strictly required field for all product data feeds across Google Merchant Products, Facebook Products, Pinterest Products, Tiktok Products, and Reddit Products.
Submitting accurate pricing that perfectly matches the price displayed on your landing page and checkout is critical to prevent ad disapprovals and account suspensions.
Contents:
Quick Syntax Check
Paste your <g:price> XML snippet or CSV value below to validate the format:
Test your <g:price>
Live CheckChecking one by one? Validate your entire feed instantly.
Upload & Analyze File →
Platform Requirements Comparison
While the ISO 4217 standard applies universally, each platform has specific nuances in how they parse the data.
| Requirement | Google Merchant Products | Facebook Products | Pinterest Products | Tiktok Products | Reddit Products |
|---|---|---|---|---|---|
| XML Tag | <g:price> |
<g:price> |
<g:price> |
<g:price> |
price |
| Format | Number + Space + ISO |
Number + Space + ISO |
<Numeric> <ISO> (order flexible) |
Number + Space + ISO |
Number + Space + ISO |
| Decimals | Max 2 digits (e.g., .99) | Standard | Standard | Standard | Standard |
| Tax Policy | Exclude in US/CA; Include elsewhere | Must match checkout | Must reflect true cost | Must match landing page | Must match landing page |
| Zero Price | Rejected (except contracts) | Rejected | Rejected | Rejected | Rejected |
General Formatting Requirements
To ensure your feed processes successfully across all advertising and commerce channels, follow these strict rules:
- Numeric Value & Currency: The value must consist of a number followed by a space and a 3-letter ISO 4217 currency code (e.g.,
15.00 USD). - Decimal Separators: You must use a period (
.) as the decimal point. Commas (,) used as decimal or thousands separators will cause processing failures. - No Symbols: Do not use localized currency symbols (
$,£,€). - Discounts: Do not submit the discounted price in this field. If an item is on sale, submit the original price here and use the separate
sale_priceattribute for the discounted cost. - CSV Quotations: When submitting via CSV/TSV, it is highly recommended to wrap the price value in double quotes if your parser is sensitive to spaces.
Formatting Examples
XML Feed Format
Correct Formatting: Uses a period for the decimal, includes a space, and uses the ISO 4217 code.
<g:price>24.99 USD</g:price>
Incorrect Formatting: Do not use commas as thousands separators, do not use commas for decimals, and never include currency symbols.
<!-- Incorrect: Uses comma as a thousands separator -->
<g:price>1,500.00 USD</g:price>
<!-- Incorrect: Includes a currency symbol -->
<g:price>$24.99</g:price>
CSV / TSV Feed Format
When working with CSV files, keep the data clean. Do not use symbols or extra formatting, and do not place comments inside the data rows.
Correct Formatting: The price includes a period for decimals and the ISO currency code.
id,title,price,availability
FB_1234,Example T-Shirt,9.99 USD,in stock
Incorrect Formatting: Missing the ISO code, using a currency symbol, or using commas for decimals will cause the feed upload to fail.
id,title,price,availability
FB_1235,Example Hoodie,$49.99,in stock
FB_1236,Premium Jacket,150,50 USD,in stock