What type of values are expected for specific attributes in metafields ?
Different attributes require different format. If your values do not follow a certain expected format, the data might not be pushed to GMC.
While creating metafields, it is important to know their type and format. This will help you push information to GMC without any errors. Please note that the format is case sensitive and refer to the respective attribute documentation if more information is required.
Metafield Definition - Type | Metafield Attribute | Expected Format | Example |
---|---|---|---|
Single line text | URL1, URL2 | https://www.example.com/image2.jpg, https://www.example.com/image3.jpg | |
Single line text | URL (including http or https) | ||
Single line text | Supported values : newborn, infant, toddler, kids, adult. | adult | |
Single line text | Supported values : in_stock, out_of_stock, preorder, backorder.Note : preorder attribute requires [availability_date] attribute. | in_stock | |
Date | Date, time, and timezone. (YYYY-MM-DDThh:mm[±hhmm], or YYYY-MM-DDThh:mmZ) | 2016-12-25T13:00-0800 | |
Single line text | String | Adnabu | |
Single line text | URL (including http or https) | ||
Single line text | String | Purple | |
Single line text | Supported values : new, refurbished, used. Note : required when product is used or refurbished. | refurbished | |
Money | Number + currency | 10.00 USD | |
Single line text | String | tropical | |
Multi-line text | String | Google Chromecast was designed to discreetly connect to your TV. | |
Single line text | Supported values : A+, A, A+, A, B. C. D, E, F, G | A+ | |
Date | Date, time, and timezone. (YYYY-MM-DDThh:mm[±hhmm], or YYYY-MM-DDThh:mmZ) | 2016-02-24T00:30-0800 | |
Single line text | Number with 0,8,12,13 or 14 digits | 3234567890126 | |
Single line text | Predefined IDs or full path | 2271 or Apparel & Accessories > Clothing > Dresses | |
Single line text | installment(months:amount:downpayment) | 6:50 EUR:200 EUR | |
Single line text | Supported values :yes, true, no, false | yes | |
Single line text | Supported values :yes, true,. no, false | yes | |
Single line text | String | GO12345OOGLE | |
Single line text | Unicode characters | Leather | |
Single line text | Number | 4 | |
Single line text | URL | ||
Single line text | Number | 7 | |
Single line text | Unicode characters | Striped | |
Money | Number + currency | 15.00 USD | |
JSON | String |
| |
Dimension | product length: cm, inproduct width: cm, inproduct height: cm, in | 20 in40 in10 in | |
Weight | product weight: lb, oz, g, kg | 3.5 lb | |
Single line text | String | "highlight1", "highlight2" | |
Single line text | String | Home > Women > Dresses > Maxi Dresses | |
Money | Number + currency | 15.00 USD | |
Date | Date range with start date and end date with time and timezone separated with "/" | 2016-02-24T13:00-0800/2016-02-29T15:30-0800 | |
Single line text | Unicode charactersshipping(country:postal_code:price:min_handling_time:max_handling_time:min_transit_time:max_transit_time) | US:80302:6.49 | |
Dimension | Number + dimension unit (cm, inch) | 20 in | |
Single line text | Unicode characters | Oversized | |
Weight | Number + unit (lb, oz, g, kg) | 3 kg | |
Single line text | String, 2 characters country code | CH, AT | |
Single line text | String | XL | |
Single line text | Supported values : AU, BR, CN, DE, EU, FR, IT, JPMEX, UK, US | US | |
Single line text | [period]:[preiod_length][amount]Period : month, year | month:12:50 EUR | |
Single line text | String | apparel | |
Single line text | String | Organic Cotton Men's T-Shirt | |
| Number + unitWeight: oz, lb, mg, g, kgVolume (US imperial): floz, pt, qt, galVolume (metric): ml, cl, l, cbmLength: in, ft, yd, cm, mArea: sqft, sqmPer unit: ct, sheet, item | 100oz | |
| Number + unitWeight: oz, lb, mg, g, kgVolume (US imperial): floz, pt, qt, galVolume (metric): ml, cl, l, cbmLength: in, ft, yd, cm, mArea: sqft, sqmPer unit: ct, sheet, item | 750ml | |
Single line text | String | all_lamps_must_go |
Updated on: 11/03/2025
Thank you!