type ApiException (v202411)

  • ApiException is an exception class designed to contain a list of service errors encountered during API interactions.

  • This class inherits from ApplicationException and provides detailed information about errors through its errors field.

  • The errors field can include a variety of error types, ranging from authentication issues to data validation problems, each with its own specific details.

  • Developers can use this information to diagnose and address issues that arise when using the Google Ad Manager API.

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.