type ApiException (v202411)

  • ApiException is an exception class within the Google Ad Manager API that is used for holding a list of service errors encountered during API calls.

  • This exception class inherits from ApplicationException and provides a field called "errors" containing detailed information about each error encountered.

  • The "errors" field includes a variety of specific error types like AdRuleDateError, AdRuleError, AuthenticationError, and more, each offering insights into the nature of the issue.

  • This structure facilitates troubleshooting by providing developers with actionable information regarding the causes of API failures.

  • The namespace for this class is https://www.google.com/apis/ads/publisher/v202411.

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. AdRuleDateError
    2. AdRuleError
    3. AdRuleFrequencyCapError
    4. AdRulePriorityError
    5. AdRuleSlotError
    6. AdRuleTargetingError
    7. ApiVersionError
    8. AuthenticationError
    9. CollectionSizeError
    10. CommonError
    11. CustomTargetingError
    12. FeatureError
    13. GeoTargetingError
    14. InternalApiError
    15. InventoryTargetingError
    16. NotNullError
    17. ParseError
    18. PermissionError
    19. PoddingError
    20. PublisherQueryLanguageConte...
    21. PublisherQueryLanguageSynta...
    22. QuotaError
    23. RequiredCollectionError
    24. RequiredError
    25. RequiredNumberError
    26. ServerError
    27. StatementError
    28. StringFormatError
    29. StringLengthError
    30. UniqueError

List of errors.