Reference documentation and code samples for the Google Ads Data Manager V1 Client class FieldWarning.
Detailed row-level warning with field paths.
Generated from protobuf message google.ads.datamanager.v1.FieldWarning
Namespace
Google \ Ads \ DataManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ reason |
int
The warning reason. |
↳ description |
string
The detailed warning message describing the issue. |
↳ field |
string
The field path that triggered the warning. Uses the same format as google.rpc.BadRequest.FieldViolation.field. |
getReason
The warning reason.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type WarningReason. |
setReason
The warning reason.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type WarningReason. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
The detailed warning message describing the issue.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
The detailed warning message describing the issue.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getField
The field path that triggered the warning. Uses the same format as google.rpc.BadRequest.FieldViolation.field.
| Returns | |
|---|---|
| Type | Description |
string |
|
setField
The field path that triggered the warning. Uses the same format as google.rpc.BadRequest.FieldViolation.field.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|