class ManagementFilters extends Resource (View source)

The "filters" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $filters = $analyticsService->management_filters;

Methods

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

Delete a filter. (filters.delete)

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

Returns filters to which the user has access. (filters.get)

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

Create a new filter. (filters.insert)

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

Lists all filters for an account (filters.listManagementFilters)

patch(string $accountId, string $filterId, Filter $postBody, array $optParams = [])

Updates an existing filter. This method supports patch semantics.

update(string $accountId, string $filterId, Filter $postBody, array $optParams = [])

Updates an existing filter. (filters.update)

Details

Filter delete(string $accountId, string $filterId, array $optParams = [])

Delete a filter. (filters.delete)

Parameters

string $accountId

Account ID to delete the filter for.

string $filterId

ID of the filter to be deleted.

array $optParams

Optional parameters.

Return Value

Filter

Exceptions

Exception

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

Returns filters to which the user has access. (filters.get)

Parameters

string $accountId

Account ID to retrieve filters for.

string $filterId

Filter ID to retrieve filters for.

array $optParams

Optional parameters.

Return Value

Filter

Exceptions

Exception

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

Create a new filter. (filters.insert)

Parameters

string $accountId

Account ID to create filter for.

Filter $postBody
array $optParams

Optional parameters.

Return Value

Filter

Exceptions

Exception

Filters listManagementFilters(string $accountId, array $optParams = [])

Lists all filters for an account (filters.listManagementFilters)

Parameters

string $accountId

Account ID to retrieve filters for.

array $optParams

Optional parameters.

Return Value

Filters

Exceptions

Exception

Filter patch(string $accountId, string $filterId, Filter $postBody, array $optParams = [])

Updates an existing filter. This method supports patch semantics.

(filters.patch)

Parameters

string $accountId

Account ID to which the filter belongs.

string $filterId

ID of the filter to be updated.

Filter $postBody
array $optParams

Optional parameters.

Return Value

Filter

Exceptions

Exception

Filter update(string $accountId, string $filterId, Filter $postBody, array $optParams = [])

Updates an existing filter. (filters.update)

Parameters

string $accountId

Account ID to which the filter belongs.

string $filterId

ID of the filter to be updated.

Filter $postBody
array $optParams

Optional parameters.

Return Value

Filter

Exceptions

Exception