class Sites extends Resource (View source)

The "sites" collection of methods.

Typical usage is:

 $dfareportingService = new Google\Service\Dfareporting(...);
 $sites = $dfareportingService->sites;

Methods

get(string $profileId, string $id, array $optParams = [])

Gets one site by ID. (sites.get)

insert(string $profileId, Site $postBody, array $optParams = [])

Inserts a new site. (sites.insert)

listSites(string $profileId, array $optParams = [])

Retrieves a list of sites, possibly filtered. This method supports paging.

patch(string $profileId, string $id, Site $postBody, array $optParams = [])

Updates an existing site. This method supports patch semantics. (sites.patch)

update(string $profileId, Site $postBody, array $optParams = [])

Updates an existing site. (sites.update)

Details

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

Gets one site by ID. (sites.get)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Site ID.

array $optParams

Optional parameters.

Return Value

Site

Exceptions

Exception

Site insert(string $profileId, Site $postBody, array $optParams = [])

Inserts a new site. (sites.insert)

Parameters

string $profileId

User profile ID associated with this request.

Site $postBody
array $optParams

Optional parameters.

Return Value

Site

Exceptions

Exception

SitesListResponse listSites(string $profileId, array $optParams = [])

Retrieves a list of sites, possibly filtered. This method supports paging.

(sites.listSites)

Parameters

string $profileId

User profile ID associated with this request.

array $optParams

Optional parameters.

Return Value

SitesListResponse

Exceptions

Exception

Site patch(string $profileId, string $id, Site $postBody, array $optParams = [])

Updates an existing site. This method supports patch semantics. (sites.patch)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Required. Site ID.

Site $postBody
array $optParams

Optional parameters.

Return Value

Site

Exceptions

Exception

Site update(string $profileId, Site $postBody, array $optParams = [])

Updates an existing site. (sites.update)

Parameters

string $profileId

User profile ID associated with this request.

Site $postBody
array $optParams

Optional parameters.

Return Value

Site

Exceptions

Exception