# Google Analytics Data V1beta Client - Class BetaAnalyticsDataClient (0.24.0)

0.24.0 (latest) 0.23.3 0.22.3 0.21.1 0.20.1 0.19.0 0.18.0 0.17.1 0.16.4 0.14.0 0.13.0 0.12.0 0.11.2 0.10.1 0.9.5

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Analytics Data V1beta Client class BetaAnalyticsDataClient.

Service Description: Google Analytics reporting data service.

This class provides the ability to make remote calls to the backing service through method
calls that map to API methods.

Many parameters require resource names to be formatted in a particular way. To
assist with these names, this class includes a format method for each type of
name, and additionally a parseName method to extract the individual identifiers
contained within formatted names that are returned by the API.

## Namespace

Google \\ Analytics \\ Data \\ V1beta \\ Client

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `options` | `array|https://docs.cloud.google.com/php/docs/reference/gax/latest/Options.ClientOptions.html` Optional. Options for configuring the service API wrapper. |
| `↳ apiEndpoint` | `string` The address of the API remote host. May optionally include the port, formatted as " |
| `↳ credentials` | `https://docs.cloud.google.com/php/docs/reference/auth/latest/FetchAuthTokenInterface.html|https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.html` This option should only be used with a pre-constructed [Google\\Auth\\FetchAuthTokenInterface](https://docs.cloud.google.com/php/docs/reference/auth/latest/FetchAuthTokenInterface.html) or [Google\\ApiCore\\CredentialsWrapper](https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.html) object. Note that when one of these objects are provided, any settings in $credentialsConfig will be ignored. **Important** : If you are providing a path to a credentials file, or a decoded credentials file as a PHP array, this usage is now DEPRECATED. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. It is recommended to create the credentials explicitly `use Google\Auth\Credentials\ServiceAccountCredentials; use Google\Analytics\Data\V1beta\BetaAnalyticsDataClient; $creds = new ServiceAccountCredentials($scopes, $json); $options = new BetaAnalyticsDataClient(['credentials' => $creds]);` <https://cloud.google.com/docs/authentication/external/externally-sourced-credentials> |
| `↳ credentialsConfig` | `array` Options used to configure credentials, including auth token caching, for the client. For a full list of supporting configuration options, see [Google\\ApiCore\\CredentialsWrapper::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.html#_Google_ApiCore_CredentialsWrapper__build__) . |
| `↳ disableRetries` | `bool` Determines whether or not retries defined by the client configuration should be disabled. Defaults to `false`. |
| `↳ clientConfig` | `string|array` Client method configuration, including retry settings. This option can be either a path to a JSON file, or a PHP array containing the decoded JSON data. By default this settings points to the default client config file, which is provided in the resources folder. |
| `↳ transport` | `string|https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.TransportInterface.html` The transport used for executing network requests. May be either the string `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. *Advanced usage* : Additionally, it is possible to pass in an already instantiated [Google\\ApiCore\\Transport\\TransportInterface](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.TransportInterface.html) object. Note that when this object is provided, any settings in $transportConfig, and any $apiEndpoint setting, will be ignored. |
| `↳ transportConfig` | `array` Configuration options that will be used to construct the transport. Options for each supported transport type should be passed in a key for that transport. For example: $transportConfig = \[ 'grpc' =\> \[...\], 'rest' =\> \[...\], \]; See the [Google\\ApiCore\\Transport\\GrpcTransport::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.GrpcTransport.html#_Google_ApiCore_Transport_GrpcTransport__build__) and [Google\\ApiCore\\Transport\\RestTransport::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.RestTransport.html#_Google_ApiCore_Transport_RestTransport__build__) methods for the supported options. |
| `↳ clientCertSource` | `callable` A callable which returns the client cert as a string. This can be used to provide a certificate and private key to the transport layer for mTLS. |
| `↳ logger` | `false|Psr\Log\LoggerInterface` A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the 'GOOGLE_SDK_PHP_LOGGING' environment flag |
| `↳ universeDomain` | `string` The service domain for the client. Defaults to 'googleapis.com'. |

### batchRunPivotReports

Returns multiple pivot reports in a batch. All reports must be for the same
Google Analytics property.

The async variant is [BetaAnalyticsDataClient::batchRunPivotReportsAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__batchRunPivotReportsAsync__)
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.BatchRunPivotReportsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.BatchRunPivotReportsResponse` |   |

**Example**

    use Google\Analytics\Data\V1beta\BatchRunPivotReportsRequest;
    use Google\Analytics\Data\V1beta\BatchRunPivotReportsResponse;
    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\ApiCore\ApiException;

    /**
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function batch_run_pivot_reports_sample(): void
    {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $request = new BatchRunPivotReportsRequest();

        // Call the API and handle any network failures.
        try {
            /** @var BatchRunPivotReportsResponse $response */
            $response = $betaAnalyticsDataClient->batchRunPivotReports($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

### batchRunReports

Returns multiple reports in a batch. All reports must be for the same
Google Analytics property.

The async variant is [BetaAnalyticsDataClient::batchRunReportsAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__batchRunReportsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.BatchRunReportsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.BatchRunReportsResponse` |   |

**Example**

    use Google\Analytics\Data\V1beta\BatchRunReportsRequest;
    use Google\Analytics\Data\V1beta\BatchRunReportsResponse;
    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\ApiCore\ApiException;

    /**
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function batch_run_reports_sample(): void
    {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $request = new BatchRunReportsRequest();

        // Call the API and handle any network failures.
        try {
            /** @var BatchRunReportsResponse $response */
            $response = $betaAnalyticsDataClient->batchRunReports($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

### checkCompatibility

This compatibility method lists dimensions and metrics that can be added to
a report request and maintain compatibility. This method fails if the
request's dimensions and metrics are incompatible.

In Google Analytics, reports fail if they request incompatible dimensions
and/or metrics; in that case, you will need to remove dimensions and/or
metrics from the incompatible report until the report is compatible.

The Realtime and Core reports have different compatibility rules. This
method checks compatibility for Core reports.

The async variant is [BetaAnalyticsDataClient::checkCompatibilityAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__checkCompatibilityAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.CheckCompatibilityRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.CheckCompatibilityResponse` |   |

**Example**

    use Google\Analytics\Data\V1beta\CheckCompatibilityRequest;
    use Google\Analytics\Data\V1beta\CheckCompatibilityResponse;
    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\ApiCore\ApiException;

    /**
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function check_compatibility_sample(): void
    {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $request = new CheckCompatibilityRequest();

        // Call the API and handle any network failures.
        try {
            /** @var CheckCompatibilityResponse $response */
            $response = $betaAnalyticsDataClient->checkCompatibility($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

### createAudienceExport

Creates an audience export for later retrieval. This method quickly returns
the audience export's resource name and initiates a long running
asynchronous request to form an audience export. To export the users in an
audience export, first create the audience export through this method and
then send the audience resource name to the `QueryAudienceExport` method.

See [Creating an Audience
Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
for an introduction to Audience Exports with examples.

An audience export is a snapshot of the users currently in the audience at
the time of audience export creation. Creating audience exports for one
audience on different days will return different results as users enter and
exit the audience.

Audiences in Google Analytics 4 allow you to segment your users in the ways
that are important to your business. To learn more, see
<https://support.google.com/analytics/answer/9267572>. Audience exports
contain the users in each audience.

Audience Export APIs have some methods at alpha and other methods at beta
stability. The intention is to advance methods to beta stability after some
feedback and adoption. To give your feedback on this API, complete the
[Google Analytics Audience Export API
Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.

The async variant is [BetaAnalyticsDataClient::createAudienceExportAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__createAudienceExportAsync__)
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.CreateAudienceExportRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/OperationResponse.html<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.AudienceExport>` |   |

**Example**

    use Google\Analytics\Data\V1beta\AudienceDimension;
    use Google\Analytics\Data\V1beta\AudienceExport;
    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\Analytics\Data\V1beta\CreateAudienceExportRequest;
    use Google\ApiCore\ApiException;
    use Google\ApiCore\OperationResponse;
    use Google\Rpc\Status;

    /**
     * @param string $formattedParent        The parent resource where this audience export will be created.
     *                                       Format: `properties/{property}`
     *                                       Please see {@see BetaAnalyticsDataClient::propertyName()} for help formatting this field.
     * @param string $audienceExportAudience The audience resource name. This resource name identifies the
     *                                       audience being listed and is shared between the Analytics Data & Admin
     *                                       APIs.
     *
     *                                       Format: `properties/{property}/audiences/{audience}`
     */
    function create_audience_export_sample(
        string $formattedParent,
        string $audienceExportAudience
    ): void {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $audienceExportDimensions = [new AudienceDimension()];
        $audienceExport = (new AudienceExport())
            ->setAudience($audienceExportAudience)
            ->setDimensions($audienceExportDimensions);
        $request = (new CreateAudienceExportRequest())
            ->setParent($formattedParent)
            ->setAudienceExport($audienceExport);

        // Call the API and handle any network failures.
        try {
            /** @var OperationResponse $response */
            $response = $betaAnalyticsDataClient->createAudienceExport($request);
            $response->pollUntilComplete();

            if ($response->operationSucceeded()) {
                /** @var AudienceExport $result */
                $result = $response->getResult();
                printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
            } else {
                /** @var Status $error */
                $error = $response->getError();
                printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedParent = BetaAnalyticsDataClient::propertyName('[PROPERTY]');
        $audienceExportAudience = '[AUDIENCE]';

        create_audience_export_sample($formattedParent, $audienceExportAudience);
    }

### getAudienceExport

Gets configuration metadata about a specific audience export. This method
can be used to understand an audience export after it has been created.

See [Creating an Audience
Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
for an introduction to Audience Exports with examples.

Audience Export APIs have some methods at alpha and other methods at beta
stability. The intention is to advance methods to beta stability after some
feedback and adoption. To give your feedback on this API, complete the
[Google Analytics Audience Export API
Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.

The async variant is [BetaAnalyticsDataClient::getAudienceExportAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__getAudienceExportAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.GetAudienceExportRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.AudienceExport` |   |

**Example**

    use Google\Analytics\Data\V1beta\AudienceExport;
    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\Analytics\Data\V1beta\GetAudienceExportRequest;
    use Google\ApiCore\ApiException;

    /**
     * @param string $formattedName The audience export resource name.
     *                              Format: `properties/{property}/audienceExports/{audience_export}`
     *                              Please see {@see BetaAnalyticsDataClient::audienceExportName()} for help formatting this field.
     */
    function get_audience_export_sample(string $formattedName): void
    {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $request = (new GetAudienceExportRequest())
            ->setName($formattedName);

        // Call the API and handle any network failures.
        try {
            /** @var AudienceExport $response */
            $response = $betaAnalyticsDataClient->getAudienceExport($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedName = BetaAnalyticsDataClient::audienceExportName('[PROPERTY]', '[AUDIENCE_EXPORT]');

        get_audience_export_sample($formattedName);
    }

### getMetadata

Returns metadata for dimensions and metrics available in reporting methods.

Used to explore the dimensions and metrics. In this method, a Google
Analytics property identifier is specified in the request, and
the metadata response includes Custom dimensions and metrics as well as
Universal metadata.

For example if a custom metric with parameter name `levels_unlocked` is
registered to a property, the Metadata response will contain
`customEvent:levels_unlocked`. Universal metadata are dimensions and
metrics applicable to any property such as `country` and `totalUsers`.

The async variant is [BetaAnalyticsDataClient::getMetadataAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__getMetadataAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.GetMetadataRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Metadata` |   |

**Example**

    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\Analytics\Data\V1beta\GetMetadataRequest;
    use Google\Analytics\Data\V1beta\Metadata;
    use Google\ApiCore\ApiException;

    /**
     * @param string $formattedName The resource name of the metadata to retrieve. This name field is
     *                              specified in the URL path and not URL parameters. Property is a numeric
     *                              Google Analytics property identifier. To learn more, see [where to find
     *                              your Property
     *                              ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
     *
     *                              Example: properties/1234/metadata
     *
     *                              Set the Property ID to 0 for dimensions and metrics common to all
     *                              properties. In this special mode, this method will not return custom
     *                              dimensions and metrics. Please see
     *                              {@see BetaAnalyticsDataClient::metadataName()} for help formatting this field.
     */
    function get_metadata_sample(string $formattedName): void
    {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $request = (new GetMetadataRequest())
            ->setName($formattedName);

        // Call the API and handle any network failures.
        try {
            /** @var Metadata $response */
            $response = $betaAnalyticsDataClient->getMetadata($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedName = BetaAnalyticsDataClient::metadataName('[PROPERTY]');

        get_metadata_sample($formattedName);
    }

### listAudienceExports

Lists all audience exports for a property. This method can be used for you
to find and reuse existing audience exports rather than creating
unnecessary new audience exports. The same audience can have multiple
audience exports that represent the export of users that were in an
audience on different days.

See [Creating an Audience
Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
for an introduction to Audience Exports with examples.

Audience Export APIs have some methods at alpha and other methods at beta
stability. The intention is to advance methods to beta stability after some
feedback and adoption. To give your feedback on this API, complete the
[Google Analytics Audience Export API
Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.

The async variant is [BetaAnalyticsDataClient::listAudienceExportsAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__listAudienceExportsAsync__)
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.ListAudienceExportsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html` |   |

**Example**

    use Google\Analytics\Data\V1beta\AudienceExport;
    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\Analytics\Data\V1beta\ListAudienceExportsRequest;
    use Google\ApiCore\ApiException;
    use Google\ApiCore\PagedListResponse;

    /**
     * @param string $formattedParent All audience exports for this property will be listed in the
     *                                response. Format: `properties/{property}`
     *                                Please see {@see BetaAnalyticsDataClient::propertyName()} for help formatting this field.
     */
    function list_audience_exports_sample(string $formattedParent): void
    {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $request = (new ListAudienceExportsRequest())
            ->setParent($formattedParent);

        // Call the API and handle any network failures.
        try {
            /** @var PagedListResponse $response */
            $response = $betaAnalyticsDataClient->listAudienceExports($request);

            /** @var AudienceExport $element */
            foreach ($response as $element) {
                printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
            }
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $formattedParent = BetaAnalyticsDataClient::propertyName('[PROPERTY]');

        list_audience_exports_sample($formattedParent);
    }

### queryAudienceExport

Retrieves an audience export of users. After creating an audience, the
users are not immediately available for exporting. First, a request to
`CreateAudienceExport` is necessary to create an audience export of users,
and then second, this method is used to retrieve the users in the audience
export.

See [Creating an Audience
Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
for an introduction to Audience Exports with examples.

Audiences in Google Analytics 4 allow you to segment your users in the ways
that are important to your business. To learn more, see
<https://support.google.com/analytics/answer/9267572>.

Audience Export APIs have some methods at alpha and other methods at beta
stability. The intention is to advance methods to beta stability after some
feedback and adoption. To give your feedback on this API, complete the
[Google Analytics Audience Export API
Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.

The async variant is [BetaAnalyticsDataClient::queryAudienceExportAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__queryAudienceExportAsync__)
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QueryAudienceExportRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QueryAudienceExportResponse` |   |

**Example**

    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\Analytics\Data\V1beta\QueryAudienceExportRequest;
    use Google\Analytics\Data\V1beta\QueryAudienceExportResponse;
    use Google\ApiCore\ApiException;

    /**
     * @param string $name The name of the audience export to retrieve users from.
     *                     Format: `properties/{property}/audienceExports/{audience_export}`
     */
    function query_audience_export_sample(string $name): void
    {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $request = (new QueryAudienceExportRequest())
            ->setName($name);

        // Call the API and handle any network failures.
        try {
            /** @var QueryAudienceExportResponse $response */
            $response = $betaAnalyticsDataClient->queryAudienceExport($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

    /**
     * Helper to execute the sample.
     *
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function callSample(): void
    {
        $name = '[NAME]';

        query_audience_export_sample($name);
    }

### runPivotReport

Returns a customized pivot report of your Google Analytics event data.

Pivot reports are more advanced and expressive formats than regular
reports. In a pivot report, dimensions are only visible if they are
included in a pivot. Multiple pivots can be specified to further dissect
your data.

The async variant is [BetaAnalyticsDataClient::runPivotReportAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__runPivotReportAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunPivotReportRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunPivotReportResponse` |   |

**Example**

    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\Analytics\Data\V1beta\RunPivotReportRequest;
    use Google\Analytics\Data\V1beta\RunPivotReportResponse;
    use Google\ApiCore\ApiException;

    /**
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function run_pivot_report_sample(): void
    {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $request = new RunPivotReportRequest();

        // Call the API and handle any network failures.
        try {
            /** @var RunPivotReportResponse $response */
            $response = $betaAnalyticsDataClient->runPivotReport($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

### runRealtimeReport

Returns a customized report of realtime event data for your property.

Events appear in realtime reports seconds after they have been sent to
the Google Analytics. Realtime reports show events and usage data for the
periods of time ranging from the present moment to 30 minutes ago (up to
60 minutes for Google Analytics 360 properties).

For a guide to constructing realtime requests \& understanding responses,
see [Creating a Realtime
Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).

The async variant is [BetaAnalyticsDataClient::runRealtimeReportAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__runRealtimeReportAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunRealtimeReportRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunRealtimeReportResponse` |   |

**Example**

    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\Analytics\Data\V1beta\RunRealtimeReportRequest;
    use Google\Analytics\Data\V1beta\RunRealtimeReportResponse;
    use Google\ApiCore\ApiException;

    /**
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function run_realtime_report_sample(): void
    {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $request = new RunRealtimeReportRequest();

        // Call the API and handle any network failures.
        try {
            /** @var RunRealtimeReportResponse $response */
            $response = $betaAnalyticsDataClient->runRealtimeReport($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

### runReport

Returns a customized report of your Google Analytics event data. Reports
contain statistics derived from data collected by the Google Analytics
tracking code. The data returned from the API is as a table with columns
for the requested dimensions and metrics. Metrics are individual
measurements of user activity on your property, such as active users or
event count. Dimensions break down metrics across some common criteria,
such as country or event name.

For a guide to constructing requests \& understanding responses, see
[Creating a
Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).

The async variant is [BetaAnalyticsDataClient::runReportAsync()](https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Client.BetaAnalyticsDataClient#_Google_Analytics_Data_V1beta_Client_BetaAnalyticsDataClient__runReportAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunReportRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.html) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunReportResponse` |   |

**Example**

    use Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient;
    use Google\Analytics\Data\V1beta\RunReportRequest;
    use Google\Analytics\Data\V1beta\RunReportResponse;
    use Google\ApiCore\ApiException;

    /**
     * This sample has been automatically generated and should be regarded as a code
     * template only. It will require modifications to work:
     *  - It may require correct/in-range values for request initialization.
     *  - It may require specifying regional endpoints when creating the service client,
     *    please see the apiEndpoint client configuration option for more details.
     */
    function run_report_sample(): void
    {
        // Create a client.
        $betaAnalyticsDataClient = new BetaAnalyticsDataClient();

        // Prepare the request message.
        $request = new RunReportRequest();

        // Call the API and handle any network failures.
        try {
            /** @var RunReportResponse $response */
            $response = $betaAnalyticsDataClient->runReport($request);
            printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
        } catch (ApiException $ex) {
            printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
        }
    }

### batchRunPivotReportsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.BatchRunPivotReportsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.BatchRunPivotReportsResponse>` |   |

### batchRunReportsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.BatchRunReportsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.BatchRunReportsResponse>` |   |

### checkCompatibilityAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.CheckCompatibilityRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.CheckCompatibilityResponse>` |   |

### createAudienceExportAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.CreateAudienceExportRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/gax/latest/OperationResponse.html>` |   |

### getAudienceExportAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.GetAudienceExportRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.AudienceExport>` |   |

### getMetadataAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.GetMetadataRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.Metadata>` |   |

### listAudienceExportsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.ListAudienceExportsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/gax/latest/PagedListResponse.html>` |   |

### queryAudienceExportAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QueryAudienceExportRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.QueryAudienceExportResponse>` |   |

### runPivotReportAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunPivotReportRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunPivotReportResponse>` |   |

### runRealtimeReportAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunRealtimeReportRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunRealtimeReportResponse>` |   |

### runReportAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunReportRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-GuzzleHttp.Promise.Promise.html<https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1beta.RunReportResponse>` |   |

### getOperationsClient

Return an OperationsClient object with the same endpoint as $this.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\LongRunning\Client\OperationsClient` |   |

### resumeOperation

Resume an existing long running operation that was previously started by a long
running API method. If $methodName is not provided, or does not match a long
running API method, then the operation can still be resumed, but the
OperationResponse object will not deserialize the final response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `string` The name of the long running operation |
| `methodName` | `string` The name of the method used to start the operation |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/OperationResponse.html` |   |

### static::audienceExportName

Formats a string containing the fully-qualified path to represent a
audience_export resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `property` | `string` |
| `audienceExport` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted audience_export resource. |

### static::metadataName

Formats a string containing the fully-qualified path to represent a metadata
resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `property` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted metadata resource. |

### static::propertyName

Formats a string containing the fully-qualified path to represent a property
resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `property` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted property resource. |

### static::parseName

Parses a formatted name string and returns an associative array of the components in the name.

The following name formats are supported:
Template: Pattern

- audienceExport: properties/{property}/audienceExports/{audience_export}
- metadata: properties/{property}/metadata
- property: properties/{property}

The optional $template argument can be supplied to specify a particular pattern,
and must match one of the templates listed above. If no $template argument is
provided, or if the $template argument does not match one of the templates
listed, then parseName will check each of the supported templates, and return
the first match.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `formattedName` | `string` The formatted name string |
| `template` | `?string` Optional name of template to match |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `array` | An associative array from name component IDs to component values. |