class PropertiesAudiences extends Resource (View source)

The "audiences" collection of methods.

Typical usage is:

 $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...);
 $audiences = $analyticsadminService->audiences;

Methods

archive(string $name, GoogleAnalyticsAdminV1alphaArchiveAudienceRequest $postBody, array $optParams = [])

Archives an Audience on a property. (audiences.archive)

create(string $parent, GoogleAnalyticsAdminV1alphaAudience $postBody, array $optParams = [])

Creates an Audience. (audiences.create)

get(string $name, array $optParams = [])

Lookup for a single Audience. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.

listPropertiesAudiences(string $parent, array $optParams = [])

Lists Audiences on a property. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.

patch(string $name, GoogleAnalyticsAdminV1alphaAudience $postBody, array $optParams = [])

Updates an Audience on a property. (audiences.patch)

Details

GoogleProtobufEmpty archive(string $name, GoogleAnalyticsAdminV1alphaArchiveAudienceRequest $postBody, array $optParams = [])

Archives an Audience on a property. (audiences.archive)

Parameters

string $name

Required. Example format: properties/1234/audiences/5678

GoogleAnalyticsAdminV1alphaArchiveAudienceRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

GoogleAnalyticsAdminV1alphaAudience create(string $parent, GoogleAnalyticsAdminV1alphaAudience $postBody, array $optParams = [])

Creates an Audience. (audiences.create)

Parameters

string $parent

Required. Example format: properties/1234

GoogleAnalyticsAdminV1alphaAudience $postBody
array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1alphaAudience

GoogleAnalyticsAdminV1alphaAudience get(string $name, array $optParams = [])

Lookup for a single Audience. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.

(audiences.get)

Parameters

string $name

Required. The name of the Audience to get. Example format: properties/1234/audiences/5678

array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1alphaAudience

GoogleAnalyticsAdminV1alphaListAudiencesResponse listPropertiesAudiences(string $parent, array $optParams = [])

Lists Audiences on a property. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.

(audiences.listPropertiesAudiences)

Parameters

string $parent

Required. Example format: properties/1234

array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1alphaListAudiencesResponse

GoogleAnalyticsAdminV1alphaAudience patch(string $name, GoogleAnalyticsAdminV1alphaAudience $postBody, array $optParams = [])

Updates an Audience on a property. (audiences.patch)

Parameters

string $name

Output only. The resource name for this Audience resource. Format: properties/{propertyId}/audiences/{audienceId}

GoogleAnalyticsAdminV1alphaAudience $postBody
array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1alphaAudience