Package google.shopping.type
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-13 UTC."],[[["\u003cp\u003eThis document provides details about two message types: \u003ccode\u003eCustomAttribute\u003c/code\u003e and \u003ccode\u003ePrice\u003c/code\u003e, used in Comparison Shopping Services.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomAttribute\u003c/code\u003e is used to define custom attributes with a name, a single value, or grouped sub-attributes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePrice\u003c/code\u003e represents a monetary value using \u003ccode\u003eamount_micros\u003c/code\u003e for the numerical price and \u003ccode\u003ecurrency_code\u003c/code\u003e for the currency in ISO 4217 format.\u003c/p\u003e\n"]]],[],null,["# Package google.shopping.type\n\nIndex\n-----\n\n- [CustomAttribute](/comparison-shopping-services/api/reference/rpc/google.shopping.type#google.shopping.type.CustomAttribute) (message)\n- [Price](/comparison-shopping-services/api/reference/rpc/google.shopping.type#google.shopping.type.Price) (message)\n\nCustomAttribute\n---------------\n\nA message that represents custom attributes. Exactly one of `value` or `group_values` must not be empty.\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `group_values[]` | [CustomAttribute](/comparison-shopping-services/api/reference/rpc/google.shopping.type#google.shopping.type.CustomAttribute) Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty. |\n| `name` | `string` The name of the attribute. |\n| `value` | `string` The value of the attribute. If `value` is not empty, `group_values` must be empty. |\n\nPrice\n-----\n\nThe price represented as a number and currency.\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `amount_micros` | `int64` The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros). |\n| `currency_code` | `string` The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217). |"]]