Class PlatformsResource.AccountsResource.SitesResource
The "sites" collection of methods.
Inherited Members
Namespace: Google.Apis.AdSensePlatform.v1alpha
Assembly: Google.Apis.AdSensePlatform.v1alpha.dll
Syntax
public class PlatformsResource.AccountsResource.SitesResource
Constructors
SitesResource(IClientService)
Constructs a new resource.
Declaration
public SitesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Site, string)
Creates a site for a specified account.
Declaration
public virtual PlatformsResource.AccountsResource.SitesResource.CreateRequest Create(Site body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Site | body | The body of the request. |
string | parent | Required. Account to create site. Format: platforms/{platform}/accounts/{account_id} |
Returns
Type | Description |
---|---|
PlatformsResource.AccountsResource.SitesResource.CreateRequest |
Delete(string)
Deletes a site from a specified account.
Declaration
public virtual PlatformsResource.AccountsResource.SitesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the site to delete. Format: platforms/{platform}/accounts/{account}/sites/{site} |
Returns
Type | Description |
---|---|
PlatformsResource.AccountsResource.SitesResource.DeleteRequest |
Get(string)
Gets a site from a specified sub-account.
Declaration
public virtual PlatformsResource.AccountsResource.SitesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the site to retrieve. Format: platforms/{platform}/accounts/{account}/sites/{site} |
Returns
Type | Description |
---|---|
PlatformsResource.AccountsResource.SitesResource.GetRequest |
List(string)
Lists sites for a specific account.
Declaration
public virtual PlatformsResource.AccountsResource.SitesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The account which owns the sites. Format: platforms/{platform}/accounts/{account} |
Returns
Type | Description |
---|---|
PlatformsResource.AccountsResource.SitesResource.ListRequest |
RequestReview(string)
Requests the review of a site. The site should be in REQUIRES_REVIEW or NEEDS_ATTENTION state. Note: Make sure you place an ad tag on your site before requesting a review.
Declaration
public virtual PlatformsResource.AccountsResource.SitesResource.RequestReviewRequest RequestReview(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the site to submit for review. Format: platforms/{platform}/accounts/{account}/sites/{site} |
Returns
Type | Description |
---|---|
PlatformsResource.AccountsResource.SitesResource.RequestReviewRequest |