type SiteError (v202502)Stay organized with collectionsSave and categorize content based on your preferences.
Page Summary
The SiteService includes various error types that inherit from ApiError, such as AuthenticationError and QuotaError.
SiteError is a specific error type within the SiteService, with a 'reason' field that provides specific error enumerations likeINVALID_URL_FOR_SITEandCANNOT_ARCHIVE_SITE_WITH_SUBSITES.
The namespace for these services and errors ishttps://www.google.com/apis/ads/publisher/v202502.
ApiError, which SiteError inherits from, includes fields such asfieldPath,fieldPathElements,trigger, anderrorString.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[],["The core content outlines the `SiteService` within the `CompanyService`, detailing its error hierarchy. `ApiError` is the base, with numerous specific error types inherited, including `AdSenseAccountError`, `AuthenticationError`, `SiteError`, among others. `SiteError` has a 'reason' field associated with various enumerations such as `INVALID_CHILD_NETWORK_CODE`, `CANNOT_ARCHIVE_SITE_WITH_SUBSITES`, and `UNKNOWN`, which are used to define the cause of the error. The namespace for these services and errors is provided.\n"]]