type ApiException (v202508)

  • ApiException is an exception class used to hold a list of service errors.

  • It inherits from ApplicationException and includes a list of various specific error types.

  • The ApiException includes a 'message' field inherited from ApplicationException for a general error message.

  • The ApiException also contains an 'errors' field which is a list of specific API errors that occurred.

Exception class for holding a list of service errors.


Namespace
https://www.google.com/apis/ads/publisher/v202508

Field

ApplicationException (inherited)

message

xsd:string

Error message.

ApiException

errors

  1. ApiError[]
    1. ApiVersionError
    2. AuthenticationError
    3. CollectionSizeError
    4. CommonError
    5. CustomTargetingError
    6. EntityChildrenLimitReachedE...
    7. EntityLimitReachedError
    8. FeatureError
    9. InternalApiError
    10. NotNullError
    11. ParseError
    12. PermissionError
    13. PublisherQueryLanguageConte...
    14. PublisherQueryLanguageSynta...
    15. QuotaError
    16. RequiredCollectionError
    17. RequiredError
    18. AudienceSegmentError
    19. ServerError
    20. StatementError
    21. StringFormatError
    22. StringLengthError
    23. TypeError

List of errors.