# Google Ads Data Manager V1 Client - Class ErrorCount (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 ErrorCount.

The error count for a given error reason.

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

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ record_count` | `int|string` The count of records that failed to upload for a given reason. |
| `↳ reason` | `int` The error reason of the failed records. |

### getRecordCount

The count of records that failed to upload for a given reason.

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

### setRecordCount

The count of records that failed to upload for a given reason.

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

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

### getReason

The error reason of the failed records.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ProcessingErrorReason](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProcessingErrorReason). |

### setReason

The error reason of the failed records.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ProcessingErrorReason](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProcessingErrorReason). |

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