// 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 CreativeError.Reason. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <simpleType name="CreativeError.Reason"> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="FLASH_AND_FALLBACK_URL_ARE_SAME"/> * <enumeration value="INVALID_INTERNAL_REDIRECT_URL"/> * <enumeration value="DESTINATION_URL_REQUIRED"/> * <enumeration value="CANNOT_CREATE_OR_UPDATE_LEGACY_DFP_CREATIVE"/> * <enumeration value="CANNOT_CREATE_OR_UPDATE_LEGACY_DFP_MOBILE_CREATIVE"/> * <enumeration value="MISSING_FEATURE"/> * <enumeration value="INVALID_COMPANY_TYPE"/> * <enumeration value="INVALID_ADSENSE_CREATIVE_SIZE"/> * <enumeration value="INVALID_AD_EXCHANGE_CREATIVE_SIZE"/> * <enumeration value="DUPLICATE_ASSET_IN_CREATIVE"/> * <enumeration value="CREATIVE_ASSET_CANNOT_HAVE_ID_AND_BYTE_ARRAY"/> * <enumeration value="CANNOT_CREATE_OR_UPDATE_UNSUPPORTED_CREATIVE"/> * <enumeration value="CANNOT_CREATE_PROGRAMMATIC_CREATIVES"/> * <enumeration value="UNKNOWN"/> * </restriction> * </simpleType> * </pre> * */ @XmlType(name = "CreativeError.Reason") @XmlEnum public enum CreativeErrorReason { /** * * {@link FlashRedirectCreative#flashUrl} and * {@link FlashRedirectCreative#fallbackUrl} are the same. The fallback URL * is used when the flash URL does not work and must be different from it. * * */ FLASH_AND_FALLBACK_URL_ARE_SAME, /** * * The internal redirect URL was invalid. The URL must have the following * syntax http://ad.doubleclick.net/ad/sitename/;sz=size. * * */ INVALID_INTERNAL_REDIRECT_URL, /** * * {@link HasDestinationUrlCreative#destinationUrl} is required. * * */ DESTINATION_URL_REQUIRED, /** * * Cannot create or update legacy DART For Publishers creative. * * */ CANNOT_CREATE_OR_UPDATE_LEGACY_DFP_CREATIVE, /** * * Cannot create or update legacy mobile creative. * * */ CANNOT_CREATE_OR_UPDATE_LEGACY_DFP_MOBILE_CREATIVE, /** * * The user is missing a necessary feature. * * */ MISSING_FEATURE, /** * * Company type should be one of Advertisers, House Advertisers and * Ad Networks. * * */ INVALID_COMPANY_TYPE, /** * * Invalid size for AdSense dynamic allocation creative. * Only valid AFC sizes are allowed. * * */ INVALID_ADSENSE_CREATIVE_SIZE, /** * * Invalid size for Ad Exchange dynamic allocation creative. * Only valid Ad Exchange sizes are allowed. * * */ INVALID_AD_EXCHANGE_CREATIVE_SIZE, /** * * Assets associated with the same creative must be unique. * * */ DUPLICATE_ASSET_IN_CREATIVE, /** * * A creative asset cannot contain an asset ID and a byte array. * * */ CREATIVE_ASSET_CANNOT_HAVE_ID_AND_BYTE_ARRAY, /** * * Cannot create or update unsupported creative. * * */ CANNOT_CREATE_OR_UPDATE_UNSUPPORTED_CREATIVE, /** * * Cannot create programmatic creatives. * * */ CANNOT_CREATE_PROGRAMMATIC_CREATIVES, /** * * The value returned if the actual value is not exposed by the requested API version. * * */ UNKNOWN; public String value() { return name(); } public static CreativeErrorReason fromValue(String v) { return valueOf(v); } }