// 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.adwords.jaxws.v201702.cm;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CriterionError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="CriterionError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="CONCRETE_TYPE_REQUIRED"/>
* <enumeration value="INVALID_EXCLUDED_CATEGORY"/>
* <enumeration value="INVALID_KEYWORD_TEXT"/>
* <enumeration value="KEYWORD_TEXT_TOO_LONG"/>
* <enumeration value="KEYWORD_HAS_TOO_MANY_WORDS"/>
* <enumeration value="KEYWORD_HAS_INVALID_CHARS"/>
* <enumeration value="INVALID_PLACEMENT_URL"/>
* <enumeration value="INVALID_USER_LIST"/>
* <enumeration value="INVALID_USER_INTEREST"/>
* <enumeration value="INVALID_FORMAT_FOR_PLACEMENT_URL"/>
* <enumeration value="PLACEMENT_URL_IS_TOO_LONG"/>
* <enumeration value="PLACEMENT_URL_HAS_ILLEGAL_CHAR"/>
* <enumeration value="PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE"/>
* <enumeration value="PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION"/>
* <enumeration value="INVALID_VERTICAL_PATH"/>
* <enumeration value="YOUTUBE_VERTICAL_CHANNEL_DEPRECATED"/>
* <enumeration value="YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED"/>
* <enumeration value="YOUTUBE_URL_UNSUPPORTED"/>
* <enumeration value="CANNOT_EXCLUDE_CRITERIA_TYPE"/>
* <enumeration value="CANNOT_ADD_CRITERIA_TYPE"/>
* <enumeration value="INVALID_PRODUCT_FILTER"/>
* <enumeration value="PRODUCT_FILTER_TOO_LONG"/>
* <enumeration value="CANNOT_EXCLUDE_SIMILAR_USER_LIST"/>
* <enumeration value="CANNOT_ADD_CLOSED_USER_LIST"/>
* <enumeration value="CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS"/>
* <enumeration value="CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS"/>
* <enumeration value="CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS"/>
* <enumeration value="CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS"/>
* <enumeration value="CANNOT_ADD_DESTINATION_URL_TO_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS"/>
* <enumeration value="INVALID_IP_ADDRESS"/>
* <enumeration value="INVALID_IP_FORMAT"/>
* <enumeration value="INVALID_MOBILE_APP"/>
* <enumeration value="INVALID_MOBILE_APP_CATEGORY"/>
* <enumeration value="INVALID_CRITERION_ID"/>
* <enumeration value="CANNOT_TARGET_CRITERION"/>
* <enumeration value="CANNOT_TARGET_OBSOLETE_CRITERION"/>
* <enumeration value="CRITERION_ID_AND_TYPE_MISMATCH"/>
* <enumeration value="INVALID_PROXIMITY_RADIUS"/>
* <enumeration value="INVALID_PROXIMITY_RADIUS_UNITS"/>
* <enumeration value="INVALID_STREETADDRESS_LENGTH"/>
* <enumeration value="INVALID_CITYNAME_LENGTH"/>
* <enumeration value="INVALID_REGIONCODE_LENGTH"/>
* <enumeration value="INVALID_REGIONNAME_LENGTH"/>
* <enumeration value="INVALID_POSTALCODE_LENGTH"/>
* <enumeration value="INVALID_COUNTRY_CODE"/>
* <enumeration value="INVALID_LATITUDE"/>
* <enumeration value="INVALID_LONGITUDE"/>
* <enumeration value="PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL"/>
* <enumeration value="INVALID_PROXIMITY_ADDRESS"/>
* <enumeration value="INVALID_USER_DOMAIN_NAME"/>
* <enumeration value="CRITERION_PARAMETER_TOO_LONG"/>
* <enumeration value="AD_SCHEDULE_TIME_INTERVALS_OVERLAP"/>
* <enumeration value="AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS"/>
* <enumeration value="AD_SCHEDULE_INVALID_TIME_INTERVAL"/>
* <enumeration value="AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT"/>
* <enumeration value="AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS"/>
* <enumeration value="CANNOT_BID_MODIFY_CRITERION_TYPE"/>
* <enumeration value="CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT"/>
* <enumeration value="CANNOT_BID_MODIFY_NEGATIVE_CRITERION"/>
* <enumeration value="BID_MODIFIER_ALREADY_EXISTS"/>
* <enumeration value="FEED_ID_NOT_ALLOWED"/>
* <enumeration value="ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE"/>
* <enumeration value="CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY"/>
* <enumeration value="CANNOT_EXCLUDE_CRITERION"/>
* <enumeration value="CANNOT_REMOVE_CRITERION"/>
* <enumeration value="PRODUCT_SCOPE_TOO_LONG"/>
* <enumeration value="PRODUCT_SCOPE_TOO_MANY_DIMENSIONS"/>
* <enumeration value="PRODUCT_PARTITION_TOO_LONG"/>
* <enumeration value="PRODUCT_PARTITION_TOO_MANY_DIMENSIONS"/>
* <enumeration value="INVALID_PRODUCT_DIMENSION"/>
* <enumeration value="INVALID_PRODUCT_DIMENSION_TYPE"/>
* <enumeration value="INVALID_PRODUCT_BIDDING_CATEGORY"/>
* <enumeration value="MISSING_SHOPPING_SETTING"/>
* <enumeration value="INVALID_MATCHING_FUNCTION"/>
* <enumeration value="LOCATION_FILTER_NOT_ALLOWED"/>
* <enumeration value="LOCATION_FILTER_INVALID"/>
* <enumeration value="CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP"/>
* <enumeration value="UNKNOWN"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "CriterionError.Reason")
@XmlEnum
public enum CriterionErrorReason {
/**
*
* Concrete type of criterion is required for ADD and SET operations.
*
*
*/
CONCRETE_TYPE_REQUIRED,
/**
*
* The category requested for exclusion is invalid.
*
*
*/
INVALID_EXCLUDED_CATEGORY,
/**
*
* Invalid keyword criteria text.
*
*
*/
INVALID_KEYWORD_TEXT,
/**
*
* Keyword text should be less than 80 chars.
*
*
*/
KEYWORD_TEXT_TOO_LONG,
/**
*
* Keyword text has too many words.
*
*
*/
KEYWORD_HAS_TOO_MANY_WORDS,
/**
*
* Keyword text has invalid characters or symbols.
*
*
*/
KEYWORD_HAS_INVALID_CHARS,
/**
*
* Invalid placement URL.
*
*
*/
INVALID_PLACEMENT_URL,
/**
*
* Invalid user list criterion.
*
*
*/
INVALID_USER_LIST,
/**
*
* Invalid user interest criterion.
*
*
*/
INVALID_USER_INTEREST,
/**
*
* Placement URL has wrong format.
*
*
*/
INVALID_FORMAT_FOR_PLACEMENT_URL,
/**
*
* Placement URL is too long.
*
*
*/
PLACEMENT_URL_IS_TOO_LONG,
/**
*
* Indicates the URL contains an illegal character.
*
*
*/
PLACEMENT_URL_HAS_ILLEGAL_CHAR,
/**
*
* Indicates the URL contains multiple comma separated URLs.
*
*
*/
PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE,
/**
*
* Indicates the domain is blacklisted.
*
*
*/
PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION,
/**
*
* Invalid vertical path.
*
*
*/
INVALID_VERTICAL_PATH,
/**
*
* Indicates the placement is a YouTube vertical channel, which is no longer supported.
*
*
*/
YOUTUBE_VERTICAL_CHANNEL_DEPRECATED,
/**
*
* Indicates the placement is a YouTube demographic channel, which is no longer supported.
*
*
*/
YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED,
/**
*
* YouTube urls are not supported in Placement criterion. Use YouTubeChannel and
* YouTubeVideo criterion instead.
*
*
*/
YOUTUBE_URL_UNSUPPORTED,
/**
*
* Criteria type can not be excluded by the customer,
* like AOL account type cannot target site type criteria.
*
*
*/
CANNOT_EXCLUDE_CRITERIA_TYPE,
/**
*
* Criteria type can not be targeted.
*
*
*/
CANNOT_ADD_CRITERIA_TYPE,
/**
*
* Product filter in the product criteria has invalid characters.
* Operand and the argument in the filter can not have "==" or "&+".
*
*
*/
INVALID_PRODUCT_FILTER,
/**
*
* Product filter in the product criteria is translated to a string as
* operand1==argument1&+operand2==argument2, maximum allowed length for
* the string is 255 chars.
*
*
*/
PRODUCT_FILTER_TOO_LONG,
/**
*
* Not allowed to exclude similar user list.
*
*
*/
CANNOT_EXCLUDE_SIMILAR_USER_LIST,
/**
*
* Not allowed to target a closed user list.
*
*
*/
CANNOT_ADD_CLOSED_USER_LIST,
/**
*
* Not allowed to add display only UserLists to search only campaigns.
*
*
*/
CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS,
/**
*
* Not allowed to add display only UserLists to search plus campaigns.
*
*
*/
CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS,
/**
*
* Not allowed to add User interests to search only campaigns.
*
*
*/
CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS,
/**
*
* Not allowed to set bids for this criterion type in search campaigns
*
*
*/
CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS,
/**
*
* Destination URL cannot be set for the criterion types of Gender, AgeRange,
* UserList, Placement, MobileApp, and MobileAppCategory in search campaigns.
*
*
*/
CANNOT_ADD_DESTINATION_URL_TO_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS,
/**
*
* IP address is not valid.
*
*
*/
INVALID_IP_ADDRESS,
/**
*
* IP format is not valid.
*
*
*/
INVALID_IP_FORMAT,
/**
*
* Mobile application is not valid.
*
*
*/
INVALID_MOBILE_APP,
/**
*
* Mobile application category is not valid.
*
*
*/
INVALID_MOBILE_APP_CATEGORY,
/**
*
* The CriterionId does not exist or is of the incorrect type.
*
*
*/
INVALID_CRITERION_ID,
/**
*
* The Criterion is not allowed to be targeted.
*
*
*/
CANNOT_TARGET_CRITERION,
/**
*
* The criterion is not allowed to be targeted as it is deprecated.
*
*
*/
CANNOT_TARGET_OBSOLETE_CRITERION,
/**
*
* The CriterionId is not valid for the type.
*
*
*/
CRITERION_ID_AND_TYPE_MISMATCH,
/**
*
* Distance for the radius for the proximity criterion is invalid.
*
*
*/
INVALID_PROXIMITY_RADIUS,
/**
*
* Units for the distance for the radius for the proximity criterion is invalid.
*
*
*/
INVALID_PROXIMITY_RADIUS_UNITS,
/**
*
* Street address is too short.
*
*
*/
INVALID_STREETADDRESS_LENGTH,
/**
*
* City name in the address is too short.
*
*
*/
INVALID_CITYNAME_LENGTH,
/**
*
* Region code in the address is too short.
*
*
*/
INVALID_REGIONCODE_LENGTH,
/**
*
* Region name in the address is not valid.
*
*
*/
INVALID_REGIONNAME_LENGTH,
/**
*
* Postal code in the address is not valid.
*
*
*/
INVALID_POSTALCODE_LENGTH,
/**
*
* Country code in the address is not valid.
*
*
*/
INVALID_COUNTRY_CODE,
/**
*
* Latitude for the GeoPoint is not valid.
*
*
*/
INVALID_LATITUDE,
/**
*
* Longitude for the GeoPoint is not valid.
*
*
*/
INVALID_LONGITUDE,
/**
*
* The Proximity input is not valid. Both address and geoPoint cannot be null.
*
*
*/
PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL,
/**
*
* The Proximity address cannot be geocoded to a valid lat/long.
*
*
*/
INVALID_PROXIMITY_ADDRESS,
/**
*
* User domain name is not valid.
*
*
*/
INVALID_USER_DOMAIN_NAME,
/**
*
* Length of serialized criterion parameter exceeded size limit.
*
*
*/
CRITERION_PARAMETER_TOO_LONG,
/**
*
* Time interval in the AdSchedule overlaps with another AdSchedule.
*
*
*/
AD_SCHEDULE_TIME_INTERVALS_OVERLAP,
/**
*
* AdSchedule time interval cannot span multiple days.
*
*
*/
AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS,
/**
*
* AdSchedule time interval specified is invalid,
* endTime cannot be earlier than startTime.
*
*
*/
AD_SCHEDULE_INVALID_TIME_INTERVAL,
/**
*
* The number of AdSchedule entries in a day exceeds the limit.
*
*
*/
AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT,
/**
*
* CriteriaId does not match the interval of the AdSchedule specified.
*
*
*/
AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS,
/**
*
* Cannot set bid modifier for this criterion type.
*
*
*/
CANNOT_BID_MODIFY_CRITERION_TYPE,
/**
*
* Cannot bid modify criterion, since it is opted out of the campaign.
*
*
*/
CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT,
/**
*
* Cannot set bid modifier for a negative criterion.
*
*
*/
CANNOT_BID_MODIFY_NEGATIVE_CRITERION,
/**
*
* Bid Modifier already exists. Use SET operation to update.
*
*
*/
BID_MODIFIER_ALREADY_EXISTS,
/**
*
* Feed Id is not allowed in these Location Groups.
*
*
*/
FEED_ID_NOT_ALLOWED,
/**
*
* The account may not use the requested criteria type. For example, some
* accounts are restricted to keywords only.
*
*
*/
ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE,
/**
*
* The requested criteria type cannot be used with campaign or ad group bidding strategy.
*
*
*/
CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY,
/**
*
* The Criterion is not allowed to be excluded.
*
*
*/
CANNOT_EXCLUDE_CRITERION,
/**
*
* The criterion is not allowed to be removed. For example, we cannot remove any
* of the platform criterion.
*
*
*/
CANNOT_REMOVE_CRITERION,
/**
*
* The combined length of product dimension values of the product scope criterion is too long.
*
*
*/
PRODUCT_SCOPE_TOO_LONG,
/**
*
* Product scope contains too many dimensions.
*
*
*/
PRODUCT_SCOPE_TOO_MANY_DIMENSIONS,
/**
*
* The combined length of product dimension values of the product partition criterion is too
* long.
*
*
*/
PRODUCT_PARTITION_TOO_LONG,
/**
*
* Product partition contains too many dimensions.
*
*
*/
PRODUCT_PARTITION_TOO_MANY_DIMENSIONS,
/**
*
* The product dimension is invalid (e.g. dimension contains illegal value, dimension type is
* represented with wrong class, etc). Product dimension value can not contain "==" or "&+".
*
*
*/
INVALID_PRODUCT_DIMENSION,
/**
*
* Product dimension type is either invalid for campaigns of this type or cannot be used in the
* current context. BIDDING_CATEGORY_Lx and PRODUCT_TYPE_Lx product dimensions must be used in
* ascending order of their levels: L1, L2, L3, L4, L5... The levels must be specified
* sequentially and start from L1. Furthermore, an "others" product partition cannot be
* subdivided with a dimension of the same type but of a higher level ("others"
* BIDDING_CATEGORY_L3 can be subdivided with BRAND but not with BIDDING_CATEGORY_L4).
*
*
*/
INVALID_PRODUCT_DIMENSION_TYPE,
/**
*
* Bidding categories do not form a valid path in the Shopping bidding category taxonomy.
*
*
*/
INVALID_PRODUCT_BIDDING_CATEGORY,
/**
*
* ShoppingSetting must be added to the campaign before ProductScope criteria can be added.
*
*
*/
MISSING_SHOPPING_SETTING,
/**
*
* Matching function is invalid.
*
*
*/
INVALID_MATCHING_FUNCTION,
/**
*
* Filter parameters not allowed for location groups targeting.
*
*
*/
LOCATION_FILTER_NOT_ALLOWED,
/**
*
* Given location filter parameter is invalid for location groups targeting.
*
*
*/
LOCATION_FILTER_INVALID,
/**
*
* Criteria type cannot be associated with a campaign and its ad group(s) simultaneously.
*
*
*/
CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP,
UNKNOWN;
public String value() {
return name();
}
public static CriterionErrorReason fromValue(String v) {
return valueOf(v);
}
}