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.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?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_UpdateReportingIdentitySettings_sync]
use Google\Analytics\Admin\V1alpha\Client\AnalyticsAdminServiceClient;
use Google\Analytics\Admin\V1alpha\ReportingIdentitySettings;
use Google\Analytics\Admin\V1alpha\UpdateReportingIdentitySettingsRequest;
use Google\ApiCore\ApiException;

/**
* Updates the reporting identity settings for this property.
*
* 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 update_reporting_identity_settings_sample(): void
{
// Create a client.
$analyticsAdminServiceClient = new AnalyticsAdminServiceClient();

// Prepare the request message.
$reportingIdentitySettings = new ReportingIdentitySettings();
$request = (new UpdateReportingIdentitySettingsRequest())
->setReportingIdentitySettings($reportingIdentitySettings);

// Call the API and handle any network failures.
try {
/** @var ReportingIdentitySettings $response */
$response = $analyticsAdminServiceClient->updateReportingIdentitySettings($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}
// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
use Google\Analytics\Admin\V1alpha\UpdateMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\UpdatePropertyRequest;
use Google\Analytics\Admin\V1alpha\UpdateReportingDataAnnotationRequest;
use Google\Analytics\Admin\V1alpha\UpdateReportingIdentitySettingsRequest;
use Google\Analytics\Admin\V1alpha\UpdateSKAdNetworkConversionValueSchemaRequest;
use Google\Analytics\Admin\V1alpha\UpdateSearchAds360LinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateSubpropertyEventFilterRequest;
Expand Down Expand Up @@ -404,6 +405,7 @@
* @method PromiseInterface<MeasurementProtocolSecret> updateMeasurementProtocolSecretAsync(UpdateMeasurementProtocolSecretRequest $request, array $optionalArgs = [])
* @method PromiseInterface<Property> updatePropertyAsync(UpdatePropertyRequest $request, array $optionalArgs = [])
* @method PromiseInterface<ReportingDataAnnotation> updateReportingDataAnnotationAsync(UpdateReportingDataAnnotationRequest $request, array $optionalArgs = [])
* @method PromiseInterface<ReportingIdentitySettings> updateReportingIdentitySettingsAsync(UpdateReportingIdentitySettingsRequest $request, array $optionalArgs = [])
* @method PromiseInterface<SKAdNetworkConversionValueSchema> updateSKAdNetworkConversionValueSchemaAsync(UpdateSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = [])
* @method PromiseInterface<SearchAds360Link> updateSearchAds360LinkAsync(UpdateSearchAds360LinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface<SubpropertyEventFilter> updateSubpropertyEventFilterAsync(UpdateSubpropertyEventFilterRequest $request, array $optionalArgs = [])
Expand Down Expand Up @@ -5930,6 +5932,37 @@ public function updateReportingDataAnnotation(
return $this->startApiCall('UpdateReportingDataAnnotation', $request, $callOptions)->wait();
}

/**
* Updates the reporting identity settings for this property.
*
* The async variant is
* {@see AnalyticsAdminServiceClient::updateReportingIdentitySettingsAsync()} .
*
* @example samples/V1alpha/AnalyticsAdminServiceClient/update_reporting_identity_settings.php
*
* @param UpdateReportingIdentitySettingsRequest $request A request to house fields associated with the call.
* @param array $callOptions {
* Optional.
*
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
* {@see RetrySettings} for example usage.
* }
*
* @return ReportingIdentitySettings
*
* @throws ApiException Thrown if the API call fails.
*
* @experimental
*/
public function updateReportingIdentitySettings(
UpdateReportingIdentitySettingsRequest $request,
array $callOptions = []
): ReportingIdentitySettings {
return $this->startApiCall('UpdateReportingIdentitySettings', $request, $callOptions)->wait();
}

/**
* Updates a SKAdNetworkConversionValueSchema.
*
Expand Down
38 changes: 38 additions & 0 deletions AnalyticsAdmin/src/V1alpha/PropertySummary.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.

5 changes: 5 additions & 0 deletions AnalyticsAdmin/src/V1alpha/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,11 @@
"updateReportingDataAnnotation"
]
},
"UpdateReportingIdentitySettings": {
"methods": [
"updateReportingIdentitySettings"
]
},
"UpdateSKAdNetworkConversionValueSchema": {
"methods": [
"updateSKAdNetworkConversionValueSchema"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"UpdateReportingIdentitySettings": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
"UpdateSKAdNetworkConversionValueSchema": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2035,6 +2035,19 @@
],
],
],
'UpdateReportingIdentitySettings' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\ReportingIdentitySettings',
'headerParams' => [
[
'keyName' => 'reporting_identity_settings.name',
'fieldAccessors' => [
'getReportingIdentitySettings',
'getName',
],
],
],
],
'UpdateSKAdNetworkConversionValueSchema' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,19 @@
],
],
],
'UpdateReportingIdentitySettings' => [
'method' => 'patch',
'uriTemplate' => '/v1alpha/{reporting_identity_settings.name=properties/*/reportingIdentitySettings}',
'body' => 'reporting_identity_settings',
'placeholders' => [
'reporting_identity_settings.name' => [
'getters' => [
'getReportingIdentitySettings',
'getName',
],
],
],
],
'UpdateSKAdNetworkConversionValueSchema' => [
'method' => 'patch',
'uriTemplate' => '/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}',
Expand Down
Loading
Loading