// 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.adwords.jaxws.v201609.cm; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for FeedItemError.Reason. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <simpleType name="FeedItemError.Reason"> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="CAMPAIGN_TARGETING_MISMATCH"/> * <enumeration value="CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING"/> * <enumeration value="CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING"/> * <enumeration value="CANNOT_OPERATE_ON_REMOVED_FEED_ITEM"/> * <enumeration value="DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE"/> * <enumeration value="KEY_ATTRIBUTES_NOT_FOUND"/> * <enumeration value="INVALID_DEVICE_PREFERENCE"/> * <enumeration value="INVALID_SCHEDULE_END"/> * <enumeration value="INVALID_URL"/> * <enumeration value="MISSING_KEY_ATTRIBUTES"/> * <enumeration value="KEY_ATTRIBUTES_NOT_UNIQUE"/> * <enumeration value="CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE"/> * <enumeration value="OVERLAPPING_SCHEDULES"/> * <enumeration value="SCHEDULE_END_NOT_AFTER_START"/> * <enumeration value="TOO_MANY_SCHEDULES_PER_DAY"/> * <enumeration value="SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE"/> * <enumeration value="UNKNOWN"/> * </restriction> * </simpleType> * </pre> * */ @XmlType(name = "FeedItemError.Reason") @XmlEnum public enum FeedItemErrorReason { /** * * Targeted adgroup's campaign does not match the targeted campaign. * * */ CAMPAIGN_TARGETING_MISMATCH, /** * * Cannot convert the feed attribute value from string to its real type. * * */ CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING, /** * * Cannot have a geo targeting restriction without having geo targeting. * * */ CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING, /** * * Cannot operate on removed feed item. * * */ CANNOT_OPERATE_ON_REMOVED_FEED_ITEM, /** * * Date time zone does not match the account's time zone. * * */ DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE, /** * * Feed item with the key attributes could not be found. * * */ KEY_ATTRIBUTES_NOT_FOUND, /** * * Unknown or unsupported device preference. * * */ INVALID_DEVICE_PREFERENCE, /** * * Invalid feed item schedule end time (i.e., endHour = 24 and endMinute != 0). * * */ INVALID_SCHEDULE_END, /** * * Url feed attribute value is not valid. * * */ INVALID_URL, /** * * Some key attributes are missing. * * */ MISSING_KEY_ATTRIBUTES, /** * * Feed item has same key attributes as another feed item. * * */ KEY_ATTRIBUTES_NOT_UNIQUE, /** * * Cannot modify key attributes on an existing feed item. * * */ CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE, /** * * Overlapping feed item schedule times (e.g., 7-10AM and 8-11AM) are not allowed. * * */ OVERLAPPING_SCHEDULES, /** * * Feed item schedule end time must be after start time. * * */ SCHEDULE_END_NOT_AFTER_START, /** * * There are too many feed item schedules per day. * * */ TOO_MANY_SCHEDULES_PER_DAY, /** * * The feed attribute value is too large. * * */ SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE, /** * * Unknown error. * * */ UNKNOWN; public String value() { return name(); } public static FeedItemErrorReason fromValue(String v) { return valueOf(v); } }