class ManagementProfiles extends Resource (View source)

The "profiles" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $profiles = $analyticsService->management_profiles;

Methods

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

Deletes a view (profile). (profiles.delete)

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

Gets a view (profile) to which the user has access. (profiles.get)

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

Create a new view (profile). (profiles.insert)

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

Lists views (profiles) to which the user has access.

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

Updates an existing view (profile). This method supports patch semantics.

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

Updates an existing view (profile). (profiles.update)

Details

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

Deletes a view (profile). (profiles.delete)

Parameters

string $accountId

Account ID to delete the view (profile) for.

string $webPropertyId

Web property ID to delete the view (profile) for.

string $profileId

ID of the view (profile) to be deleted.

array $optParams

Optional parameters.

Exceptions

Exception

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

Gets a view (profile) to which the user has access. (profiles.get)

Parameters

string $accountId

Account ID to retrieve the view (profile) for.

string $webPropertyId

Web property ID to retrieve the view (profile) for.

string $profileId

View (Profile) ID to retrieve the view (profile) for.

array $optParams

Optional parameters.

Return Value

Profile

Exceptions

Exception

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

Create a new view (profile). (profiles.insert)

Parameters

string $accountId

Account ID to create the view (profile) for.

string $webPropertyId

Web property ID to create the view (profile) for.

Profile $postBody
array $optParams

Optional parameters.

Return Value

Profile

Exceptions

Exception

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

Lists views (profiles) to which the user has access.

(profiles.listManagementProfiles)

Parameters

string $accountId

Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.

string $webPropertyId

Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.

array $optParams

Optional parameters.

Return Value

Profiles

Exceptions

Exception

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

Updates an existing view (profile). This method supports patch semantics.

(profiles.patch)

Parameters

string $accountId

Account ID to which the view (profile) belongs

string $webPropertyId

Web property ID to which the view (profile) belongs

string $profileId

ID of the view (profile) to be updated.

Profile $postBody
array $optParams

Optional parameters.

Return Value

Profile

Exceptions

Exception

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

Updates an existing view (profile). (profiles.update)

Parameters

string $accountId

Account ID to which the view (profile) belongs

string $webPropertyId

Web property ID to which the view (profile) belongs

string $profileId

ID of the view (profile) to be updated.

Profile $postBody
array $optParams

Optional parameters.

Return Value

Profile

Exceptions

Exception