Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example,{ "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API, such as experimental attributes. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per product, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.
↳ data_source
string
Output only. The primary data source of the merchant review.
Optional. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data specification in its generic
form (for example,{ "name": "size type", "value": "regular" }).
This is useful for submitting attributes not explicitly exposed by the
API, such as experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
Optional. A list of custom (merchant-provided) attributes. It can also be
used for submitting any attribute of the data specification in its generic
form (for example,{ "name": "size type", "value": "regular" }).
This is useful for submitting attributes not explicitly exposed by the
API, such as experimental attributes.
Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and
value). Maximum 2500 custom attributes can be set per product, with total
size of 102.4kB. Underscores in custom attribute names are replaced by
spaces upon insertion.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Shopping Merchant Reviews V1beta Client - Class MerchantReview (0.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.0 (latest)](/php/docs/reference/shopping-merchant-reviews/latest/V1beta.MerchantReview)\n- [0.3.1](/php/docs/reference/shopping-merchant-reviews/0.3.1/V1beta.MerchantReview)\n- [0.2.0](/php/docs/reference/shopping-merchant-reviews/0.2.0/V1beta.MerchantReview)\n- [0.1.2](/php/docs/reference/shopping-merchant-reviews/0.1.2/V1beta.MerchantReview) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Shopping Merchant Reviews V1beta Client class MerchantReview.\n\nA review for a merchant. For more information, see\n[Introduction to Merchant Review\nFeeds](https://developers.google.com/merchant-review-feeds)\n\nGenerated from protobuf message `google.shopping.merchant.reviews.v1beta.MerchantReview`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Reviews \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. The name of the merchant review.\n\nFormat:\n`\"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}\"`\n\n### setName\n\nIdentifier. The name of the merchant review.\n\nFormat:\n`\"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}\"`\n\n### getMerchantReviewId\n\nRequired. The user provided merchant review ID to uniquely identify the\nmerchant review.\n\n### setMerchantReviewId\n\nRequired. The user provided merchant review ID to uniquely identify the\nmerchant review.\n\n### getMerchantReviewAttributes\n\nOptional. A list of merchant review attributes.\n\n### hasMerchantReviewAttributes\n\n### clearMerchantReviewAttributes\n\n### setMerchantReviewAttributes\n\nOptional. A list of merchant review attributes.\n\n### getCustomAttributes\n\nOptional. A list of custom (merchant-provided) attributes. It can also be\nused for submitting any attribute of the data specification in its generic\nform (for example,\n`{ \"name\": \"size type\", \"value\": \"regular\" }`).\n\nThis is useful for submitting attributes not explicitly exposed by the\nAPI, such as experimental attributes.\nMaximum allowed number of characters for each\ncustom attribute is 10240 (represents sum of characters for name and\nvalue). Maximum 2500 custom attributes can be set per product, with total\nsize of 102.4kB. Underscores in custom attribute names are replaced by\nspaces upon insertion.\n\n### setCustomAttributes\n\nOptional. A list of custom (merchant-provided) attributes. It can also be\nused for submitting any attribute of the data specification in its generic\nform (for example,\n`{ \"name\": \"size type\", \"value\": \"regular\" }`).\n\nThis is useful for submitting attributes not explicitly exposed by the\nAPI, such as experimental attributes.\nMaximum allowed number of characters for each\ncustom attribute is 10240 (represents sum of characters for name and\nvalue). Maximum 2500 custom attributes can be set per product, with total\nsize of 102.4kB. Underscores in custom attribute names are replaced by\nspaces upon insertion.\n\n### getDataSource\n\nOutput only. The primary data source of the merchant review.\n\n### setDataSource\n\nOutput only. The primary data source of the merchant review.\n\n### getMerchantReviewStatus\n\nOutput only. The status of a merchant review, data validation issues, that\nis, information about a merchant review computed asynchronously.\n\n### hasMerchantReviewStatus\n\n### clearMerchantReviewStatus\n\n### setMerchantReviewStatus\n\nOutput only. The status of a merchant review, data validation issues, that\nis, information about a merchant review computed asynchronously."]]