# Google Ads Ad Manager V1 Client - Class ListCustomFieldsResponse (0.1.1)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.1.1 (latest)](https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.ListCustomFieldsResponse)
- [0.1.0](https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/0.1.0/V1.ListCustomFieldsResponse)
Reference documentation and code samples for the Google Ads Ad Manager V1 Client class ListCustomFieldsResponse.

Response object for `ListCustomFieldsRequest` containing matching
`CustomField` objects.

Generated from protobuf message `google.ads.admanager.v1.ListCustomFieldsResponse`

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ custom_fields` | `array<https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.CustomField>` The `CustomField` objects from the specified network. |
| `↳ 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. |
| `↳ total_size` | `int` Total number of `CustomField` objects. If a filter was included in the request, this reflects the total number after the filtering is applied. `total_size` will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC header `X-Goog-FieldMask`. For more information, see <https://developers.google.com/ad-manager/api/beta/field-masks> |

### getCustomFields

The `CustomField` objects from the specified network.

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

### setCustomFields

The `CustomField` objects from the specified network.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.CustomField>` |

| **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` |   |

### getTotalSize

Total number of `CustomField` objects.

If a filter was included in the request, this reflects the total number
after the filtering is applied.
`total_size` will not be calculated in the response unless it has been
included in a response field mask. The response field mask can be provided
to the method by using the URL parameter `$fields` or `fields`, or by using
the HTTP/gRPC header `X-Goog-FieldMask`.
For more information, see
<https://developers.google.com/ad-manager/api/beta/field-masks>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setTotalSize

Total number of `CustomField` objects.

If a filter was included in the request, this reflects the total number
after the filtering is applied.
`total_size` will not be calculated in the response unless it has been
included in a response field mask. The response field mask can be provided
to the method by using the URL parameter `$fields` or `fields`, or by using
the HTTP/gRPC header `X-Goog-FieldMask`.
For more information, see
<https://developers.google.com/ad-manager/api/beta/field-masks>

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

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