# Google Ads Data Manager V1 Client - Class ErrorInfo (0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Google Ads Data Manager V1 Client class ErrorInfo.

Error counts for each type of error.

Generated from protobuf message `google.ads.datamanager.v1.ErrorInfo`

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ error_counts` | `array<https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ErrorCount>` A list of errors and counts per error reason. May not be populated in all cases. |

### getErrorCounts

A list of errors and counts per error reason. May not be populated
in all cases.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ErrorCount>` |   |

### setErrorCounts

A list of errors and counts per error reason. May not be populated
in all cases.

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

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