public enum ReportErrorReason extends Enum<ReportErrorReason>
Java class for ReportError.Reason.
The following schema fragment specifies the expected content contained within this class.
<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="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="START_DATE_MORE_THAN_THREE_YEARS_AGO"/>
<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>
| Enum Constant and Description |
|---|
ATTRIBUTE_VIEW_NOT_ALLOWED
User has no permission to view one or more attributes.
|
ATTRIBUTES_NOT_SUPPORTED_FOR_REQUEST
Attribute has to be selected in combination with dimensions.
|
COLUMN_VIEW_NOT_ALLOWED
User does not have permission to view one or more
Column. |
COLUMNS_NOT_SUPPORTED_FOR_REQUESTED_DIMENSIONS
The provided report violates one or more constraints, which govern incompatibilities and
requirements between different report properties.
|
DEFAULT
Default
ReportError when the reason is not among any already
defined. |
DIMENSION_VIEW_NOT_ALLOWED
User does not have permission to view one or more
Dimension. |
END_DATE_TIME_NOT_AFTER_START_TIME
The start date for running the report should not be later than the end
date.
|
FAILED_TO_STORE_REPORT
Failed to store/cache a report.
|
INVALID_ATTRIBUTES
The attribute ID(s) are not valid.
|
INVALID_COLUMNS
Invalid
Column objects specified. |
INVALID_CONTENT_HIERARCHY_DIMENSIONS
The API error when running the report with
ContentHierarchyDimension. |
INVALID_DATE
Invalid date.
|
INVALID_DIMENSION_FILTERS
Invalid
DimensionFilter objects specified. |
INVALID_DIMENSIONS
Invalid
Dimension objects specified. |
INVALID_OPERATION_FOR_REPORT_STATE
Invalid report job state for the given operation.
|
NOT_NULL
|
REPORT_ACCESS_NOT_ALLOWED
User does not have permission to access the report.
|
REPORT_NOT_FOUND
The requested report does not exist.
|
REPORT_QUERY_TOO_LONG
The report query exceeds the maximum allowed number of characters.
|
SR_CANNOT_RUN_REPORT_IN_ANOTHER_NETWORK
User has no permission to view in another network.
|
START_DATE_MORE_THAN_THREE_YEARS_AGO
The start date for running the report should not be more than
three years before now.
|
TOO_MANY_CONCURRENT_REPORTS
The user has exceeded the limit on the number of reports that can be run
concurrently.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static ReportErrorReason |
fromValue(String v) |
String |
value() |
static ReportErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReportErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReportErrorReason DEFAULT
ReportError when the reason is not among any already
defined.public static final ReportErrorReason REPORT_ACCESS_NOT_ALLOWED
public static final ReportErrorReason DIMENSION_VIEW_NOT_ALLOWED
Dimension.public static final ReportErrorReason ATTRIBUTE_VIEW_NOT_ALLOWED
public static final ReportErrorReason COLUMN_VIEW_NOT_ALLOWED
Column.public static final ReportErrorReason TOO_MANY_CONCURRENT_REPORTS
public static final ReportErrorReason REPORT_QUERY_TOO_LONG
public static final ReportErrorReason INVALID_OPERATION_FOR_REPORT_STATE
public static final ReportErrorReason INVALID_DIMENSIONS
Dimension objects specified.public static final ReportErrorReason INVALID_ATTRIBUTES
public static final ReportErrorReason INVALID_CONTENT_HIERARCHY_DIMENSIONS
ContentHierarchyDimension. There are three
reasons for this error.
ReportQuery.dimensions contains Dimension.CONTENT_HIERARCHY, but
ReportQuery#contentMetadataHierarchyCustomTargetingKeyIds is empty.ReportQuery#contentMetadataHierarchyCustomTargetingKeyIds is non-empty, but
ReportQuery.dimensions does not contain Dimension.CONTENT_HIERARCHY.ReportQuery.contentMetadataKeyHierarchyCustomTargetingKeyIds specified along
with the Dimension.CONTENT_HIERARCHY are not valid, i.e., these IDs are not defined
in the content hierarchy by the publisher.public static final ReportErrorReason INVALID_COLUMNS
Column objects specified.public static final ReportErrorReason INVALID_DIMENSION_FILTERS
DimensionFilter objects specified.public static final ReportErrorReason INVALID_DATE
public static final ReportErrorReason END_DATE_TIME_NOT_AFTER_START_TIME
public static final ReportErrorReason START_DATE_MORE_THAN_THREE_YEARS_AGO
public static final ReportErrorReason NOT_NULL
public static final ReportErrorReason ATTRIBUTES_NOT_SUPPORTED_FOR_REQUEST
public static final ReportErrorReason COLUMNS_NOT_SUPPORTED_FOR_REQUESTED_DIMENSIONS
Column objects requested are supported for the given set
of Dimension objects.
Column
objects.
TimeZoneType is not compatible with the given set of
Column and Dimension objects (version 201802 and later).
Column objects
(version 201802 and later).
public static final ReportErrorReason FAILED_TO_STORE_REPORT
public static final ReportErrorReason REPORT_NOT_FOUND
public static final ReportErrorReason SR_CANNOT_RUN_REPORT_IN_ANOTHER_NETWORK
public static final ReportErrorReason UNKNOWN
public static ReportErrorReason[] values()
for (ReportErrorReason c : ReportErrorReason.values()) System.out.println(c);
public static ReportErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static ReportErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.