# Google Shopping Merchant Promotions V1 Client - Class ListPromotionsResponse (1.2.1)

1.2.1 (latest) 1.2.0 1.1.3 1.0.0 0.3.0 0.2.1 0.1.3 Reference documentation and code samples for the Google Shopping Merchant Promotions V1 Client class ListPromotionsResponse.

Response message for the `ListPromotions` method.

Generated from protobuf message `google.shopping.merchant.promotions.v1.ListPromotionsResponse`

## Namespace

Google \\ Shopping \\ Merchant \\ Promotions \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ promotions` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-promotions/latest/V1.Promotion>` The processed promotions from the specified account. |
| `↳ next_page_token` | `string` A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |

### getPromotions

The processed promotions from the specified account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-promotions/latest/V1.Promotion>` |   |

### setPromotions

The processed promotions from the specified account.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-promotions/latest/V1.Promotion>` |

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

### getNextPageToken

A token, which can be sent as `page_token` to retrieve the next page.

If this field is omitted, there are no subsequent pages.

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

### setNextPageToken

A token, which can be sent as `page_token` to retrieve the next page.

If this field is omitted, there are no subsequent pages.

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

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