AI-generated Key Takeaways
-
This service provides operations for creating, updating, and retrieving Site objects.
-
You can create new sites using
createSitesand update existing ones withupdateSites. -
Sites can be retrieved based on specific criteria using
getSitesByStatement. -
Actions like deactivating or submitting sites for approval can be performed using
performSiteAction.
Provides operations for creating, updating, and retrieving Site objects.
- Production WSDL
-
https://ads.google.com/apis/ads/publisher/v202508/SiteService?wsdl - Namespace
-
https://www.google.com/apis/ads/publisher/v202508 - 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
|