// Copyright 2017 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.v201702;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ProposalLineItemProgrammaticError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ProposalLineItemProgrammaticError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="INVALID_PRODUCT_TYPE"/>
* <enumeration value="VIDEO_NOT_SUPPORTED"/>
* <enumeration value="ROADBLOCKING_NOT_SUPPORTED"/>
* <enumeration value="INVALID_CREATIVE_ROTATION"/>
* <enumeration value="INVALID_PROPOSAL_LINE_ITEM_TYPE"/>
* <enumeration value="INVALID_RATE_TYPE"/>
* <enumeration value="ZERO_COST_PER_UNIT_NOT_SUPPORTED"/>
* <enumeration value="INVALID_PROGRAMMATIC_CREATIVE_SOURCE"/>
* <enumeration value="INVALID_NUM_UNITS"/>
* <enumeration value="INVALID_SPONSORSHIP_CONTRACTED_UNITS_BOUGHT"/>
* <enumeration value="INVALID_PROGRAMMATIC_PRICING_MODEL"/>
* <enumeration value="UNKNOWN"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "ProposalLineItemProgrammaticError.Reason")
@XmlEnum
public enum ProposalLineItemProgrammaticErrorReason {
/**
*
* Programmatic {@link ProposalLineItem proposal line items} only support
* {@link ProductType#DFP}.
*
*
*/
INVALID_PRODUCT_TYPE,
/**
*
* {@link EnvironmentType#VIDEO_PLAYER} is currently not supported.
*
*
*/
VIDEO_NOT_SUPPORTED,
/**
*
* Programmatic {@link ProposalLineItem proposal line items} do not support
* {@link RoadblockingType#CREATIVE_SET}.
*
*
*/
ROADBLOCKING_NOT_SUPPORTED,
/**
*
* Programmatic {@link ProposalLineItem proposal line items} do not support
* {@link CreativeRotationType#SEQUENTIAL}.
*
*
*/
INVALID_CREATIVE_ROTATION,
/**
*
* Programmatic {@link ProposalLineItem proposal line items} only support
* {@link LineItemType#STANDARD}.
*
*
*/
INVALID_PROPOSAL_LINE_ITEM_TYPE,
/**
*
* Programmatic {@link ProposalLineItem proposal line items} only support {@link RateType#CPM}.
*
*
*/
INVALID_RATE_TYPE,
/**
*
* Programmatic {@link ProposalLineItem proposal line items} do not support zero for
* {@link ProposalLineItem#netRate}.
*
*
*/
ZERO_COST_PER_UNIT_NOT_SUPPORTED,
/**
*
* Only programmatic {@link ProposalLineItem proposal line items} support
* {@link ProgrammaticCreativeSource}.
*
*
*/
INVALID_PROGRAMMATIC_CREATIVE_SOURCE,
/**
*
* The {@link Goal#units} value is invalid. For {@link RateType#CPD}
* {@link ProposalLineItem proposal line items}, only 100% is allowed
*
*
*/
INVALID_NUM_UNITS,
/**
*
* The {ProposalLineItem#contractedUnitsBought} cannot be {@code null} or zero for programmatic
* {@link RateType#CPD} {@link ProposalLineItem proposal line items}.
*
*
*/
INVALID_SPONSORSHIP_CONTRACTED_UNITS_BOUGHT,
/**
*
* Only {@link PricingModel#NET} is supported for programmatic
* {@link ProposalLineItem proposal line items}.
*
*
*/
INVALID_PROGRAMMATIC_PRICING_MODEL,
/**
*
* The value returned if the actual value is not exposed by the requested API version.
*
*
*/
UNKNOWN;
public String value() {
return name();
}
public static ProposalLineItemProgrammaticErrorReason fromValue(String v) {
return valueOf(v);
}
}