Use the item group ID [item_group_id]
attribute to group product variants in your product data. Variants are a group of similar products that only differ from one another by product details such as color and size for apparel or memory sizes, display sizes, processors, and graphics options for electronics.
When you use an item group ID [item_group_id]
to group your products, you can ensure that your product and its variants are shown to customers as a group, instead of separately.
On this page
When to use
Required for free listingsfor product variants
Required for Shopping adsfor product variants targeting the following countries:
- Brazil
- France
- Germany
- Japan
- United Kingdom
- United States
Format
Follow these formatting guidelines to make sure Google understands the data you're submitting.
Learn when and how to submit your product data in English
| Type | Unicode characters (Recommended: ASCII only): alphanumeric, underscores, and dashes |
|---|---|
| Limits | 1–50 characters |
| Repeated field | No |
| Schema.org property ( What’s this? ) |
|
| File format | Example value |
| Text data sources | AB12345
|
| XML data sources | <g:item_group_id>AB12345</g:item_group_id>
|
| API data sources | To format your data for Merchant API, see the Merchant API resource. |
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.
- Submit a unique ID for each different product.Use the same value for the item group ID
[item_group_id]attribute for all variants of the same product. For example, a T-shirt comes in 9 variants: 3 sizes (small, medium, large) and 3 colors (red, blue, green). Submit each variant as a separate product (for a total of 9 separate products), and submit the same value for the item group ID attribute for each to indicate that these are variants of the same product. - Align grouping with your landing page experience: If your website allows customers to select between multiple variants on a single landing page (for example, a T-shirt available in different sizes or colors), make sure all those versions are submitted with the same item group ID
[item_group_id]. This ensures that the grouping of your product accurately reflects the shopping experience on your site. - Each distinct item group must have a unique valuefor the item group ID
[item_group_id]attribute.- Don’t rely on casing to make the item group ID unique. The values "abc123" and "ABC123" are interpreted as the same product.
- Don’t reuse or recycle the same item group ID attribute for different products.
- Specify the item group title
[item_group_title]attribute together with the item group ID[item_group_id]attribute to define a unique name for your product group. Make sure the item group title[item_group_title]is the same for all variants with the same item group ID[item_group_id]. - Specify the variant option
[variant_option]attribute in combination with the item group title[item_group_title]and item group ID[item_group_id]attributesto define all variant-identifying properties of the variants of the same product. For example, a t-shirt with different sizes and colors, or a laptop with different memory sizes, display sizes, processors, and graphics options. - Use all standard variants: Specify the standard color
[color], pattern[pattern], material[material], age group[age_group], gender[gender]and size[size]attributes in addition to variant option[variant_option]even when these are part of the set of variant-identifying properties. -
Make sure that the product details displayed on your landing page match the variant-identifying values you provide for the variantlike title
[title], variant option[variant_option], color[color], price[price], availability[availability], and image link[image_link]. Learn more about requirements for landing pages
Best practices
These best practices can help you go beyond the basic requirements to optimize your product data for performance.
-
Use the parent SKU as the item group ID value for all variants of the same product.Don't submit a parent SKU as a separate product. If you'd like to group variants using a parent SKU, use the parent SKU as the value for the item group ID
[item_group_id]attribute for all products in the variant group. - Don’t mix up item group ID and ID attributes.Use the ID attribute to uniquely identify a single product, and use item group ID
[item_group_id]to group together several products as variants. -
Don’t submit a value for the item group ID attribute if your product is not a variant.If your product is similar to other products, but not specifically a variant, don’t t submit the item group ID attribute. Some examples of products that are not variants include a suit consisting of a jacket and pants or a set of bath accessories.
- Use a stable item group ID value for each group of product variants.Once you've assigned an item group ID to a product, don't change it. If the item group ID changes often, it could cause inconsistency in the way variants are grouped and shown to customers.
- Make sure to have different landing page URLssubmitted for each variant, with each URL using a different path segment and/or query parameters, for example "/t-shirt/green" or "/t-shirt?color=green&size=small" or "/t-shirt/preselect=8901491"
- For instructions on how to best structure your website and URLs for variants, refer to the URL structure article on Search Central.
- For details on how to add Schema.org structured data for variants, refer to the Product variant article on Search Central.
Examples
General examples
Submit variant detailsthrough the variant attributes. For example:
Product data for red Google logo T-shirt, size small
Attribute
Value
Title [title]
Google Logo T-shirt - Small - Red
ID [id]
12345-S-R
Color [color]
Red
Size [size]
Small
[variant_option]
[link]
Item group ID [item_group_id]
12345
[item_group_title]
Attribute
Value
Title [title]
Google Logo T-shirt - Medium - Blue
ID [id]
12345-M-B
Color [color]
Blue
Size [size]
Medium
[variant_option]
[link]
Item group ID [item_group_id]
12345
[item_group_title]
Don’t submit variants without variant attributes.
Apparel products
Apparel products typically come in variants. Use the same item group ID [item_group_id]
for each variant. Here’s an example that comes in 2 colors, each in 3 sizes.
For this example, you’d submit these 6 variants:
Attribute
Value
Title [title]
Google Logo T-shirt - Small - White
ID [id]
12345-S-W
Color [color]
White
Size [size]
Small
[variant_option]
[link]
Item group ID [item_group_id]
12345
[item_group_title]
Attribute
Value
Title [title]
Google Logo T-shirt - Small - Black
ID [id]
12345-S-B
Color [color]
Black
Size [size]
Small
[variant_option]
[link]
Item group ID [item_group_id]
12345
[item_group_title]
Product data for white Google Logo T-shirt, size medium
| Attribute |
Value |
| Title |
Google Logo T-shirt - Medium - White |
| ID |
12345-M-W |
| Color |
White |
| Size |
Medium |
Variant option [variant_option]
|
color:white,size:medium |
Link [link]
|
https://example.com/shirt?color=white&size=medium |
| Item group ID |
12345 |
Item group title [item_group_title]
|
Google Logo T-shirt |
Attribute
Title [title]
Google Logo T-shirt - Medium - Black
ID [id]
12345-M-B
Color [color]
Black
Size [size]
Medium
[variant_option]
[link]
Item group ID [item_group_id]
12345
[item_group_title]
Attribute
Title [title]
Google Logo T-shirt - Large - White
ID [id]
12345-L-W
Color [color]
White
Size [size]
Large
[variant_option]
[link]
Item group ID [item_group_id]
12345
[item_group_title]
Attribute
Title [title]
Google Logo T-shirt - Large - Black
ID [id]
12345-L-B
Color [color]
Black
Size [size]
Large
[variant_option]
[link]
Item group ID [item_group_id]
12345
[item_group_title]
Shoes
Submit shoes in the same way as other apparel products. Group variants of the same product by adding the same item group ID [item_group_id]
to each variant.
Attribute
Title [title]
Low Top Shoes - 8 Narrow
ID [id]
12460-8-b-bog
Color [color]
Blue/orange/green
Size [size]
8
[variant_option]
[link]
Item group ID [item_group_id]
12345
[item_group_title]
Title [title]
Low Top Shoes - 8
ID [id]
12460-8-m-bog
Color [color]
Blue/orange/green
Size [size]
8
[variant_option]
[link]
Item group ID [item_group_id]
12345
[item_group_title]
Title [title]
Low Top Shoes - 8 - Wide
ID [id]
Color [color]
Blue/orange/green
Size [size]
8
[variant_option]
[link]
Item group ID [item_group_id]
12345
[item_group_title]
Electronics can be submitted as variants. For example, if a phone is available in multiple colors and memory sizes, you can submit each as a variant by using the same value for the item group ID [item_group_id]
attribute.
Product data for a blue Google Nexus 6, 32 GB, unlocked
| Attribute |
Value |
| Title |
Google Nexus 6 - 32 GB - Midnight Blue - unlocked |
| ID |
2345-32gb-midblu |
| Color |
Midnight blue |
Variant option [variant_option]
|
color:midnight blue,memory:32GB |
Link [link]
|
https://example.com/phone?color=mb&flash=32 |
| Item group ID |
2345 |
Item group title [item_group_title]
|
Google Nexus 6 |
Attribute
Value
Title [title]
Google Nexus 6 - 64 GB - Cloud White - With contract
ID [id]
2345-64gb-cldwh
Color [color]
Cloud white
[variant_option]
[link]
Item group ID [item_group_id]
2345
[item_group_title]
Furniture can be submitted as variants. For example, if a couch is available in multiple fabrics, you can submit each as a variant by using the same value for the item group ID [item_group_id]
.
Attribute
Value
Title [title]
Mid-Century Microfiber Sofa - suede - Yellow and Gray
ID [id]
Color [color]
Yellow/gray
Material [material]
Suede
[variant_option]
[link]
Item group ID [item_group_id]
3456
[item_group_title]
Attribute
Value
Title [title]
Mid-Century Microfiber Sofa - Leather - Green
ID [id]
3456-lth-grn
Color [color]
Green
Material [material]
Leather
[variant_option]
[link]
Item group ID [item_group_id]
3456
[item_group_title]
Attribute
Value
Title [title]
Molded Lounge Chair - Natural
ID [id]
1a2b3c-nat
[variant_option]
[link]
Item group ID [item_group_id]
1a2b3c
[item_group_title]
Attribute
Value
Title [title]
Molded Lounge Chair - Varnished
ID [id]
1a2b3c-var
[variant_option]
[link]
Item group ID [item_group_id]
1a2b3c
[item_group_title]
Makeup products can be submitted as variants. For example, if makeup comes in multiple colors, you could submit each color as a variant by using the same value for the item group ID [item_group_id]
attribute.
Attribute
Value
Title [title]
Blend Liquid Makeup - Beige
ID [id]
0987-b
color [color]
Beige
[variant_option]
[link]
Item group ID [item_group_id]
0987
[item_group_title]
Attribute
Value
Title [title]
Blend Liquid Makeup - Beige Medium
ID [id]
0987-bmed
Color [color]
Beige medium
[variant_option]
[link]
Item group ID [item_group_id]
0987
[item_group_title]

