Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion AnalyticsAdmin/metadata/V1Alpha/Resources.php

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Google\ApiCore\ApiException;

/**
* Returns the singleton data retention settings for this property.
* Returns the reporting identity settings for this property.
*
* @param string $formattedName The name of the settings to lookup.
* Format:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* GENERATED CODE WARNING
* This file was automatically generated - do not edit!
*/

require_once __DIR__ . '/../../../vendor/autoload.php';

// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync]
use Google\Analytics\Admin\V1alpha\Client\AnalyticsAdminServiceClient;
use Google\Analytics\Admin\V1alpha\GetUserProvidedDataSettingsRequest;
use Google\Analytics\Admin\V1alpha\UserProvidedDataSettings;
use Google\ApiCore\ApiException;

/**
* Looks up settings related to user-provided data for a property.
*
* @param string $formattedName The name of the user provided data settings to retrieve.
* Format: properties/{property}/userProvidedDataSettings
* Please see {@see AnalyticsAdminServiceClient::userProvidedDataSettingsName()} for help formatting this field.
*/
function get_user_provided_data_settings_sample(string $formattedName): void
{
// Create a client.
$analyticsAdminServiceClient = new AnalyticsAdminServiceClient();

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

// Call the API and handle any network failures.
try {
/** @var UserProvidedDataSettings $response */
$response = $analyticsAdminServiceClient->getUserProvidedDataSettings($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 = AnalyticsAdminServiceClient::userProvidedDataSettingsName('[PROPERTY]');

get_user_provided_data_settings_sample($formattedName);
}
// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync]
14 changes: 7 additions & 7 deletions AnalyticsAdmin/src/V1alpha/Account.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions AnalyticsAdmin/src/V1alpha/AccountSummary.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions AnalyticsAdmin/src/V1alpha/CalculatedMetric.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading