AI-generated Key Takeaways
- 
          The SiteService provides operations to manage Site objects in Ad Manager. 
- 
          You can create, retrieve based on a statement, perform actions on, and update Site objects using this service. 
- 
          The service defines various error types that can occur during operations, including authentication, collection size, and site-specific errors. 
- Production WSDL
- 
               https://ads.google.com/apis/ads/publisher/v202411/SiteService?wsdl
- Namespace
- 
               https://www.google.com/apis/ads/publisher/v202411
- Operations
- Errors
- 
               - AdSenseAccountError
- ApiVersionError
- AuthenticationError
- CollectionSizeError
- CommonError
- EntityLimitReachedError
- FeatureError
- InternalApiError
- NotNullError
- NullError
- ParseError
- PermissionError
- PublisherQueryLanguageContextError
- PublisherQueryLanguageSyntaxError
- QuotaError
- RequiredCollectionError
- RequiredError
- ServerError
- SiteError
- StatementError
- StringFormatError
- StringLengthError
- UrlError
 
createSites
Creates new Site objects.
Parameters
| Field | Type | Description | 
|---|---|---|
| sites | 
                               | 
Response
| Field | Type | Description | 
|---|---|---|
| rval | 
                               | 
getSitesByStatement
Gets a SitePage of Site objects that satisfy the given Statement.query. The following fields are supported for filtering:
| PQL Property | Object Property | 
|---|---|
| id | Site.id | 
| url | Site.url | 
| childNetworkCode | Site.childNetworkCode | 
| approvalStatus | Site.approvalStatus | 
| lastModifiedApprovalStatusDateTime | 
lastModifiedApprovalStatusDateTime PQL property can only be used in a
        top-level expression scoping the filterStatement to Sites whose approvalStatus was modified on or after a specified date and time. (e.x. "WHERE
        lastModifiedApprovalStatusDateTime >= '2022-01-01T00:00:00'").
            Parameters
| Field | Type | Description | 
|---|---|---|
| filterStatement | 
                               | 
Response
| Field | Type | Description | 
|---|---|---|
| rval | 
                               | 
performSiteAction
Performs actions on Site objects that match the given Statement.query.
Parameters
| Field | Type | Description | 
|---|---|---|
| siteAction | 
                              
                            | |
| filterStatement | 
                               | 
Response
| Field | Type | Description | 
|---|---|---|
| rval | 
                               | 
updateSites
Updates the specified Site objects.
The Site.childNetworkCode can be updated in order to 1) change the child network, 2) move a site from O&O to represented, or 3) move a site from represented to O&O.
Parameters
| Field | Type | Description | 
|---|---|---|
| sites | 
                               | 
Response
| Field | Type | Description | 
|---|---|---|
| rval | 
                               | 
Errors
| Error | Reasons | 
|---|---|
| AdSenseAccountError | Enumerations 
 | 
| ApiVersionError | Enumerations 
 | 
| AuthenticationError | Enumerations 
 | 
| CollectionSizeError | Enumerations 
 | 
| CommonError | Enumerations 
 | 
| EntityLimitReachedError | Enumerations 
 | 
| FeatureError | Enumerations 
 | 
| InternalApiError | Enumerations 
 | 
| NotNullError | Enumerations 
 | 
| NullError | Enumerations 
 | 
| ParseError | Enumerations 
 | 
| PermissionError | Enumerations 
 | 
| PublisherQueryLanguageContextError | Enumerations 
 | 
| PublisherQueryLanguageSyntaxError | Enumerations 
 | 
| QuotaError | Enumerations 
 | 
| RequiredCollectionError | Enumerations 
 | 
| RequiredError | Enumerations 
 | 
| ServerError | Enumerations 
 | 
| SiteError | Enumerations 
 | 
| StatementError | Enumerations 
 | 
| StringFormatError | Enumerations 
 | 
| StringLengthError | Enumerations 
 | 
| UrlError | Enumerations 
 |