type ApiException (v202505)

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

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

  • ApiException itself contains an errors field, which is a list of various specific API error types.

  • The errors field can contain a wide range of errors, including those related to ad breaks, API versioning, authentication, collection size, common issues, entity limits, features, internal API problems, invalid URLs, live stream events, null/not null values, parsing, permissions, publisher query language, quotas, ranges, required fields, server issues, statements, string formatting/length, uniqueness, and video ad tags.

Exception class for holding a list of service errors.


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

Field

ApplicationException (inherited)

message

xsd:string

Error message.

ApiException

errors

  1. ApiError[]
    1. AdBreakMarkupError
    2. ApiVersionError
    3. AuthenticationError
    4. CollectionSizeError
    5. CommonError
    6. EntityLimitReachedError
    7. FeatureError
    8. InternalApiError
    9. InvalidUrlError
    10. LiveStreamEventActionError
    11. LiveStreamEventCdnSettingsE...
    12. LiveStreamEventConditioning...
    13. LiveStreamEventCustomAssetK...
    14. LiveStreamEventDateTimeError
    15. LiveStreamEventDvrWindowError
    16. LiveStreamEventPrerollSetti...
    17. LiveStreamEventSlateError
    18. NotNullError
    19. NullError
    20. ParseError
    21. PermissionError
    22. PublisherQueryLanguageConte...
    23. PublisherQueryLanguageSynta...
    24. QuotaError
    25. RangeError
    26. RequiredCollectionError
    27. RequiredError
    28. RequiredNumberError
    29. ServerError
    30. StatementError
    31. StringFormatError
    32. StringLengthError
    33. UniqueError
    34. VideoAdTagError

List of errors.