type ApiException (v202411)

  • The ApiException class is used to hold a list of service errors that may occur during API calls.

  • It inherits from the ApplicationException class, which provides a basic error message.

  • ApiException includes a field called errors that contains a list of specific errors encountered.

  • These errors can range from authentication issues to data validation problems and internal server errors.

  • Developers should refer to the errors field to understand and handle these exceptions in their applications.

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. DaiAuthenticationKeyActionE...
    6. FeatureError
    7. InternalApiError
    8. NotNullError
    9. ParseError
    10. PermissionError
    11. PublisherQueryLanguageConte...
    12. PublisherQueryLanguageSynta...
    13. QuotaError
    14. RequiredCollectionError
    15. RequiredError
    16. ServerError
    17. StatementError
    18. StringFormatError
    19. StringLengthError
    20. UniqueError

List of errors.