Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class GetProductRequest.
Request message for the GetProduct method.
Generated from protobuf message google.shopping.merchant.products.v1beta.GetProductRequest
Namespace
Google \ Shopping \ Merchant \ Products \ V1beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The name of the product to retrieve. Format: accounts/{account}/products/{product} where the last section product consists of 4 parts: channel~content_language~feed_label~offer_id example for product name is accounts/123/products/online~en~US~sku123
getName
Required. The name of the product to retrieve.
Format: accounts/{account}/products/{product}
where the last section product consists of 4 parts:
channel~content_language~feed_label~offer_id
example for product name is
accounts/123/products/online~en~US~sku123
Returns
Type
Description
string
setName
Required. The name of the product to retrieve.
Format: accounts/{account}/products/{product}
where the last section product consists of 4 parts:
channel~content_language~feed_label~offer_id
example for product name is
accounts/123/products/online~en~US~sku123
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. The name of the product to retrieve.
Format: accounts/{account}/products/{product}
where the last section product consists of 4 parts:
channel~content_language~feed_label~offer_id
example for product name is
accounts/123/products/online~en~US~sku123
Please see ProductsServiceClient::productName() for help formatting this field.
[[["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-08-20 UTC."],[],[],null,["# Google Shopping Merchant Products V1beta Client - Class GetProductRequest (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-products/latest/V1beta.GetProductRequest)\n- [0.7.0](/php/docs/reference/shopping-merchant-products/0.7.0/V1beta.GetProductRequest)\n- [0.6.1](/php/docs/reference/shopping-merchant-products/0.6.1/V1beta.GetProductRequest)\n- [0.5.0](/php/docs/reference/shopping-merchant-products/0.5.0/V1beta.GetProductRequest)\n- [0.4.0](/php/docs/reference/shopping-merchant-products/0.4.0/V1beta.GetProductRequest)\n- [0.3.0](/php/docs/reference/shopping-merchant-products/0.3.0/V1beta.GetProductRequest)\n- [0.2.1](/php/docs/reference/shopping-merchant-products/0.2.1/V1beta.GetProductRequest)\n- [0.1.1](/php/docs/reference/shopping-merchant-products/0.1.1/V1beta.GetProductRequest) \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 Products V1beta Client class GetProductRequest.\n\nRequest message for the GetProduct method.\n\nGenerated from protobuf message `google.shopping.merchant.products.v1beta.GetProductRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Products \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The name of the product to retrieve.\n\nFormat: `accounts/{account}/products/{product}`\nwhere the last section `product` consists of 4 parts:\n`channel~content_language~feed_label~offer_id`\nexample for product name is\n`accounts/123/products/online~en~US~sku123`\n\n### setName\n\nRequired. The name of the product to retrieve.\n\nFormat: `accounts/{account}/products/{product}`\nwhere the last section `product` consists of 4 parts:\n`channel~content_language~feed_label~offer_id`\nexample for product name is\n`accounts/123/products/online~en~US~sku123`\n\n### static::build"]]