Provides operations for creating, updating, and retrieving [Site](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site) objects.

*** ** * ** ***

Production WSDL
:
    `
    https://ads.google.com/apis/ads/publisher/v202605/SiteService?wsdl
    `

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202605`

Operations
:
    - [createSites](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#createSites)
    - [getSitesByStatement](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#getSitesByStatement)
    - [performSiteAction](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#performSiteAction)
    - [updateSites](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#updateSites)

Errors
:
    - [AdSenseAccountError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#AdSenseAccountError)
    - [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#ApiVersionError)
    - [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#AuthenticationError)
    - [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#CollectionSizeError)
    - [CommonError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#CommonError)
    - [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#EntityLimitReachedError)
    - [FeatureError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#FeatureError)
    - [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#InternalApiError)
    - [NotNullError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#NotNullError)
    - [NullError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#NullError)
    - [ParseError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#ParseError)
    - [PermissionError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#PermissionError)
    - [PublisherQueryLanguageContextError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#PublisherQueryLanguageContextError)
    - [PublisherQueryLanguageSyntaxError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#PublisherQueryLanguageSyntaxError)
    - [QuotaError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#QuotaError)
    - [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#RequiredCollectionError)
    - [RequiredError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#RequiredError)
    - [ServerError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#ServerError)
    - [SiteError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#SiteError)
    - [StatementError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#StatementError)
    - [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#StringFormatError)
    - [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#StringLengthError)
    - [UrlError](https://developers.google.com/ad-manager/api/reference/v202605/SiteService#UrlError)

## createSites

Creates new [Site](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site) objects.

### Parameters

| Field | Type | Description |
|---|---|---|
| `sites` | `` ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site[]` `` |   |

### Response

| Field | Type | Description |
|---|---|---|
| `rval` | `` ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site[]` `` |   |

## getSitesByStatement

Gets a [SitePage](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.SitePage) of [Site](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site) objects that satisfy the given [Statement.query](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Statement#query).
The following fields are supported for filtering:

| PQL Property | Object Property |
|---|---|
| `id` | [Site.id](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site#id) |
| `url` | [Site.url](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site#url) |
| `childNetworkCode` | [Site.childNetworkCode](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site#childNetworkCode) |
| `approvalStatus` | [Site.approvalStatus](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site#approvalStatus) |
| `lastModifiedApprovalStatusDateTime` |   |

Restriction: The `lastModifiedApprovalStatusDateTime` PQL property can only be used in a top-level expression scoping the `filterStatement` to [Site](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site)s whose `approvalStatus` was modified on or after a specified date and time. (e.x. `"WHERE
lastModifiedApprovalStatusDateTime >= '2022-01-01T00:00:00'"`).

<br />

### Parameters

| Field | Type | Description |
|---|---|---|
| `filterStatement` | `` ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Statement ` `` |   |

### Response

| Field | Type | Description |
|---|---|---|
| `rval` | `` ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.SitePage ` `` |   |

## performSiteAction

