class ManagementProfileUserLinks extends Resource (View source)

The "profileUserLinks" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $profileUserLinks = $analyticsService->management_profileUserLinks;

Methods

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

Removes a user from the given view (profile). (profileUserLinks.delete)

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

Adds a new user to the given view (profile). (profileUserLinks.insert)

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

Lists profile-user links for a given view (profile).

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

Updates permissions for an existing user on the given view (profile).

Details

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

Removes a user from the given view (profile). (profileUserLinks.delete)

Parameters

string $accountId

Account ID to delete the user link for.

string $webPropertyId

Web Property ID to delete the user link for.

string $profileId

View (Profile) ID to delete the user link for.

string $linkId

Link ID to delete the user link for.

array $optParams

Optional parameters.

Exceptions

Exception

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

Adds a new user to the given view (profile). (profileUserLinks.insert)

Parameters

string $accountId

Account ID to create the user link for.

string $webPropertyId

Web Property ID to create the user link for.

string $profileId

View (Profile) ID to create the user link for.

EntityUserLink $postBody
array $optParams

Optional parameters.

Return Value

EntityUserLink

Exceptions

Exception

Lists profile-user links for a given view (profile).

(profileUserLinks.listManagementProfileUserLinks)

Parameters

string $accountId

Account ID which the given view (profile) belongs to.

string $webPropertyId

Web Property ID which the given view (profile) belongs to. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.

string $profileId

View (Profile) ID to retrieve the profile-user links for. Can either be a specific profile ID or '~all', which refers to all the profiles that user has access to.

array $optParams

Optional parameters.

Return Value

EntityUserLinks

Exceptions

Exception

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

Updates permissions for an existing user on the given view (profile).

(profileUserLinks.update)

Parameters

string $accountId

Account ID to update the user link for.

string $webPropertyId

Web Property ID to update the user link for.

string $profileId

View (Profile ID) to update the user link for.

string $linkId

Link ID to update the user link for.

EntityUserLink $postBody
array $optParams

Optional parameters.

Return Value

EntityUserLink

Exceptions

Exception