type ApiException (v202411)

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

  • ApiException inherits from ApplicationException, which includes a "message" field for the error message.

  • ApiException contains an "errors" field which is a list of various types of API errors.

  • Common errors found in the "errors" list include AuthenticationError, PermissionError, QuotaError, and various targeting and creative-related errors.

Exception class for holding a list of service errors.


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

Field

ApplicationException (inherited)

message

xsd:string

Error message.

ApiException

errors

  1. ApiError[]
    1. ApiVersionError
    2. AuthenticationError
    3. CollectionSizeError
    4. CommonError
    5. CreativeTemplateError
    6. CustomTargetingError
    7. EntityChildrenLimitReachedE...
    8. FeatureError
    9. ImageError
    10. InternalApiError
    11. InvalidUrlError
    12. InventoryTargetingError
    13. NativeStyleError
    14. NotNullError
    15. NullError
    16. ParseError
    17. PermissionError
    18. PublisherQueryLanguageConte...
    19. PublisherQueryLanguageSynta...
    20. QuotaError
    21. RequiredCollectionError
    22. RequiredError
    23. RequiredSizeError
    24. ServerError
    25. StatementError
    26. StringFormatError
    27. StringLengthError
    28. TeamError
    29. UniqueError

List of errors.