class PlatformsAccountsSites extends Resource (View source)

The "sites" collection of methods.

Typical usage is:

 $adsenseplatformService = new Google\Service\AdSensePlatform(...);
 $sites = $adsenseplatformService->platforms_accounts_sites;

Methods

create(string $parent, Site $postBody, array $optParams = [])

Creates a site for a specified account. (sites.create)

delete(string $name, array $optParams = [])

Deletes a site from a specified account. (sites.delete)

get(string $name, array $optParams = [])

Gets a site from a specified sub-account. (sites.get)

listPlatformsAccountsSites(string $parent, array $optParams = [])

Lists sites for a specific account. (sites.listPlatformsAccountsSites)

requestReview(string $name, array $optParams = [])

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. (sites.requestReview)

Details

Site create(string $parent, Site $postBody, array $optParams = [])

Creates a site for a specified account. (sites.create)

Parameters

string $parent

Required. Account to create site. Format: platforms/{platform}/accounts/{account_id}

Site $postBody
array $optParams

Optional parameters.

Return Value

Site

Exceptions

Exception

AdsenseplatformEmpty delete(string $name, array $optParams = [])

Deletes a site from a specified account. (sites.delete)

Parameters

string $name

Required. The name of the site to delete. Format: platforms/{platform}/accounts/{account}/sites/{site}

array $optParams

Optional parameters.

Return Value

AdsenseplatformEmpty

Exceptions

Exception

Site get(string $name, array $optParams = [])

Gets a site from a specified sub-account. (sites.get)

Parameters

string $name

Required. The name of the site to retrieve. Format: platforms/{platform}/accounts/{account}/sites/{site}

array $optParams

Optional parameters.

Return Value

Site

Exceptions

Exception

ListSitesResponse listPlatformsAccountsSites(string $parent, array $optParams = [])

Lists sites for a specific account. (sites.listPlatformsAccountsSites)

Parameters

string $parent

Required. The account which owns the sites. Format: platforms/{platform}/accounts/{account}

array $optParams

Optional parameters.

Return Value

ListSitesResponse

Exceptions

Exception

RequestSiteReviewResponse requestReview(string $name, array $optParams = [])

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. (sites.requestReview)

Parameters

string $name

Required. The name of the site to submit for review. Format: platforms/{platform}/accounts/{account}/sites/{site}

array $optParams

Optional parameters.

Return Value

RequestSiteReviewResponse

Exceptions

Exception