type PermissionError (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Errors related to incorrect permission.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
ApiError (inherited)
|
fieldPath
|
xsd:string
The OGNL field path to identify cause of error.
|
fieldPathElements
|
FieldPathElement[]
A parsed copy of the field path. For example, the field path "operations[1].operand"
corresponds to this list: {FieldPathElement(field = "operations", index = 1),
FieldPathElement(field = "operand", index = null)}.
|
trigger
|
xsd:string
The data that caused the error.
|
errorString
|
xsd:string
A simple string representation of the error and reason.
|
PermissionError
|
reason
|
PermissionError.Reason
Enumerations
-
PERMISSION_DENIED
- User does not have the required permission for the request.
-
UNKNOWN
- The value returned if the actual value is not exposed by the requested API version.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003ePermissionError\u003c/code\u003e object within the Google Ad Manager API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePermissionError\u003c/code\u003e occurs when a user lacks the necessary permissions to perform a specific request.\u003c/p\u003e\n"],["\u003cp\u003eThe error includes information such as \u003ccode\u003ereason\u003c/code\u003e, \u003ccode\u003efieldPath\u003c/code\u003e, \u003ccode\u003efieldPathElements\u003c/code\u003e, \u003ccode\u003etrigger\u003c/code\u003e, and \u003ccode\u003eerrorString\u003c/code\u003e for debugging.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereason\u003c/code\u003e field clarifies the type of permission issue, typically \u003ccode\u003ePERMISSION_DENIED\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should use this information to handle authorization issues and ensure users have appropriate permissions.\u003c/p\u003e\n"]]],["The content lists numerous services within an ad management API, such as `AdRuleService`, `AdjustmentService`, and `CustomTargetingService`. These services manage various aspects of ad operations. The information also details the inheritance of the `ApiError` type, which includes specific error types like `AuthenticationError`, `PermissionError`, and `QuotaError`, which are all related to the `CustomTargetingService` and how to resolve permission problems. The `PermissionError` is the only one that has been explained in depth, describing the `reason` and its possible values.\n"],null,["# type PermissionError (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.PermissionError) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.PermissionError) [AdsTxtService](/ad-manager/api/reference/v202408/AdsTxtService.PermissionError) [AudienceSegmentService](/ad-manager/api/reference/v202408/AudienceSegmentService.PermissionError) [CdnConfigurationService](/ad-manager/api/reference/v202408/CdnConfigurationService.PermissionError) [CmsMetadataService](/ad-manager/api/reference/v202408/CmsMetadataService.PermissionError) [CompanyService](/ad-manager/api/reference/v202408/CompanyService.PermissionError) [ContactService](/ad-manager/api/reference/v202408/ContactService.PermissionError) [ContentBundleService](/ad-manager/api/reference/v202408/ContentBundleService.PermissionError) [ContentService](/ad-manager/api/reference/v202408/ContentService.PermissionError) [CreativeService](/ad-manager/api/reference/v202408/CreativeService.PermissionError) [CreativeSetService](/ad-manager/api/reference/v202408/CreativeSetService.PermissionError) [CreativeTemplateService](/ad-manager/api/reference/v202408/CreativeTemplateService.PermissionError) [CreativeWrapperService](/ad-manager/api/reference/v202408/CreativeWrapperService.PermissionError) [CustomFieldService](/ad-manager/api/reference/v202408/CustomFieldService.PermissionError) **CustomTargetingService** [DaiAuthenticationKeyService](/ad-manager/api/reference/v202408/DaiAuthenticationKeyService.PermissionError) [DaiEncodingProfileService](/ad-manager/api/reference/v202408/DaiEncodingProfileService.PermissionError) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.PermissionError) [InventoryService](/ad-manager/api/reference/v202408/InventoryService.PermissionError) [LabelService](/ad-manager/api/reference/v202408/LabelService.PermissionError) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202408/LineItemCreativeAssociationService.PermissionError) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.PermissionError) [LineItemTemplateService](/ad-manager/api/reference/v202408/LineItemTemplateService.PermissionError) [LiveStreamEventService](/ad-manager/api/reference/v202408/LiveStreamEventService.PermissionError) [MobileApplicationService](/ad-manager/api/reference/v202408/MobileApplicationService.PermissionError) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.PermissionError) [NetworkService](/ad-manager/api/reference/v202408/NetworkService.PermissionError) [OrderService](/ad-manager/api/reference/v202408/OrderService.PermissionError) [PlacementService](/ad-manager/api/reference/v202408/PlacementService.PermissionError) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.PermissionError) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.PermissionError) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.PermissionError) [ReportService](/ad-manager/api/reference/v202408/ReportService.PermissionError) [SegmentPopulationService](/ad-manager/api/reference/v202408/SegmentPopulationService.PermissionError) [SiteService](/ad-manager/api/reference/v202408/SiteService.PermissionError) [StreamActivityMonitorService](/ad-manager/api/reference/v202408/StreamActivityMonitorService.PermissionError) [SuggestedAdUnitService](/ad-manager/api/reference/v202408/SuggestedAdUnitService.PermissionError) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.PermissionError) [TeamService](/ad-manager/api/reference/v202408/TeamService.PermissionError) [UserService](/ad-manager/api/reference/v202408/UserService.PermissionError) [UserTeamAssociationService](/ad-manager/api/reference/v202408/UserTeamAssociationService.PermissionError) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.PermissionError) **Inheritance** \n[ApiError](/ad-manager/api/reference/v202408/CustomTargetingService.ApiError) \n▼\n[ApiVersionError](/ad-manager/api/reference/v202408/CustomTargetingService.ApiVersionError) [AuthenticationError](/ad-manager/api/reference/v202408/CustomTargetingService.AuthenticationError) [CollectionSizeError](/ad-manager/api/reference/v202408/CustomTargetingService.CollectionSizeError) [CommonError](/ad-manager/api/reference/v202408/CustomTargetingService.CommonError) [CustomTargetingError](/ad-manager/api/reference/v202408/CustomTargetingService.CustomTargetingError) [EntityChildrenLimitReachedE...](/ad-manager/api/reference/v202408/CustomTargetingService.EntityChildrenLimitReachedError \"EntityChildrenLimitReachedError\") [EntityLimitReachedError](/ad-manager/api/reference/v202408/CustomTargetingService.EntityLimitReachedError) [FeatureError](/ad-manager/api/reference/v202408/CustomTargetingService.FeatureError) [InternalApiError](/ad-manager/api/reference/v202408/CustomTargetingService.InternalApiError) [NotNullError](/ad-manager/api/reference/v202408/CustomTargetingService.NotNullError) [NullError](/ad-manager/api/reference/v202408/CustomTargetingService.NullError) [ParseError](/ad-manager/api/reference/v202408/CustomTargetingService.ParseError) **PermissionError** [PublisherQueryLanguageConte...](/ad-manager/api/reference/v202408/CustomTargetingService.PublisherQueryLanguageContextError \"PublisherQueryLanguageContextError\") [PublisherQueryLanguageSynta...](/ad-manager/api/reference/v202408/CustomTargetingService.PublisherQueryLanguageSyntaxError \"PublisherQueryLanguageSyntaxError\") [QuotaError](/ad-manager/api/reference/v202408/CustomTargetingService.QuotaError) [RequiredCollectionError](/ad-manager/api/reference/v202408/CustomTargetingService.RequiredCollectionError) [RequiredError](/ad-manager/api/reference/v202408/CustomTargetingService.RequiredError) [ServerError](/ad-manager/api/reference/v202408/CustomTargetingService.ServerError) [StatementError](/ad-manager/api/reference/v202408/CustomTargetingService.StatementError) [StringFormatError](/ad-manager/api/reference/v202408/CustomTargetingService.StringFormatError) [StringLengthError](/ad-manager/api/reference/v202408/CustomTargetingService.StringLengthError) [TypeError](/ad-manager/api/reference/v202408/CustomTargetingService.TypeError) [UniqueError](/ad-manager/api/reference/v202408/CustomTargetingService.UniqueError)\n\nErrors related to incorrect permission.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **`ApiError` (inherited)** ||\n| ### `fieldPath` | ` `xsd:`string` The OGNL field path to identify cause of error. |\n| ### `fieldPathElements` | ` `[FieldPathElement](/ad-manager/api/reference/v202408/CustomTargetingService.FieldPathElement)`[]` A parsed copy of the field path. For example, the field path \"operations\\[1\\].operand\" corresponds to this list: {FieldPathElement(field = \"operations\", index = 1), FieldPathElement(field = \"operand\", index = null)}. |\n| ### `trigger` | ` `xsd:`string` The data that caused the error. |\n| ### `errorString` | ` `xsd:`string` A simple string representation of the error and reason. |\n| **`PermissionError`** ||\n| ### `reason` | ` `[PermissionError.Reason](/ad-manager/api/reference/v202408/CustomTargetingService.PermissionError.Reason)` ` *** ** * ** *** **Enumerations** `PERMISSION_DENIED` : User does not have the required permission for the request. `UNKNOWN` : The value returned if the actual value is not exposed by the requested API version. \u003cbr /\u003e |"]]