[cost_of_goods_sold]
attribute when reporting conversions with cart data to get additional reporting on gross profit. Note: you must report item-level information for each of your conversions in order to use this type of reporting.
When to use
Format
Follow these formatting guidelines to make sure Google understands the data you're submitting.
For details on when and how to submit values in English, learn more about submitting your product data.
Type | Number plus currency (use ISO 4217) |
Repeated field | No |
File Format | Example Entry |
Text/Tab delimited | 10.01 USD |
XML (Feeds) | <g:cost_of_goods_sold>10.01 USD |
To format your data for Content API, see the Content API for Shopping.
Minimum requirements
These are the requirements your provided value will need to meet. If you don't follow these requirements, your products may not be eligible for reporting, which could result in incomplete reporting data.
- Use the currency with ISO 4217 codes like "USD".
- Use "." rather than "," to indicate a decimal point.
Best Practices
Go beyond the basic requirements and optimize your product data for performance with best practices.
- Use the same currency for COGS that you use for the price reported in conversion. This way you will avoid accidental inconsistencies due to currency conversion rates.
Examples
Mobile phones or tablets
Product data for Google Pixel 5” 32GB Quite Black | |
Attribute | Value |
Title [title] |
Google Pixel 5” 32GB Quite Black |
Price [price] |
300.00 USD |
Cost of goods sold [cost_of_goods_sold] |
290.00 USD |
Google product category [google_product_category] |
Electronics > Communications > Telephony > Mobile Phones |