Performs actions on [Site](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site) objects that match the given [Statement.query](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Statement#query).

### Parameters

| Field | Type | Description |
|---|---|---|
| `siteAction` | `` 1. ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.SiteAction ` 1. ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.DeactivateSite ` 2. ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.SubmitSiteForApproval ` `` |   |
| `filterStatement` | `` ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Statement ` `` |   |

### Response

| Field | Type | Description |
|---|---|---|
| `rval` | `` ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.UpdateResult ` `` |   |

## updateSites


Updates the specified [Site](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site) objects.

The [Site.childNetworkCode](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.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` | `` ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site[]` `` |   |

### Response

| Field | Type | Description |
|---|---|---|
| `rval` | `` ` https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Site[]` `` |   |

## Errors

| Error | Reasons |
|---|---|
| [`AdSenseAccountError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.AdSenseAccountError) | *** ** * ** *** **Enumerations** `ASSOCIATE_ACCOUNT_API_ERROR` : `CANNOT_ACCESS_INVALID_ACCOUNT` : `ACCOUNT_ACCESS_DENIED` : `GET_AD_SLOT_API_ERROR` : `GET_CHANNEL_API_ERROR` : `GET_BULK_ACCOUNT_STATUSES_API_ERROR` : `RESEND_VERIFICATION_EMAIL_ERROR` : `UNEXPECTED_API_RESPONSE_ERROR` : `UNKNOWN` : |
| [`ApiVersionError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.ApiVersionError) | *** ** * ** *** **Enumerations** `UPDATE_TO_NEWER_VERSION` : `UNKNOWN` : |
| [`AuthenticationError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.AuthenticationError) | *** ** * ** *** **Enumerations** `AMBIGUOUS_SOAP_REQUEST_HEADER` : `INVALID_EMAIL` : `AUTHENTICATION_FAILED` : `INVALID_OAUTH_SIGNATURE` : `INVALID_SERVICE` : `MISSING_SOAP_REQUEST_HEADER` : `MISSING_AUTHENTICATION_HTTP_HEADER` : `MISSING_AUTHENTICATION` : `NETWORK_API_ACCESS_DISABLED` : `NO_NETWORKS_TO_ACCESS` : `NETWORK_NOT_FOUND` : `NETWORK_CODE_REQUIRED` : `CONNECTION_ERROR` : `GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK` : `UNDER_INVESTIGATION` : `UNKNOWN` : |
| [`CollectionSizeError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.CollectionSizeError) | *** ** * ** *** **Enumerations** `TOO_LARGE` : `UNKNOWN` : |
| [`CommonError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.CommonError) | *** ** * ** *** **Enumerations** `NOT_FOUND` : `ALREADY_EXISTS` : `NOT_APPLICABLE` : `DUPLICATE_OBJECT` : `CANNOT_UPDATE` : `UNSUPPORTED_OPERATION` : `CONCURRENT_MODIFICATION` : `REQUEST_TOO_LARGE` : `UNKNOWN` : |
| [`EntityLimitReachedError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.EntityLimitReachedError) | *** ** * ** *** **Enumerations** `CUSTOM_TARGETING_VALUES_LIMIT_REACHED` : `AD_EXCLUSION_RULES_LIMIT_REACHED` : `FIRST_PARTY_AUDIENCE_SEGMENTS_LIMIT_REACHED` : `PLACEMENTS_LIMIT_REACHED` : `LINE_ITEMS_LIMIT_REACHED` : `ACTIVE_LINE_ITEMS_LIMIT_REACHED` : `DAI_ENCODING_PROFILES_LIMIT_REACHED` : `TRAFFIC_FORECAST_SEGMENTS_LIMIT_REACHED` : `FORECAST_ADJUSTMENTS_LIMIT_REACHED` : `ACTIVE_EXPERIMENTS_LIMIT_REACHED` : `SITES_LIMIT_REACHED` : `USER_TEAMS_LIMIT_REACHED` : `ACTIVE_TARGETING_PRESETS_LIMIT_REACHED` : `UNKNOWN` : |
| [`FeatureError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.FeatureError) | *** ** * ** *** **Enumerations** `MISSING_FEATURE` : `UNKNOWN` : |
| [`InternalApiError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.InternalApiError) | *** ** * ** *** **Enumerations** `UNEXPECTED_INTERNAL_API_ERROR` : `TRANSIENT_ERROR` : `UNKNOWN` : `DOWNTIME` : `ERROR_GENERATING_RESPONSE` : |
| [`NotNullError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.NotNullError) | *** ** * ** *** **Enumerations** `ARG1_NULL` : `ARG2_NULL` : `ARG3_NULL` : `NULL` : `UNKNOWN` : |
| [`NullError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.NullError) | *** ** * ** *** **Enumerations** `NOT_NULL` : `UNKNOWN` : |
| [`ParseError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.ParseError) | *** ** * ** *** **Enumerations** `UNPARSABLE` : `UNKNOWN` : |
| [`PermissionError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.PermissionError) | *** ** * ** *** **Enumerations** `PERMISSION_DENIED` : `UNKNOWN` : |
| [`PublisherQueryLanguageContextError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.PublisherQueryLanguageContextError) | *** ** * ** *** **Enumerations** `UNEXECUTABLE` : `UNKNOWN` : |
| [`PublisherQueryLanguageSyntaxError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.PublisherQueryLanguageSyntaxError) | *** ** * ** *** **Enumerations** `UNPARSABLE` : `UNKNOWN` : |
| [`QuotaError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.QuotaError) | *** ** * ** *** **Enumerations** `EXCEEDED_QUOTA` : `UNKNOWN` : `REPORT_JOB_LIMIT` : `SEGMENT_POPULATION_LIMIT` : |
| [`RequiredCollectionError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.RequiredCollectionError) | *** ** * ** *** **Enumerations** `REQUIRED` : `TOO_LARGE` : `TOO_SMALL` : `UNKNOWN` : |
| [`RequiredError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.RequiredError) | *** ** * ** *** **Enumerations** `REQUIRED` : |
| [`ServerError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.ServerError) | *** ** * ** *** **Enumerations** `SERVER_ERROR` : `SERVER_BUSY` : `UNKNOWN` : |
| [`SiteError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.SiteError) | *** ** * ** *** **Enumerations** `INVALID_CHILD_NETWORK_CODE` : `CANNOT_ARCHIVE_SITE_WITH_SUBSITES` : `INVALID_URL_FOR_SITE` : `MULTIPLE_UPDATES_FOR_SAME_SITE` : `TOO_MANY_SITES_PER_REVIEW_REQUEST` : `TOO_MANY_REVIEW_REQUESTS_FOR_SITE` : `INVALID_APPROVAL_STATUS_FOR_REVIEW` : `UNKNOWN` : |
| [`StatementError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.StatementError) | *** ** * ** *** **Enumerations** `VARIABLE_NOT_BOUND_TO_VALUE` : `UNKNOWN` : |
| [`StringFormatError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.StringFormatError) | *** ** * ** *** **Enumerations** `UNKNOWN` : `ILLEGAL_CHARS` : `INVALID_FORMAT` : |
| [`StringLengthError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.StringLengthError) | *** ** * ** *** **Enumerations** `TOO_LONG` : `TOO_SHORT` : `UNKNOWN` : |
| [`UrlError`](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.UrlError) | *** ** * ** *** **Enumerations** `CANNOT_USE_RESERVED_URL` : `CANNOT_USE_GOOGLE_URL` : `INVALID_URL` : `UNKNOWN` : |