class ManagementWebproperties extends Resource (View source)

The "webproperties" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $webproperties = $analyticsService->management_webproperties;

Methods

get(string $accountId, string $webPropertyId, array $optParams = [])

Gets a web property to which the user has access. (webproperties.get)

insert(string $accountId, Webproperty $postBody, array $optParams = [])

Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile. (webproperties.insert)

listManagementWebproperties(string $accountId, array $optParams = [])

Lists web properties to which the user has access.

patch(string $accountId, string $webPropertyId, Webproperty $postBody, array $optParams = [])

Updates an existing web property. This method supports patch semantics.

update(string $accountId, string $webPropertyId, Webproperty $postBody, array $optParams = [])

Updates an existing web property. (webproperties.update)

Details

Webproperty get(string $accountId, string $webPropertyId, array $optParams = [])

Gets a web property to which the user has access. (webproperties.get)

Parameters

string $accountId

Account ID to retrieve the web property for.

string $webPropertyId

ID to retrieve the web property for.

array $optParams

Optional parameters.

Return Value

Webproperty

Exceptions

Exception

Webproperty insert(string $accountId, Webproperty $postBody, array $optParams = [])

Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile. (webproperties.insert)

Parameters

string $accountId

Account ID to create the web property for.

Webproperty $postBody
array $optParams

Optional parameters.

Return Value

Webproperty

Exceptions

Exception

Webproperties listManagementWebproperties(string $accountId, array $optParams = [])

Lists web properties to which the user has access.

(webproperties.listManagementWebproperties)

Parameters

string $accountId

Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.

array $optParams

Optional parameters.

Return Value

Webproperties

Exceptions

Exception

Webproperty patch(string $accountId, string $webPropertyId, Webproperty $postBody, array $optParams = [])

Updates an existing web property. This method supports patch semantics.

(webproperties.patch)

Parameters

string $accountId

Account ID to which the web property belongs

string $webPropertyId

Web property ID

Webproperty $postBody
array $optParams

Optional parameters.

Return Value

Webproperty

Exceptions

Exception

Webproperty update(string $accountId, string $webPropertyId, Webproperty $postBody, array $optParams = [])

Updates an existing web property. (webproperties.update)

Parameters

string $accountId

Account ID to which the web property belongs

string $webPropertyId

Web property ID

Webproperty $postBody
array $optParams

Optional parameters.

Return Value

Webproperty

Exceptions

Exception