// 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.v201608;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ReportError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ReportError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="DEFAULT"/>
* <enumeration value="REPORT_ACCESS_NOT_ALLOWED"/>
* <enumeration value="DIMENSION_VIEW_NOT_ALLOWED"/>
* <enumeration value="DIMENSION_COMBINATION_NOT_ALLOWED"/>
* <enumeration value="ATTRIBUTE_VIEW_NOT_ALLOWED"/>
* <enumeration value="COLUMN_VIEW_NOT_ALLOWED"/>
* <enumeration value="TOO_MANY_CONCURRENT_REPORTS"/>
* <enumeration value="REPORT_QUERY_TOO_LONG"/>
* <enumeration value="INVALID_OPERATION_FOR_REPORT_STATE"/>
* <enumeration value="INVALID_DIMENSIONS"/>
* <enumeration value="INVALID_ATTRIBUTES"/>
* <enumeration value="INVALID_CONTENT_HIERARCHY_DIMENSIONS"/>
* <enumeration value="INVALID_COLUMNS"/>
* <enumeration value="INVALID_DIMENSION_FILTERS"/>
* <enumeration value="INVALID_DATE"/>
* <enumeration value="END_DATE_TIME_NOT_AFTER_START_TIME"/>
* <enumeration value="NOT_NULL"/>
* <enumeration value="ATTRIBUTES_NOT_SUPPORTED_FOR_REQUEST"/>
* <enumeration value="COLUMNS_NOT_SUPPORTED_FOR_REQUESTED_DIMENSIONS"/>
* <enumeration value="FAILED_TO_STORE_REPORT"/>
* <enumeration value="REPORT_NOT_FOUND"/>
* <enumeration value="SR_CANNOT_RUN_REPORT_IN_ANOTHER_NETWORK"/>
* <enumeration value="UNKNOWN"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "ReportError.Reason")
@XmlEnum
public enum ReportErrorReason {
/**
*
* Default {@code ReportError} when the reason is not among any already
* defined.
*
*
*/
DEFAULT,
/**
*
* User does not have permission to access the report.
*
*
*/
REPORT_ACCESS_NOT_ALLOWED,
/**
*
* User does not have permission to view one or more {@link Dimension}.
*
*
*/
DIMENSION_VIEW_NOT_ALLOWED,
/**
*
* User does not have permission to view the {@link Dimension} combination.
*
*
*/
DIMENSION_COMBINATION_NOT_ALLOWED,
/**
*
* User has no permission to view one or more attributes.
*
*
*/
ATTRIBUTE_VIEW_NOT_ALLOWED,
/**
*
* User does not have permission to view one or more {@link Column}.
*
*
*/
COLUMN_VIEW_NOT_ALLOWED,
/**
*
* The user has exceeded the limit on the number of reports that can be run
* concurrently. The current limit is 30 per user.
*
*
*/
TOO_MANY_CONCURRENT_REPORTS,
/**
*
* The report query exceeds the maximum allowed number of characters.
*
*
*/
REPORT_QUERY_TOO_LONG,
/**
*
* Invalid report job state for the given operation.
*
*
*/
INVALID_OPERATION_FOR_REPORT_STATE,
/**
*
* Invalid {@link Dimension} objects specified.
*
*
*/
INVALID_DIMENSIONS,
/**
*
* The attribute ID(s) are not valid.
*
*
*/
INVALID_ATTRIBUTES,
/**
*
* The API error when running the report with {@link ContentHierarchyDimension}. There are three
* reasons for this error.
* <ol>
* <li>{@link ReportQuery#dimensions} contains {@link Dimension#CONTENT_HIERARCHY}, but
* {@link ReportQuery#contentMetadataHierarchyCustomTargetingKeyIds} is empty.</li>
*
* <li>{@link ReportQuery#contentMetadataHierarchyCustomTargetingKeyIds} is non-empty, but
* {@link ReportQuery#dimensions} does not contain {@link Dimension#CONTENT_HIERARCHY}.</li>
*
* <li>The {@link ReportQuery#contentMetadataKeyHierarchyCustomTargetingKeyIds} specified along
* with the {@link Dimension#CONTENT_HIERARCHY} are not valid, i.e., these IDs are not defined
* in the content hierarchy by the publisher.</li>
* </ol>
*
*
*/
INVALID_CONTENT_HIERARCHY_DIMENSIONS,
/**
*
* Invalid {@link Column} objects specified.
*
*
*/
INVALID_COLUMNS,
/**
*
* Invalid {@link DimensionFilter} objects specified.
*
*
*/
INVALID_DIMENSION_FILTERS,
/**
*
* Invalid date.
*
*
*/
INVALID_DATE,
/**
*
* The start date for running the report should not be later than the end
* date.
*
*
*/
END_DATE_TIME_NOT_AFTER_START_TIME,
/**
*
* The list of {@link Dimension} and {@link Column} objects cannot be empty.
*
*
*/
NOT_NULL,
/**
*
* Attribute has to be selected in combination with dimensions.
*
*
*/
ATTRIBUTES_NOT_SUPPORTED_FOR_REQUEST,
/**
*
* Not all {@link Column} objects requested are supported for the given set
* of {@link Dimension} objects.
*
*
*/
COLUMNS_NOT_SUPPORTED_FOR_REQUESTED_DIMENSIONS,
/**
*
* Failed to store/cache a report.
*
*
*/
FAILED_TO_STORE_REPORT,
/**
*
* The requested report does not exist.
*
*
*/
REPORT_NOT_FOUND,
/**
*
* User has no permission to view in another network.
*
*
*/
SR_CANNOT_RUN_REPORT_IN_ANOTHER_NETWORK,
/**
*
* The value returned if the actual value is not exposed by the requested API version.
*
*
*/
UNKNOWN;
public String value() {
return name();
}
public static ReportErrorReason fromValue(String v) {
return valueOf(v);
}
}