// 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.v201611; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for ProgrammaticError.Reason. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <simpleType name="ProgrammaticError.Reason"> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="AUDIENCE_EXTENSION_NOT_SUPPORTED"/> * <enumeration value="AUTO_EXTENSION_DAYS_NOT_SUPPORTED"/> * <enumeration value="VIDEO_NOT_SUPPORTED"/> * <enumeration value="ROADBLOCKING_NOT_SUPPORTED"/> * <enumeration value="INVALID_CREATIVE_ROTATION"/> * <enumeration value="INVALID_LINE_ITEM_TYPE"/> * <enumeration value="INVALID_COST_TYPE"/> * <enumeration value="SIZE_NOT_SUPPORTED"/> * <enumeration value="ZERO_COST_PER_UNIT_NOT_SUPPORTED"/> * <enumeration value="CANNOT_UPDATE_FIELD_FOR_APPROVED_LINE_ITEMS"/> * <enumeration value="CANNOT_CREATE_LINE_ITEM_FOR_APPROVED_ORDER"/> * <enumeration value="CANNOT_UPDATE_BACKFILL_WEB_PROPERTY_FOR_APPROVED_LINE_ITEMS"/> * <enumeration value="COST_PER_UNIT_TOO_LOW"/> * <enumeration value="UNKNOWN"/> * </restriction> * </simpleType> * </pre> * */ @XmlType(name = "ProgrammaticError.Reason") @XmlEnum public enum ProgrammaticErrorReason { /** * * Audience extension is not supported by programmatic line items. * * */ AUDIENCE_EXTENSION_NOT_SUPPORTED, /** * * Auto extension days is not supported by programmatic line items. * * */ AUTO_EXTENSION_DAYS_NOT_SUPPORTED, /** * * Video is currently not supported. * * */ VIDEO_NOT_SUPPORTED, /** * * Roadblocking is not supported by programmatic line items. * * */ ROADBLOCKING_NOT_SUPPORTED, /** * * Programmatic line items do not support {@link CreativeRotationType#SEQUENTIAL}. * * */ INVALID_CREATIVE_ROTATION, /** * * Programmatic line items only support {@link LineItemType#STANDARD} and * {@link LineItemType#SPONSORSHIP} if the relevant feature is on. * * */ INVALID_LINE_ITEM_TYPE, /** * * Programmatic line items only support {@link CostType#CPM}. * * */ INVALID_COST_TYPE, /** * * Programmatic line items only support a creative size that is supported by AdX. * The list of supported sizes is maintained based on the list published in the help docs: * <a href="https://support.google.com/adxseller/answer/1100453"> * https://support.google.com/adxseller/answer/1100453</a> * * */ SIZE_NOT_SUPPORTED, /** * * Zero cost per unit is not supported by programmatic line items. * * */ ZERO_COST_PER_UNIT_NOT_SUPPORTED, /** * * Some fields cannot be updated on approved line items. * * */ CANNOT_UPDATE_FIELD_FOR_APPROVED_LINE_ITEMS, /** * * Creating a new line item in an approved order is not allowed. * * */ CANNOT_CREATE_LINE_ITEM_FOR_APPROVED_ORDER, /** * * Cannot change backfill web property for a programmatic line item whose order has been * approved. * * */ CANNOT_UPDATE_BACKFILL_WEB_PROPERTY_FOR_APPROVED_LINE_ITEMS, /** * * Cost per unit is too low. It has to be at least 0.005 USD. * * */ COST_PER_UNIT_TOO_LOW, /** * * The value returned if the actual value is not exposed by the requested API version. * * */ UNKNOWN; public String value() { return name(); } public static ProgrammaticErrorReason fromValue(String v) { return valueOf(v); } }