public class PolicyViolationError extends ApiError
Java class for PolicyViolationError complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="PolicyViolationError">
<complexContent>
<extension base="{https://adwords.google.com/api/adwords/cm/v201809}ApiError">
<sequence>
<element name="key" type="{https://adwords.google.com/api/adwords/cm/v201809}PolicyViolationKey" minOccurs="0"/>
<element name="externalPolicyName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="externalPolicyUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="externalPolicyDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="isExemptable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="violatingParts" type="{https://adwords.google.com/api/adwords/cm/v201809}PolicyViolationError.Part" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
externalPolicyDescription |
protected String |
externalPolicyName |
protected String |
externalPolicyUrl |
protected Boolean |
isExemptable |
protected PolicyViolationKey |
key |
protected List<PolicyViolationErrorPart> |
violatingParts |
apiErrorType, errorString, fieldPath, fieldPathElements, trigger| Constructor and Description |
|---|
PolicyViolationError() |
| Modifier and Type | Method and Description |
|---|---|
String |
getExternalPolicyDescription()
Gets the value of the externalPolicyDescription property.
|
String |
getExternalPolicyName()
Gets the value of the externalPolicyName property.
|
String |
getExternalPolicyUrl()
Gets the value of the externalPolicyUrl property.
|
PolicyViolationKey |
getKey()
Gets the value of the key property.
|
List<PolicyViolationErrorPart> |
getViolatingParts()
Gets the value of the violatingParts property.
|
Boolean |
isIsExemptable()
Gets the value of the isExemptable property.
|
void |
setExternalPolicyDescription(String value)
Sets the value of the externalPolicyDescription property.
|
void |
setExternalPolicyName(String value)
Sets the value of the externalPolicyName property.
|
void |
setExternalPolicyUrl(String value)
Sets the value of the externalPolicyUrl property.
|
void |
setIsExemptable(Boolean value)
Sets the value of the isExemptable property.
|
void |
setKey(PolicyViolationKey value)
Sets the value of the key property.
|
getApiErrorType, getErrorString, getFieldPath, getFieldPathElements, getTrigger, setApiErrorType, setErrorString, setFieldPath, setTriggerprotected PolicyViolationKey key
protected String externalPolicyName
protected String externalPolicyUrl
protected String externalPolicyDescription
protected Boolean isExemptable
protected List<PolicyViolationErrorPart> violatingParts
public PolicyViolationKey getKey()
PolicyViolationKeypublic void setKey(PolicyViolationKey value)
value - allowed object is
PolicyViolationKeypublic String getExternalPolicyName()
Stringpublic void setExternalPolicyName(String value)
value - allowed object is
Stringpublic String getExternalPolicyUrl()
Stringpublic void setExternalPolicyUrl(String value)
value - allowed object is
Stringpublic String getExternalPolicyDescription()
Stringpublic void setExternalPolicyDescription(String value)
value - allowed object is
Stringpublic Boolean isIsExemptable()
Booleanpublic void setIsExemptable(Boolean value)
value - allowed object is
Booleanpublic List<PolicyViolationErrorPart> getViolatingParts()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the violatingParts property.
For example, to add a new item, do as follows:
getViolatingParts().add(newItem);
Objects of the following type(s) are allowed in the list
PolicyViolationErrorPart
Copyright © 2023. All rights reserved.