// 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.mcm;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ManagedCustomerServiceError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ManagedCustomerServiceError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="UNKNOWN"/>
* <enumeration value="NOT_AUTHORIZED"/>
* <enumeration value="INVALID_SELECTOR"/>
* <enumeration value="INVALID_TIMEZONE"/>
* <enumeration value="INVALID_CURRENCY"/>
* <enumeration value="INVALID_DESCRIPTIVE_NAME"/>
* <enumeration value="ADD_CUSTOMER_FAILURE"/>
* <enumeration value="SAVE_CUSTOMERS_FAILURE"/>
* <enumeration value="ALREADY_MANAGED_BY_THIS_MANAGER"/>
* <enumeration value="ALREADY_INVITED_BY_THIS_MANAGER"/>
* <enumeration value="ALREADY_MANAGED_IN_HIERARCHY"/>
* <enumeration value="ALREADY_MANAGED_FOR_UI_ACCESS"/>
* <enumeration value="MAX_LINK_DEPTH_EXCEEDED"/>
* <enumeration value="NO_PENDING_INVITATION"/>
* <enumeration value="TOO_MANY_ACCOUNTS"/>
* <enumeration value="TOO_MANY_ACCOUNTS_AT_MANAGER"/>
* <enumeration value="TOO_MANY_UI_API_MANAGERS"/>
* <enumeration value="TEST_ACCOUNT_LINK_ERROR"/>
* <enumeration value="INVALID_LABEL_ID"/>
* <enumeration value="CANNOT_APPLY_INACTIVE_LABEL"/>
* <enumeration value="APPLIED_LABEL_TO_TOO_MANY_ACCOUNTS"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "ManagedCustomerServiceError.Reason")
@XmlEnum
public enum ManagedCustomerServiceErrorReason {
/**
*
* Unknown.
*
*
*/
UNKNOWN,
/**
*
* The user is not authorized to perform the action.
*
*
*/
NOT_AUTHORIZED,
/**
*
* Invalid selector
*
*
*/
INVALID_SELECTOR,
/**
*
* Can't process the passed in timezone.
*
*
*/
INVALID_TIMEZONE,
/**
*
* Can't process the passed in currency code.
*
*
*/
INVALID_CURRENCY,
/**
*
* Can't process the passed in descriptive name.
*
*
*/
INVALID_DESCRIPTIVE_NAME,
/**
*
* Generic error during add customer process.
*
*
*/
ADD_CUSTOMER_FAILURE,
/**
*
* There was a problem saving the modified customers, and some of the customers may not
* have been saved successfully.
*
*
*/
SAVE_CUSTOMERS_FAILURE,
/**
*
* Attempt to establish a link with a client that is already managed by the manager.
*
*
*/
ALREADY_MANAGED_BY_THIS_MANAGER,
/**
*
* Attempt to invite a client that has already been invited by the manager.
*
*
*/
ALREADY_INVITED_BY_THIS_MANAGER,
/**
*
* Already managed by some other manager in the hierarchy.
*
*
*/
ALREADY_MANAGED_IN_HIERARCHY,
/**
*
* Client is managed by another manager for UI access already.
*
*
*/
ALREADY_MANAGED_FOR_UI_ACCESS,
/**
*
* Attempt to exceed the maximum hierarchy depth.
*
*
*/
MAX_LINK_DEPTH_EXCEEDED,
/**
*
* Attempt to accept an invitation that doesn't exist.
*
*
*/
NO_PENDING_INVITATION,
/**
*
* Manager account has the maximum number of linked accounts.
*
*
*/
TOO_MANY_ACCOUNTS,
/**
*
* Your manager's account has the maximum number of linked accounts.
*
*
*/
TOO_MANY_ACCOUNTS_AT_MANAGER,
/**
*
* The invitee has already linked with max allowed number of UI and API managers.
*
*
*/
TOO_MANY_UI_API_MANAGERS,
/**
*
* Error involving test accounts (mixed types) or too many child accounts.
*
*
*/
TEST_ACCOUNT_LINK_ERROR,
/**
*
* Label id was not found, or is not owned by the requesting customer.
*
*
*/
INVALID_LABEL_ID,
/**
*
* Deleted labels cannot be applied to customers.
*
*
*/
CANNOT_APPLY_INACTIVE_LABEL,
/**
*
* A label cannot be applied to more than 1000 customers.
*
*
*/
APPLIED_LABEL_TO_TOO_MANY_ACCOUNTS;
public String value() {
return name();
}
public static ManagedCustomerServiceErrorReason fromValue(String v) {
return valueOf(v);
}
}