AI-generated Key Takeaways
-
The Production WSDL for the SiteService is located at https://ads.google.com/apis/ads/publisher/v202502/SiteService?wsdl with a namespace of https://www.google.com/apis/ads/publisher/v202502.
-
The SiteService supports operations to create, retrieve, perform actions on, and update Site objects.
-
Sites can be retrieved by statement, filtering on properties such as id, url, childNetworkCode, approvalStatus, and lastModifiedApprovalStatusDateTime.
-
Various errors are defined for the SiteService, including issues related to AdSense accounts, API versions, authentication, collection sizes, common errors, entity limits, features, internal API problems, null or missing values, parsing, permissions, Publisher Query Language context and syntax, quotas, required collections or values, server issues, site-specific errors, statements, string formatting, string length, and URL problems.
- Production WSDL
-
https://ads.google.com/apis/ads/publisher/v202502/SiteService?wsdl - Namespace
-
https://www.google.com/apis/ads/publisher/v202502 - 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
|