
com.google.api.ads.dfp.jaxws.v201505.LabelEntityAssociationErrorReason Maven / Gradle / Ivy
Show all versions of dfp-appengine Show documentation
package com.google.api.ads.dfp.jaxws.v201505;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for LabelEntityAssociationError.Reason.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="LabelEntityAssociationError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="INVALID_COMPANY_TYPE"/>
* <enumeration value="DUPLICATE_ASSOCIATION"/>
* <enumeration value="INVALID_ASSOCIATION"/>
* <enumeration value="DUPLICATE_ASSOCIATION_WITH_NEGATION"/>
* <enumeration value="UNKNOWN"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "LabelEntityAssociationError.Reason")
@XmlEnum
public enum LabelEntityAssociationErrorReason {
/**
*
* Labels can only be associated with {@link Company.Type#HOUSE_ADVERTISER},
* {@link Company.Type#ADVERTISER} and {@link Company.Type#AD_NETWORK} type
* of companies.
*
* Replaced with {@code CompanyError.INVALID_LABEL_ASSOCIATION} beginning in V201508.
*
*
*/
INVALID_COMPANY_TYPE,
/**
*
* The label has already been attached to the entity.
*
*
*/
DUPLICATE_ASSOCIATION,
/**
*
* A label is being applied to an entity that does not support that entity
* type.
*
*
*/
INVALID_ASSOCIATION,
/**
*
* The same label is being applied and negated to the same entity.
*
*
*/
DUPLICATE_ASSOCIATION_WITH_NEGATION,
/**
*
* The value returned if the actual value is not exposed by the requested API version.
*
*
*/
UNKNOWN;
public String value() {
return name();
}
public static LabelEntityAssociationErrorReason fromValue(String v) {
return valueOf(v);
}
}