type ApiException (v202411)

  • The ApiException is an exception class that holds a list of service errors encountered during API calls.

  • This exception inherits from ApplicationException and provides a list of specific errors related to audience segments and other functionalities within the Ad Manager API.

  • The errors field contains a variety of error types, including authentication issues, custom targeting errors, permission errors, and more, which are indicated through different error classes.

  • Details about the specific errors encountered are conveyed within each error object present in the errors list, assisting in debugging and understanding the underlying cause.

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. 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.