// 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 ProposalError.Reason. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <simpleType name="ProposalError.Reason"> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="AD_SERVER_UNKNOWN_ERROR"/> * <enumeration value="AD_SERVER_API_ERROR"/> * <enumeration value="UPDATE_ADVERTISER_NOT_ALLOWED"/> * <enumeration value="UPDATE_PROPOSAL_NOT_ALLOWED"/> * <enumeration value="INVALID_CONTACT"/> * <enumeration value="DUPLICATED_CONTACT"/> * <enumeration value="UNACCEPTABLE_COMPANY_CREDIT_STATUS"/> * <enumeration value="PRIMARY_AGENCY_REQUIRED"/> * <enumeration value="PRIMARY_AGENCY_NOT_UNIQUE"/> * <enumeration value="DUPLICATED_COMPANY_ASSOCIATION"/> * <enumeration value="DUPLICATED_SALESPERSON"/> * <enumeration value="DUPLICATED_SALES_PLANNER"/> * <enumeration value="DUPLICATED_TRAFFICKER"/> * <enumeration value="HAS_NO_UNARCHIVED_PROPOSAL_LINEITEMS"/> * <enumeration value="DUPLICATE_TERMS_AND_CONDITIONS"/> * <enumeration value="UNSUPPORTED_PROPOSAL_CURRENCY_CODE"/> * <enumeration value="INVALID_POC"/> * <enumeration value="UPDATE_CURRENCY_NOT_ALLOWED"/> * <enumeration value="UPDATE_TIME_ZONE_NOT_ALLOWED"/> * <enumeration value="UNKNOWN"/> * </restriction> * </simpleType> * </pre> * */ @XmlType(name = "ProposalError.Reason") @XmlEnum public enum ProposalErrorReason { /** * * Unknown error from ad-server * * */ AD_SERVER_UNKNOWN_ERROR, /** * * Ad-server reports an api error for the operation. * * */ AD_SERVER_API_ERROR, /** * * Advertiser cannot be updated once the proposal has been reserved. * * */ UPDATE_ADVERTISER_NOT_ALLOWED, /** * * Proposal cannot be updated when its status is not {@code DRAFT} or it is archived. * * */ UPDATE_PROPOSAL_NOT_ALLOWED, /** * * Contact associated with a proposal does not belong to the specific company. * * */ INVALID_CONTACT, /** * * Contact associated with a proposal's advertiser or agency is duplicated. * * */ DUPLICATED_CONTACT, /** * * A proposal cannot be created or updated because the company * it is associated with has {@link Company#creditStatus} * that is not {@code ACTIVE} or {@code ON_HOLD}. * * */ UNACCEPTABLE_COMPANY_CREDIT_STATUS, /** * * Cannot have other agencies without a primary agency. * * */ PRIMARY_AGENCY_REQUIRED, /** * * Cannot have more than one primary agency. * * */ PRIMARY_AGENCY_NOT_UNIQUE, /** * * Advertiser or agency associated with a proposal is duplicated. * * */ DUPLICATED_COMPANY_ASSOCIATION, /** * * Found duplicated primary or secondary sales person. * * */ DUPLICATED_SALESPERSON, /** * * Found duplicated sales planner. * * */ DUPLICATED_SALES_PLANNER, /** * * Found duplicated primary or secondary trafficker. * * */ DUPLICATED_TRAFFICKER, /** * * The proposal has no unarchived proposal line items. * * */ HAS_NO_UNARCHIVED_PROPOSAL_LINEITEMS, /** * * One or more of the terms and conditions being added already exists on the proposal. * * */ DUPLICATE_TERMS_AND_CONDITIONS, /** * * The currency code of the proposal is not supported by the current network. All supported * currencies can be found in the union of {@link Network#currencyCode} and * {@link Network#secondaryCurrencyCodes}. * * */ UNSUPPORTED_PROPOSAL_CURRENCY_CODE, /** * * The POC value of the proposal is invalid. * * */ INVALID_POC, /** * * Currency cannot be updated once the proposal has been reserved. * * */ UPDATE_CURRENCY_NOT_ALLOWED, /** * * Time zone cannot be updated once the proposal has been sold. * * */ UPDATE_TIME_ZONE_NOT_ALLOWED, /** * * The value returned if the actual value is not exposed by the requested API version. * * */ UNKNOWN; public String value() { return name(); } public static ProposalErrorReason fromValue(String v) { return valueOf(v); } }