# Google Shopping Merchant Accounts V1 Client - Class LocationIdSet (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 Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class LocationIdSet.

A list of location ID sets. Must be non-empty. Can only be set if all
other fields are not set.

Generated from protobuf message `google.shopping.merchant.accounts.v1.LocationIdSet`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ location_ids` | `string[]` Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state). |

### getLocationIds

Required. A non-empty list of
[location
IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).

They must all be of the same location type (For
example, state).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setLocationIds

Required. A non-empty list of
[location
IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).

They must all be of the same location type (For
example, state).

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

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