# Google Shopping Merchant Accounts V1beta Client - Class UriSettings (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.0 1.0.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

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 message `google.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 the [help center doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting) |
| `↳ 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 the [help center doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting) |

### 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 the [help center
doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)

| **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 the [help center
doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)

| **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 the [help center
doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)

| **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 the [help center
doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUriTemplate

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |