type PermissionError (v202502)Stay organized with collectionsSave and categorize content based on your preferences.
Page Summary
PermissionError indicates an error related to incorrect user permissions for a request.
This error can be inherited from the ApiError class and includes details like field path and trigger data.
Specific reasons for PermissionError includePERMISSION_DENIEDwhen the user lacks required permissions andUNKNOWNfor values not exposed by the API version.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[],["The core content details various services within an ad management system, including AdRule, Adjustment, AdsTxt, AudienceSegment, and many others, totaling 40 services, each with potential `PermissionError`. These services also use the `ApiError` type. `ApiError` type contain field paths, triggers, and error strings. The `PermissionError` specifically indicates when a user lacks necessary permissions for a request, with possible reasons being `PERMISSION_DENIED` or `UNKNOWN`.\n"]]