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

The warning count for a given warning reason.

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

## 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 have a warning. |
| `↳ reason` | `int` The warning reason. |

### getRecordCount

The count of records that have a warning.

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

### setRecordCount

The count of records that have a warning.

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

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

### getReason

The warning reason.

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

### setReason

The warning reason.

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

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