// Copyright 2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.dfp.jaxws.v201605;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for GrpSettingsError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="GrpSettingsError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="INVALID_AGE_RANGE"/>
* <enumeration value="LINE_ITEM_ENVIRONMENT_TYPE_NOT_SUPPORTED"/>
* <enumeration value="LINE_ITEM_TYPE_NOT_SUPPORTED"/>
* <enumeration value="CANNOT_SPECIFY_GENDER_FOR_GIVEN_AGE_RANGE"/>
* <enumeration value="INVALID_MIN_AGE"/>
* <enumeration value="INVALID_MAX_AGE"/>
* <enumeration value="CANNOT_DISABLE_GRP_AFTER_ENABLING"/>
* <enumeration value="CANNOT_CHANGE_GRP_PROVIDERS"/>
* <enumeration value="CANNOT_CHANGE_GRP_SETTINGS"/>
* <enumeration value="GRP_AUDIENCE_GOAL_NOT_SUPPORTED"/>
* <enumeration value="IMPRESSION_GOAL_NOT_ENOUGH"/>
* <enumeration value="CANNOT_SET_GRP_AUDIENCE_GOAL"/>
* <enumeration value="CANNOT_REMOVE_GRP_AUDIENCE_GOAL"/>
* <enumeration value="UNSUPPORTED_GEO_TARGETING"/>
* <enumeration value="UNKNOWN"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "GrpSettingsError.Reason")
@XmlEnum
public enum GrpSettingsErrorReason {
/**
*
* Age range for GRP audience is not valid. Please see
* https://support.google.com/dfp_premium/answer/6337075 for more information.
*
*
*/
INVALID_AGE_RANGE,
/**
*
* GRP settings are only supported for video line items.
*
*
*/
LINE_ITEM_ENVIRONMENT_TYPE_NOT_SUPPORTED,
/**
*
* GRP settings are not supported for the given line item type.
*
*
*/
LINE_ITEM_TYPE_NOT_SUPPORTED,
/**
*
* GRP audience gender cannot be specified for the selected age range.
*
*
*/
CANNOT_SPECIFY_GENDER_FOR_GIVEN_AGE_RANGE,
/**
*
* Minimum age for GRP audience is not valid.
*
*
*/
INVALID_MIN_AGE,
/**
*
* Maximum age for GRP audience is not valid.
*
*
*/
INVALID_MAX_AGE,
/**
*
* GRP settings cannot be disabled.
*
*
*/
CANNOT_DISABLE_GRP_AFTER_ENABLING,
/**
*
* GRP provider cannot be updated.
*
*
*/
CANNOT_CHANGE_GRP_PROVIDERS,
/**
*
* GRP settings cannot be updated once the line item has started serving.
*
*
*/
CANNOT_CHANGE_GRP_SETTINGS,
/**
*
* Impression goal based on GRP audience is not supported.
*
*
*/
GRP_AUDIENCE_GOAL_NOT_SUPPORTED,
/**
*
* Total impressions must be greater than 25,000.
*
*
*/
IMPRESSION_GOAL_NOT_ENOUGH,
/**
*
* Impression goal based on GRP audience cannot be set once the line item has started serving.
*
*
*/
CANNOT_SET_GRP_AUDIENCE_GOAL,
/**
*
* Impression goal based on GRP audience cannot be removed once the line item has started
* serving.
*
*
*/
CANNOT_REMOVE_GRP_AUDIENCE_GOAL,
/**
*
* Unsupported geographic location targeted for line item with GRP audience goal.
*
*
*/
UNSUPPORTED_GEO_TARGETING,
/**
*
* The value returned if the actual value is not exposed by the requested API version.
*
*
*/
UNKNOWN;
public String value() {
return name();
}
public static GrpSettingsErrorReason fromValue(String v) {
return valueOf(v);
}
}