Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class UriSettings.
URL settings for cart or checkout URL.
Generated from protobuf messagegoogle.shopping.merchant.accounts.v1beta.UriSettings
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ checkout_uri_template
string
Checkout URL template. When the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart. For more details, check thehelp center doc
↳ cart_uri_template
string
Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart. For more details, check thehelp center doc
getCheckoutUriTemplate
Checkout URL template. When the placeholders are expanded will redirect
the buyer to the merchant checkout page with the item in the cart. For
more details, check thehelp center
doc
Returns
Type
Description
string
hasCheckoutUriTemplate
setCheckoutUriTemplate
Checkout URL template. When the placeholders are expanded will redirect
the buyer to the merchant checkout page with the item in the cart. For
more details, check thehelp center
doc
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCartUriTemplate
Cart URL template. When the placeholders are expanded will redirect the
buyer to the cart page on the merchant website with the selected
item in cart. For more details, check thehelp center
doc
Returns
Type
Description
string
hasCartUriTemplate
setCartUriTemplate
Cart URL template. When the placeholders are expanded will redirect the
buyer to the cart page on the merchant website with the selected
item in cart. For more details, check thehelp center
doc
[[["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 Accounts V1beta Client - Class UriSettings (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-accounts/latest/V1beta.UriSettings)\n- [0.10.0](/php/docs/reference/shopping-merchant-accounts/0.10.0/V1beta.UriSettings)\n- [0.9.1](/php/docs/reference/shopping-merchant-accounts/0.9.1/V1beta.UriSettings)\n- [0.8.0](/php/docs/reference/shopping-merchant-accounts/0.8.0/V1beta.UriSettings)\n- [0.7.0](/php/docs/reference/shopping-merchant-accounts/0.7.0/V1beta.UriSettings)\n- [0.6.0](/php/docs/reference/shopping-merchant-accounts/0.6.0/V1beta.UriSettings)\n- [0.5.0](/php/docs/reference/shopping-merchant-accounts/0.5.0/V1beta.UriSettings)\n- [0.4.0](/php/docs/reference/shopping-merchant-accounts/0.4.0/V1beta.UriSettings)\n- [0.3.3](/php/docs/reference/shopping-merchant-accounts/0.3.3/V1beta.UriSettings)\n- [0.2.0](/php/docs/reference/shopping-merchant-accounts/0.2.0/V1beta.UriSettings)\n- [0.1.0](/php/docs/reference/shopping-merchant-accounts/0.1.0/V1beta.UriSettings) \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 Accounts V1beta Client class UriSettings.\n\nURL settings for cart or checkout URL.\n\nGenerated from protobuf message `google.shopping.merchant.accounts.v1beta.UriSettings`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Accounts \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCheckoutUriTemplate\n\nCheckout URL template. When the placeholders are expanded will redirect\nthe buyer to the merchant checkout page with the item in the cart. For\nmore details, check the [help center\ndoc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)\n\n### hasCheckoutUriTemplate\n\n### setCheckoutUriTemplate\n\nCheckout URL template. When the placeholders are expanded will redirect\nthe buyer to the merchant checkout page with the item in the cart. For\nmore details, check the [help center\ndoc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)\n\n### getCartUriTemplate\n\nCart URL template. When the placeholders are expanded will redirect the\nbuyer to the cart page on the merchant website with the selected\nitem in cart. For more details, check the [help center\ndoc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)\n\n### hasCartUriTemplate\n\n### setCartUriTemplate\n\nCart URL template. When the placeholders are expanded will redirect the\nbuyer to the cart page on the merchant website with the selected\nitem in cart. For more details, check the [help center\ndoc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)\n\n### getUriTemplate"]]