class ManagementExperiments extends Resource (View source)

The "experiments" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $experiments = $analyticsService->management_experiments;

Methods

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

Delete an experiment. (experiments.delete)

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

Returns an experiment to which the user has access. (experiments.get)

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

Create a new experiment. (experiments.insert)

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

Lists experiments to which the user has access.

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

Update an existing experiment. This method supports patch semantics.

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

Update an existing experiment. (experiments.update)

Details

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

Delete an experiment. (experiments.delete)

Parameters

string $accountId

Account ID to which the experiment belongs

string $webPropertyId

Web property ID to which the experiment belongs

string $profileId

View (Profile) ID to which the experiment belongs

string $experimentId

ID of the experiment to delete

array $optParams

Optional parameters.

Exceptions

Exception

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

Returns an experiment to which the user has access. (experiments.get)

Parameters

string $accountId

Account ID to retrieve the experiment for.

string $webPropertyId

Web property ID to retrieve the experiment for.

string $profileId

View (Profile) ID to retrieve the experiment for.

string $experimentId

Experiment ID to retrieve the experiment for.

array $optParams

Optional parameters.

Return Value

Experiment

Exceptions

Exception

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

Create a new experiment. (experiments.insert)

Parameters

string $accountId

Account ID to create the experiment for.

string $webPropertyId

Web property ID to create the experiment for.

string $profileId

View (Profile) ID to create the experiment for.

Experiment $postBody
array $optParams

Optional parameters.

Return Value

Experiment

Exceptions

Exception

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

Lists experiments to which the user has access.

(experiments.listManagementExperiments)

Parameters

string $accountId

Account ID to retrieve experiments for.

string $webPropertyId

Web property ID to retrieve experiments for.

string $profileId

View (Profile) ID to retrieve experiments for.

array $optParams

Optional parameters.

Return Value

Experiments

Exceptions

Exception

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

Update an existing experiment. This method supports patch semantics.

(experiments.patch)

Parameters

string $accountId

Account ID of the experiment to update.

string $webPropertyId

Web property ID of the experiment to update.

string $profileId

View (Profile) ID of the experiment to update.

string $experimentId

Experiment ID of the experiment to update.

Experiment $postBody
array $optParams

Optional parameters.

Return Value

Experiment

Exceptions

Exception

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

Update an existing experiment. (experiments.update)

Parameters

string $accountId

Account ID of the experiment to update.

string $webPropertyId

Web property ID of the experiment to update.

string $profileId

View (Profile) ID of the experiment to update.

string $experimentId

Experiment ID of the experiment to update.

Experiment $postBody
array $optParams

Optional parameters.

Return Value

Experiment

Exceptions

Exception