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

Warning counts for each type of warning.

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

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ warning_counts` | `array<https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.WarningCount>` A list of warnings and counts per warning reason. |

### getWarningCounts

A list of warnings and counts per warning reason.

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

### setWarningCounts

A list of warnings and counts per warning reason.

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

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