com.google.api.ads.admanager.jaxws.v202405.ReservationDetailsErrorReason Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dfp-appengine Show documentation
Show all versions of dfp-appengine Show documentation
Ad Manager specific AppEngine components.
The newest version!
// Copyright 2024 Google LLC
//
// 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.admanager.jaxws.v202405;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ReservationDetailsError.Reason.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ReservationDetailsError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="UNLIMITED_UNITS_BOUGHT_NOT_ALLOWED"/>
* <enumeration value="UNLIMITED_END_DATE_TIME_NOT_ALLOWED"/>
* <enumeration value="PERCENTAGE_UNITS_BOUGHT_TOO_HIGH"/>
* <enumeration value="DURATION_NOT_ALLOWED"/>
* <enumeration value="UNIT_TYPE_NOT_ALLOWED"/>
* <enumeration value="COST_TYPE_NOT_ALLOWED"/>
* <enumeration value="COST_TYPE_UNIT_TYPE_MISMATCH_NOT_ALLOWED"/>
* <enumeration value="LINE_ITEM_TYPE_NOT_ALLOWED"/>
* <enumeration value="NETWORK_REMNANT_ORDER_CANNOT_UPDATE_LINEITEM_TYPE"/>
* <enumeration value="BACKFILL_WEBPROPERTY_CODE_NOT_ALLOWED"/>
* <enumeration value="CPA_DEPRECATED"/>
* <enumeration value="UNKNOWN"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ReservationDetailsError.Reason")
@XmlEnum
public enum ReservationDetailsErrorReason {
/**
*
* There is no limit on the number of ads delivered for a line item when you
* set {@link LineItem#duration} to be
* {@link LineItemSummary.Duration#NONE}. This can only be set for line
* items of type {@link LineItemType#PRICE_PRIORITY}.
*
*
*/
UNLIMITED_UNITS_BOUGHT_NOT_ALLOWED,
/**
*
* {@link LineItem#unlimitedEndDateTime} can be set to true for only
* line items of type {@link LineItemType#SPONSORSHIP},
* {@link LineItemType#NETWORK}, {@link LineItemType#PRICE_PRIORITY} and
* {@link LineItemType#HOUSE}.
*
*
*/
UNLIMITED_END_DATE_TIME_NOT_ALLOWED,
/**
*
* When {@link LineItem#lineItemType} is
* {@link LineItemType#SPONSORSHIP}, then
* {@link LineItem#unitsBought} represents the percentage of
* available impressions reserved. That value cannot exceed 100.
*
*
*/
PERCENTAGE_UNITS_BOUGHT_TOO_HIGH,
/**
*
* The line item type does not support the specified duration. See
* {@link LineItemSummary.Duration} for allowed values.
*
*
*/
DURATION_NOT_ALLOWED,
/**
*
* The {@link LineItem#unitType} is not allowed for the given
* {@link LineItem#lineItemType}. See {@link UnitType} for allowed
* values.
*
*
*/
UNIT_TYPE_NOT_ALLOWED,
/**
*
* The {@link LineItem#costType} is not allowed for the
* {@link LineItem#lineItemType}. See {@link CostType} for allowed
* values.
*
*
*/
COST_TYPE_NOT_ALLOWED,
/**
*
* When {@link LineItem#costType} is {@link CostType#CPM},
* {@link LineItem#unitType} must be {@link UnitType#IMPRESSIONS}
* and when {@link LineItem#costType} is {@link CostType#CPC},
* {@link LineItem#unitType} must be {@link UnitType#CLICKS}.
*
*
*/
COST_TYPE_UNIT_TYPE_MISMATCH_NOT_ALLOWED,
/**
*
* Inventory cannot be reserved for line items which are not of type
* {@link LineItemType#SPONSORSHIP} or {@link LineItemType#STANDARD}.
*
*
*/
LINE_ITEM_TYPE_NOT_ALLOWED,
/**
*
* Network remnant line items cannot be changed to other line item types once delivery begins.
* This restriction does not apply to any new line items created in Ad Manager.
*
*
*/
NETWORK_REMNANT_ORDER_CANNOT_UPDATE_LINEITEM_TYPE,
/**
*
* A dynamic allocation web property can only be set on a line item of type
* AdSense or Ad Exchange.
*
*
*/
BACKFILL_WEBPROPERTY_CODE_NOT_ALLOWED,
/**
*
* CPA {@link LineItem}s can't have end dates older than February 22, 2024.
*
*
*/
CPA_DEPRECATED,
/**
*
* The value returned if the actual value is not exposed by the requested API version.
*
*
*/
UNKNOWN;
public String value() {
return name();
}
public static ReservationDetailsErrorReason fromValue(String v) {
return valueOf(v);
}
}