Unit pricing errors like "Invalid real number [unit pricing measure]" mean Google couldn't read the unit_pricing_measure value in your product data, usually because it's empty, zero, missing a unit or uses an unsupported format. The fix is to send a positive number plus a supported unit (for example 750ml or 1kg) with a matching unit_pricing_base_measure (for example 100ml), or stop sending the attribute for products that don't need unit pricing.
Unit Pricing Measure Errors in Merchant Center: How to Fix
How do I fix "Invalid real number [unit pricing measure]" in Merchant Center?
What this issue means
Unit pricing lets Google show a price per unit, such as "$1.20 / 100 ml," next to your product. It's built from two attributes:
| Attribute | What it describes | Example |
|---|---|---|
unit_pricing_measure | How much product the shopper gets | 750ml |
unit_pricing_base_measure | The unit the price is expressed per | 100ml |
Google calculates the unit price from your price and these values. For example, a measure of 150 fl oz, a base measure of 100 fl oz and a price of 3 USD gives 2 USD per 100 fl oz.
For US stores unit pricing is optional, so these errors are usually warnings that limit the unit price display rather than disapprovals. In the EU, EFTA countries, the UK, Australia and New Zealand, it's required for products sold by weight, volume, length or area, and missing or invalid values can block those products.
Why it happens
- Empty or zero values. The integration sends
0,0ctor a blank value for products without unit data. Many Shopify stores saw "Invalid real number" warnings this way. - Missing unit.
750instead of750ml. - Unsupported units or spellings, such as
litre,gramsorpcsinstead of the codes Google accepts. - Comma decimals.
0,75linstead of0.75l. - Mismatched unit types. A measure in
mlwith a base measure inkg. - Imperial units in the UK. Google interprets imperial units as US units, so UK sellers should use metric values.
- Using unit pricing on products that aren't sold by measure, like apparel.
How to fix it
- Find the affected items. In Products > Needs attention, filter by the unit pricing issue. Check the current values of both attributes on a few products.
- Use supported units. Google accepts:
- Weight:
oz,lb,mg,g,kg - US volume:
floz,pt,qt,gal - Metric volume:
ml,cl,l,cbm - Length:
in,ft,yd,cm,m - Area:
sqft,sqm - Per unit:
ct(andsheet,itemin Australia and New Zealand only)
- Weight:
- Format values correctly. A positive number with a period for decimals, immediately followed by the unit:
750ml,1.5kg,12ct. Use the same unit type in the base measure, for example100ml,1kg,1ct. - Fix it at the source.
- Shopify (Google & YouTube app): The app sends unit price data from Shopify's unit price fields on each variant, where available. Fill in the total measurement and base measure for products sold by weight or volume. For products that don't need unit pricing, make sure the fields are empty. Merchants have reported that warnings sometimes persist after source edits, in which case an attribute rule in Merchant Center is the practical fix.
- WooCommerce: Map unit pricing fields in your feed plugin (many use custom fields or attributes). Make sure the plugin doesn't output the attribute when values are empty.
- Feed files: Add correct values to both columns, or remove the columns entirely if you don't use unit pricing.
- Use attribute rules or a supplemental source for bulk fixes. In your data source settings, create a rule that sets values for a group of products, or clears both attributes for products where unit pricing doesn't apply. For products genuinely sold per piece, some merchants set both to
1ct; only do this where per-unit pricing is accurate. - Send one variant per item. Each size (500 ml, 1 l) should be a separate product with its own measure, sharing an
item_group_id. - Reprocess with a new fetch or resync and confirm the issue clears.
How long until it's fixed
Attribute rule changes and corrected data apply on the next processing of your data source, usually within hours to a day. The Needs attention count may lag behind, so give it a couple of days before assuming a fix didn't work.
How to prevent it
- Only send unit pricing attributes when you have real values.
- Standardize units in your product database rather than fixing them in the feed.
- Validate new products with our Merchant Center feed checker.
- If you expand to the EU, UK or Australia, add unit pricing for every product sold by measure before launch.
For more on clean attribute data, read our guide to product feed optimization. Selling internationally? Mercantads can build compliant feeds for each market. Contact us.
Fix it yourself or have us fix it
| Do it yourself | Mercantads does it for you | |
|---|---|---|
| Find the cause | Follow the steps on this page | We audit your feed, store and account |
| Make the fix | Edit products, feed rules or site pages yourself | We fix it, in bulk where possible |
| Reviews | Request the review and wait | We prepare and submit the review for you |
| After it's fixed | Watch for it to come back | Ongoing feed monitoring so it doesn't |
Frequently Asked Questions
Related Google Merchant Center fixes
All Google Merchant Center fixes →Automatic Item Updates Stopped in Merchant Center: Fix It
Pricing & availabilityInaccurate Availability in Merchant Center: How to Fix It
Pricing & availabilityInaccurate Prices in Google Merchant Center: How to Fix It
Pricing & availabilityInconsistent Currencies in Merchant Center: How to Fix It
Pricing & availabilityMismatched Product Availability in Merchant Center: Fix
Pricing & availabilityMismatched Product Price in Merchant Center: How to Fix It
Unit Pricing Measure Errors in Merchant Center: How to Fix
Tell us what Google Merchant Center is showing. We'll find the cause and fix it, so your products and ads get back to selling.