|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.adwords.v201109.cm.ApiError
com.google.api.ads.adwords.v201109.cm.PolicyViolationError
public class PolicyViolationError
Represents violations of a single policy by some text in a field. Violations of a single policy by the same string in multiple places within a field is reported in one instace of this class and only one exemption needs to be filed. Violations of a single policy by two different strings is reported as two separate instances of this class. e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it would be represented by one instance. If the ad also contains 'INC' which also violates 'capitalization' it would be represented in a separate instance.
| Constructor Summary | |
|---|---|
PolicyViolationError()
|
|
PolicyViolationError(String fieldPath,
String trigger,
String errorString,
String apiErrorType,
PolicyViolationKey key,
String externalPolicyName,
String externalPolicyUrl,
String externalPolicyDescription,
Boolean isExemptable,
PolicyViolationErrorPart[] violatingParts)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer |
String |
getExternalPolicyDescription()
Gets the externalPolicyDescription value for this PolicyViolationError. |
String |
getExternalPolicyName()
Gets the externalPolicyName value for this PolicyViolationError. |
String |
getExternalPolicyUrl()
Gets the externalPolicyUrl value for this PolicyViolationError. |
Boolean |
getIsExemptable()
Gets the isExemptable value for this PolicyViolationError. |
PolicyViolationKey |
getKey()
Gets the key value for this PolicyViolationError. |
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer |
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object |
PolicyViolationErrorPart[] |
getViolatingParts()
Gets the violatingParts value for this PolicyViolationError. |
PolicyViolationErrorPart |
getViolatingParts(int i)
|
int |
hashCode()
|
void |
setExternalPolicyDescription(String externalPolicyDescription)
Sets the externalPolicyDescription value for this PolicyViolationError. |
void |
setExternalPolicyName(String externalPolicyName)
Sets the externalPolicyName value for this PolicyViolationError. |
void |
setExternalPolicyUrl(String externalPolicyUrl)
Sets the externalPolicyUrl value for this PolicyViolationError. |
void |
setIsExemptable(Boolean isExemptable)
Sets the isExemptable value for this PolicyViolationError. |
void |
setKey(PolicyViolationKey key)
Sets the key value for this PolicyViolationError. |
void |
setViolatingParts(int i,
PolicyViolationErrorPart _value)
|
void |
setViolatingParts(PolicyViolationErrorPart[] violatingParts)
Sets the violatingParts value for this PolicyViolationError. |
| Methods inherited from class com.google.api.ads.adwords.v201109.cm.ApiError |
|---|
getApiErrorType, getErrorString, getFieldPath, getTrigger, setApiErrorType, setErrorString, setFieldPath, setTrigger |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolicyViolationError()
public PolicyViolationError(String fieldPath,
String trigger,
String errorString,
String apiErrorType,
PolicyViolationKey key,
String externalPolicyName,
String externalPolicyUrl,
String externalPolicyDescription,
Boolean isExemptable,
PolicyViolationErrorPart[] violatingParts)
| Method Detail |
|---|
public PolicyViolationKey getKey()
public void setKey(PolicyViolationKey key)
key - * Unique identifier for the violation.public String getExternalPolicyName()
public void setExternalPolicyName(String externalPolicyName)
externalPolicyName - * Name of policy suitable for display to users. In the user's
preferred
language.public String getExternalPolicyUrl()
public void setExternalPolicyUrl(String externalPolicyUrl)
externalPolicyUrl - * Url with writeup about the policy.public String getExternalPolicyDescription()
public void setExternalPolicyDescription(String externalPolicyDescription)
externalPolicyDescription - * Localized description of the violation.public Boolean getIsExemptable()
public void setIsExemptable(Boolean isExemptable)
isExemptable - * Whether user can file an exemption request for this violation.public PolicyViolationErrorPart[] getViolatingParts()
public void setViolatingParts(PolicyViolationErrorPart[] violatingParts)
violatingParts - * Lists the parts that violate the policy.public PolicyViolationErrorPart getViolatingParts(int i)
public void setViolatingParts(int i,
PolicyViolationErrorPart _value)
public boolean equals(Object obj)
equals in class ApiErrorpublic int hashCode()
hashCode in class ApiErrorpublic static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
Class _javaType,
QName _xmlType)
public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||