diff --git a/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php b/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php
index 9eb74e1271d9..7d18f9d27d7d 100644
--- a/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php
+++ b/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php
@@ -24,7 +24,7 @@ public static function initOnce() {
\GPBMetadata\Google\Protobuf\Timestamp::initOnce();
$pool->internalAddGeneratedFile(
'
-¿Ý
+Ñ–
4google/analytics/admin/v1alpha/analytics_admin.protogoogle.analytics.admin.v1alphagoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"P
GetAccountRequest;
name ( B-àAúA\'
@@ -175,19 +175,10 @@ public static function initOnce() {
page_token ( "”
!ListAndroidAppDataStreamsResponseV
android_app_data_streams (24.google.analytics.admin.v1alpha.AndroidAppDataStream
-next_page_token ( "x
-%GetEnhancedMeasurementSettingsRequestO
-name ( BAàAúA;
-9analyticsadmin.googleapis.com/EnhancedMeasurementSettings"É
-(UpdateEnhancedMeasurementSettingsRequestg
-enhanced_measurement_settings (2;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsBàA4
-update_mask (2.google.protobuf.FieldMaskBàA"©
+next_page_token ( "©
CreateFirebaseLinkRequestB
parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLinkH
-
firebase_link (2,.google.analytics.admin.v1alpha.FirebaseLinkBàA"›
-UpdateFirebaseLinkRequestH
-
firebase_link (2,.google.analytics.admin.v1alpha.FirebaseLinkBàA4
-update_mask (2.google.protobuf.FieldMaskBàA"]
+
firebase_link (2,.google.analytics.admin.v1alpha.FirebaseLinkBàA"]
DeleteFirebaseLinkRequest@
name ( B2àAúA,
*analyticsadmin.googleapis.com/FirebaseLink"…
@@ -228,7 +219,12 @@ public static function initOnce() {
page_token ( "‚
ListAccountSummariesResponseI
account_summaries (2..google.analytics.admin.v1alpha.AccountSummary
-next_page_token ( "ƒ
+next_page_token ( "†
+$AcknowledgeUserDataCollectionRequest@
+property ( B.àAúA(
+&analyticsadmin.googleapis.com/Property
+acknowledgement ( BàA"\'
+%AcknowledgeUserDataCollectionResponse"ƒ
SearchChangeHistoryEventsRequest>
account ( B-àAúA\'
%analyticsadmin.googleapis.com/Account@
@@ -287,7 +283,52 @@ public static function initOnce() {
page_token ( "ƒ
ListConversionEventsResponseJ
conversion_events (2/.google.analytics.admin.v1alpha.ConversionEvent
-next_page_token ( "µ
+next_page_token ( "|
+\'GetDisplayVideo360AdvertiserLinkRequestQ
+name ( BCàAúA=
+;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink"§
+)ListDisplayVideo360AdvertiserLinksRequestS
+parent ( BCàAúA=;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink
+ page_size (
+
+page_token ( "°
+*ListDisplayVideo360AdvertiserLinksResponsei
+"display_video_360_advertiser_links (2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink
+next_page_token ( "ð
+*CreateDisplayVideo360AdvertiserLinkRequestS
+parent ( BCàAúA=;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkm
+!display_video_360_advertiser_link (2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkBàA"
+*DeleteDisplayVideo360AdvertiserLinkRequestQ
+name ( BCàAúA=
+;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink"Ì
+*UpdateDisplayVideo360AdvertiserLinkRequesth
+!display_video_360_advertiser_link (2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink4
+update_mask (2.google.protobuf.FieldMaskBàA"Œ
+/GetDisplayVideo360AdvertiserLinkProposalRequestY
+name ( BKàAúAE
+Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"·
+1ListDisplayVideo360AdvertiserLinkProposalsRequest[
+parent ( BKàAúAECanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal
+ page_size (
+
+page_token ( "É
+2ListDisplayVideo360AdvertiserLinkProposalsResponsez
++display_video_360_advertiser_link_proposals (2E.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal
+next_page_token ( "‘
+2CreateDisplayVideo360AdvertiserLinkProposalRequest[
+parent ( BKàAúAECanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal~
+*display_video_360_advertiser_link_proposal (2E.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalBàA"
+2DeleteDisplayVideo360AdvertiserLinkProposalRequestY
+name ( BKàAúAE
+Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"
+3ApproveDisplayVideo360AdvertiserLinkProposalRequestY
+name ( BKàAúAE
+Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"
+4ApproveDisplayVideo360AdvertiserLinkProposalResponseh
+!display_video_360_advertiser_link (2=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"
+2CancelDisplayVideo360AdvertiserLinkProposalRequestY
+name ( BKàAúAE
+Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal"µ
CreateCustomDimensionRequestE
parent ( B5àAúA/-analyticsadmin.googleapis.com/CustomDimensionN
custom_dimension (2/.google.analytics.admin.v1alpha.CustomDimensionBàA"Ÿ
@@ -327,7 +368,33 @@ public static function initOnce() {
*analyticsadmin.googleapis.com/CustomMetric"Z
GetCustomMetricRequest@
name ( B2àAúA,
-*analyticsadmin.googleapis.com/CustomMetric2Ý~
+*analyticsadmin.googleapis.com/CustomMetric"l
+GetDataRetentionSettingsRequestI
+name ( B;àAúA5
+3analyticsadmin.googleapis.com/DataRetentionSettings"·
+"UpdateDataRetentionSettingsRequest[
+data_retention_settings (25.google.analytics.admin.v1alpha.DataRetentionSettingsBàA4
+update_mask (2.google.protobuf.FieldMaskBàA"¡
+CreateDataStreamRequest@
+parent ( B0àAúA*(analyticsadmin.googleapis.com/DataStreamD
+data_stream (2*.google.analytics.admin.v1alpha.DataStreamBàA"Y
+DeleteDataStreamRequest>
+name ( B0àAúA*
+(analyticsadmin.googleapis.com/DataStream"
+UpdateDataStreamRequest?
+data_stream (2*.google.analytics.admin.v1alpha.DataStream4
+update_mask (2.google.protobuf.FieldMaskBàA"
+ListDataStreamsRequest@
+parent ( B0àAúA*(analyticsadmin.googleapis.com/DataStream
+ page_size (
+
+page_token ( "t
+ListDataStreamsResponse@
+data_streams (2*.google.analytics.admin.v1alpha.DataStream
+next_page_token ( "V
+GetDataStreamRequest>
+name ( B0àAúA*
+(analyticsadmin.googleapis.com/DataStream2óž
AnalyticsAdminService“
GetAccount1.google.analytics.admin.v1alpha.GetAccountRequest\'.google.analytics.admin.v1alpha.Account")‚Óä“/v1alpha/{name=accounts/*}ÚAname”
@@ -363,11 +430,8 @@ public static function initOnce() {
GetAndroidAppDataStream>.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest4.google.analytics.admin.v1alpha.AndroidAppDataStream"C‚Óä“64/v1alpha/{name=properties/*/androidAppDataStreams/*}ÚAname¼
DeleteAndroidAppDataStreamA.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.google.protobuf.Empty"C‚Óä“6*4/v1alpha/{name=properties/*/androidAppDataStreams/*}ÚAname«
UpdateAndroidAppDataStreamA.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest4.google.analytics.admin.v1alpha.AndroidAppDataStream"“‚Óä“g2L/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}:android_app_data_streamÚA#android_app_data_stream,update_maskç
-ListAndroidAppDataStreams@.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequestA.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse"E‚Óä“64/v1alpha/{parent=properties/*}/androidAppDataStreamsÚAparentþ
-GetEnhancedMeasurementSettingsE.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings"X‚Óä“KI/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}ÚAnameè
-!UpdateEnhancedMeasurementSettingsH.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings"»‚Ó䓈2g/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}:enhanced_measurement_settingsÚA)enhanced_measurement_settings,update_maskÙ
-CreateFirebaseLink9.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest,.google.analytics.admin.v1alpha.FirebaseLink"Z‚Óä“=",/v1alpha/{parent=properties/*}/firebaseLinks:
firebase_linkÚAparent,firebase_linkì
-UpdateFirebaseLink9.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest,.google.analytics.admin.v1alpha.FirebaseLink"m‚Óä“K2:/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}:
firebase_linkÚAfirebase_link,update_mask¤
+ListAndroidAppDataStreams@.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequestA.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse"E‚Óä“64/v1alpha/{parent=properties/*}/androidAppDataStreamsÚAparentÙ
+CreateFirebaseLink9.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest,.google.analytics.admin.v1alpha.FirebaseLink"Z‚Óä“=",/v1alpha/{parent=properties/*}/firebaseLinks:
firebase_linkÚAparent,firebase_link¤
DeleteFirebaseLink9.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.google.protobuf.Empty";‚Óä“.*,/v1alpha/{name=properties/*/firebaseLinks/*}ÚAnameÇ
ListFirebaseLinks8.google.analytics.admin.v1alpha.ListFirebaseLinksRequest9.google.analytics.admin.v1alpha.ListFirebaseLinksResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/firebaseLinksÚAparentÆ
GetGlobalSiteTag7.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest-.google.analytics.admin.v1alpha.GlobalSiteTag"J‚Óä“=;/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}ÚAnameá
@@ -380,14 +444,26 @@ public static function initOnce() {
ListMeasurementProtocolSecretsE.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequestF.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse"‚‚Óä“òJ/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecretsZOM/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecretsZSQ/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecretsÚAparentœ
CreateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"õ‚Óä“É"J/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets:measurement_protocol_secretZl"M/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets:measurement_protocol_secretZp"Q/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets:measurement_protocol_secretÚA"parent,measurement_protocol_secret„
DeleteMeasurementProtocolSecretF.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.google.protobuf.Empty"€‚Óä“ò*J/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}ZO*M/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}ZS*Q/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}ÚAname÷
-UpdateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"ЂÓä“Ÿ2f/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secretZˆ2i/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secretZŒ2m/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secretÚA\'measurement_protocol_secret,update_maskä
+UpdateMeasurementProtocolSecretF.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest9.google.analytics.admin.v1alpha.MeasurementProtocolSecret"ЂÓä“Ÿ2f/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secretZˆ2i/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secretZŒ2m/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}:measurement_protocol_secretÚA\'measurement_protocol_secret,update_mask÷
+AcknowledgeUserDataCollectionD.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequestE.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse"I‚Óä“C">/v1alpha/{property=properties/*}:acknowledgeUserDataCollection:*ä
SearchChangeHistoryEvents@.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequestA.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse"B‚Óä“<"7/v1alpha/{account=accounts/*}:searchChangeHistoryEvents:*Õ
GetGoogleSignalsSettings?.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest5.google.analytics.admin.v1alpha.GoogleSignalsSettings"A‚Óä“42/v1alpha/{name=properties/*/googleSignalsSettings}ÚAname¬
UpdateGoogleSignalsSettingsB.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest5.google.analytics.admin.v1alpha.GoogleSignalsSettings"‘‚Óä“e2J/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}:google_signals_settingsÚA#google_signals_settings,update_maskë
CreateConversionEvent<.google.analytics.admin.v1alpha.CreateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"c‚Óä“C"//v1alpha/{parent=properties/*}/conversionEvents:conversion_eventÚAparent,conversion_eventÀ
GetConversionEvent9.google.analytics.admin.v1alpha.GetConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent">‚Óä“1//v1alpha/{name=properties/*/conversionEvents/*}ÚAname
DeleteConversionEvent<.google.analytics.admin.v1alpha.DeleteConversionEventRequest.google.protobuf.Empty">‚Óä“1*//v1alpha/{name=properties/*/conversionEvents/*}ÚAnameÓ
-ListConversionEvents;.google.analytics.admin.v1alpha.ListConversionEventsRequest<.google.analytics.admin.v1alpha.ListConversionEventsResponse"@‚Óä“1//v1alpha/{parent=properties/*}/conversionEventsÚAparentë
+ListConversionEvents;.google.analytics.admin.v1alpha.ListConversionEventsRequest<.google.analytics.admin.v1alpha.ListConversionEventsResponse"@‚Óä“1//v1alpha/{parent=properties/*}/conversionEventsÚAparentø
+ GetDisplayVideo360AdvertiserLinkG.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"L‚Óä“?=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}ÚAname‹
+"ListDisplayVideo360AdvertiserLinksI.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequestJ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse"N‚Óä“?=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinksÚAparentÆ
+#CreateDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"“‚Óä“b"=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks:!display_video_360_advertiser_linkÚA(parent,display_video_360_advertiser_link×
+#DeleteDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.google.protobuf.Empty"L‚Óä“?*=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}ÚAnameî
+#UpdateDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"»‚Óä“„2_/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}:!display_video_360_advertiser_linkÚA-display_video_360_advertiser_link,update_mask˜
+(GetDisplayVideo360AdvertiserLinkProposalO.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"T‚Óä“GE/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}ÚAname«
+*ListDisplayVideo360AdvertiserLinkProposalsQ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequestR.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse"V‚Óä“GE/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposalsÚAparentø
++CreateDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"‚Óä“s"E/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals:*display_video_360_advertiser_link_proposalÚA1parent,display_video_360_advertiser_link_proposalï
++DeleteDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.google.protobuf.Empty"T‚Óä“G*E/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}ÚAname³
+,ApproveDisplayVideo360AdvertiserLinkProposalS.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequestT.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse"X‚Óä“R"M/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve:*¡
++CancelDisplayVideo360AdvertiserLinkProposalR.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequestE.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"W‚Óä“Q"L/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel:*ë
CreateCustomDimension<.google.analytics.admin.v1alpha.CreateCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension"c‚Óä“C"//v1alpha/{parent=properties/*}/customDimensions:custom_dimensionÚAparent,custom_dimension
UpdateCustomDimension<.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest/.google.analytics.admin.v1alpha.CustomDimension"y‚Óä“T2@/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}:custom_dimensionÚAcustom_dimension,update_maskÓ
ListCustomDimensions;.google.analytics.admin.v1alpha.ListCustomDimensionsRequest<.google.analytics.admin.v1alpha.ListCustomDimensionsResponse"@‚Óä“1//v1alpha/{parent=properties/*}/customDimensionsÚAparentº
@@ -397,7 +473,14 @@ public static function initOnce() {
UpdateCustomMetric9.google.analytics.admin.v1alpha.UpdateCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric"m‚Óä“K2:/v1alpha/{custom_metric.name=properties/*/customMetrics/*}:
custom_metricÚAcustom_metric,update_maskÇ
ListCustomMetrics8.google.analytics.admin.v1alpha.ListCustomMetricsRequest9.google.analytics.admin.v1alpha.ListCustomMetricsResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/customMetricsÚAparent±
ArchiveCustomMetric:.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.google.protobuf.Empty"F‚Óä“9"4/v1alpha/{name=properties/*/customMetrics/*}:archive:*ÚAname´
-GetCustomMetric6.google.analytics.admin.v1alpha.GetCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric";‚Óä“.,/v1alpha/{name=properties/*/customMetrics/*}ÚAnameüÊAanalyticsadmin.googleapis.comÒAØhttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB€
+GetCustomMetric6.google.analytics.admin.v1alpha.GetCustomMetricRequest,.google.analytics.admin.v1alpha.CustomMetric";‚Óä“.,/v1alpha/{name=properties/*/customMetrics/*}ÚAnameÕ
+GetDataRetentionSettings?.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest5.google.analytics.admin.v1alpha.DataRetentionSettings"A‚Óä“42/v1alpha/{name=properties/*/dataRetentionSettings}ÚAname¬
+UpdateDataRetentionSettingsB.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest5.google.analytics.admin.v1alpha.DataRetentionSettings"‘‚Óä“e2J/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}:data_retention_settingsÚA#data_retention_settings,update_maskÍ
+CreateDataStream7.google.analytics.admin.v1alpha.CreateDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"T‚Óä“9"*/v1alpha/{parent=properties/*}/dataStreams:data_streamÚAparent,data_streamž
+DeleteDataStream7.google.analytics.admin.v1alpha.DeleteDataStreamRequest.google.protobuf.Empty"9‚Óä“,**/v1alpha/{name=properties/*/dataStreams/*}ÚAnameÞ
+UpdateDataStream7.google.analytics.admin.v1alpha.UpdateDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"e‚Óä“E26/v1alpha/{data_stream.name=properties/*/dataStreams/*}:data_streamÚAdata_stream,update_mask¿
+ListDataStreams6.google.analytics.admin.v1alpha.ListDataStreamsRequest7.google.analytics.admin.v1alpha.ListDataStreamsResponse";‚Óä“,*/v1alpha/{parent=properties/*}/dataStreamsÚAparent¬
+
GetDataStream4.google.analytics.admin.v1alpha.GetDataStreamRequest*.google.analytics.admin.v1alpha.DataStream"9‚Óä“,*/v1alpha/{name=properties/*/dataStreams/*}ÚAnameüÊAanalyticsadmin.googleapis.comÒAØhttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB€
"com.google.analytics.admin.v1alphaBAnalyticsAdminProtoPZCgoogle.golang.org/genproto/googleapis/analytics/admin/v1alpha;adminbproto3'
, true);
diff --git a/AnalyticsAdmin/metadata/V1Alpha/Resources.php b/AnalyticsAdmin/metadata/V1Alpha/Resources.php
index 0d83ac0ea676..b0eff2263e42 100644
Binary files a/AnalyticsAdmin/metadata/V1Alpha/Resources.php and b/AnalyticsAdmin/metadata/V1Alpha/Resources.php differ
diff --git a/AnalyticsAdmin/src/V1alpha/Account.php b/AnalyticsAdmin/src/V1alpha/Account.php
index 98926a091202..a1ea714593b5 100644
--- a/AnalyticsAdmin/src/V1alpha/Account.php
+++ b/AnalyticsAdmin/src/V1alpha/Account.php
@@ -121,7 +121,7 @@ public function setName($var)
*/
public function getCreateTime()
{
- return isset($this->create_time) ? $this->create_time : null;
+ return $this->create_time;
}
public function hasCreateTime()
@@ -157,7 +157,7 @@ public function setCreateTime($var)
*/
public function getUpdateTime()
{
- return isset($this->update_time) ? $this->update_time : null;
+ return $this->update_time;
}
public function hasUpdateTime()
diff --git a/AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionRequest.php b/AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionRequest.php
new file mode 100644
index 000000000000..b19ba4484e15
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionRequest.php
@@ -0,0 +1,125 @@
+google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest
+ */
+class AcknowledgeUserDataCollectionRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The property for which to acknowledge user data collection.
+ *
+ * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $property = '';
+ /**
+ * Required. An acknowledgement that the caller of this method understands the terms
+ * of user data collection.
+ * This field must contain the exact value:
+ * "I acknowledge that I have the necessary privacy disclosures and rights
+ * from my end users for the collection and processing of their data,
+ * including the association of such data with the visitation information
+ * Google Analytics collects from my site and/or app property."
+ *
+ * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $acknowledgement = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $property
+ * Required. The property for which to acknowledge user data collection.
+ * @type string $acknowledgement
+ * Required. An acknowledgement that the caller of this method understands the terms
+ * of user data collection.
+ * This field must contain the exact value:
+ * "I acknowledge that I have the necessary privacy disclosures and rights
+ * from my end users for the collection and processing of their data,
+ * including the association of such data with the visitation information
+ * Google Analytics collects from my site and/or app property."
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The property for which to acknowledge user data collection.
+ *
+ * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getProperty()
+ {
+ return $this->property;
+ }
+
+ /**
+ * Required. The property for which to acknowledge user data collection.
+ *
+ * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setProperty($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->property = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. An acknowledgement that the caller of this method understands the terms
+ * of user data collection.
+ * This field must contain the exact value:
+ * "I acknowledge that I have the necessary privacy disclosures and rights
+ * from my end users for the collection and processing of their data,
+ * including the association of such data with the visitation information
+ * Google Analytics collects from my site and/or app property."
+ *
+ * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return string
+ */
+ public function getAcknowledgement()
+ {
+ return $this->acknowledgement;
+ }
+
+ /**
+ * Required. An acknowledgement that the caller of this method understands the terms
+ * of user data collection.
+ * This field must contain the exact value:
+ * "I acknowledge that I have the necessary privacy disclosures and rights
+ * from my end users for the collection and processing of their data,
+ * including the association of such data with the visitation information
+ * Google Analytics collects from my site and/or app property."
+ *
+ * Generated from protobuf field string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param string $var
+ * @return $this
+ */
+ public function setAcknowledgement($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->acknowledgement = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionResponse.php b/AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionResponse.php
new file mode 100644
index 000000000000..4d03c2d230b9
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/AcknowledgeUserDataCollectionResponse.php
@@ -0,0 +1,33 @@
+google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse
+ */
+class AcknowledgeUserDataCollectionResponse extends \Google\Protobuf\Internal\Message
+{
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceClient.php b/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceClient.php
index eb25889f694b..d7aae7efc68a 100644
--- a/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceClient.php
+++ b/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceClient.php
@@ -18,7 +18,7 @@
/*
* GENERATED CODE WARNING
* Generated by gapic-generator-php from the file
- * https://github.com/google/googleapis/blob/master/google/analytics/admin/v1alpha/analytics_admin.proto
+ * https://github.com/googleapis/googleapis/blob/master/google/analytics/admin/v1alpha/analytics_admin.proto
* Updates to the above are reflected here through a refresh process.
*
* @experimental
diff --git a/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceGrpcClient.php b/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceGrpcClient.php
index f658ef92ca5e..809cc87bab43 100644
--- a/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceGrpcClient.php
+++ b/AnalyticsAdmin/src/V1alpha/AnalyticsAdminServiceGrpcClient.php
@@ -595,40 +595,6 @@ public function ListAndroidAppDataStreams(\Google\Analytics\Admin\V1alpha\ListAn
$metadata, $options);
}
- /**
- * Returns the singleton enhanced measurement settings for this web stream.
- * Note that the stream must enable enhanced measurement for these settings to
- * take effect.
- * @param \Google\Analytics\Admin\V1alpha\GetEnhancedMeasurementSettingsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetEnhancedMeasurementSettings(\Google\Analytics\Admin\V1alpha\GetEnhancedMeasurementSettingsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings',
- $argument,
- ['\Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Updates the singleton enhanced measurement settings for this web stream.
- * Note that the stream must enable enhanced measurement for these settings to
- * take effect.
- * @param \Google\Analytics\Admin\V1alpha\UpdateEnhancedMeasurementSettingsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function UpdateEnhancedMeasurementSettings(\Google\Analytics\Admin\V1alpha\UpdateEnhancedMeasurementSettingsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings',
- $argument,
- ['\Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings', 'decode'],
- $metadata, $options);
- }
-
/**
* Creates a FirebaseLink.
*
@@ -646,21 +612,6 @@ public function CreateFirebaseLink(\Google\Analytics\Admin\V1alpha\CreateFirebas
$metadata, $options);
}
- /**
- * Updates a FirebaseLink on a property
- * @param \Google\Analytics\Admin\V1alpha\UpdateFirebaseLinkRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function UpdateFirebaseLink(\Google\Analytics\Admin\V1alpha\UpdateFirebaseLinkRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateFirebaseLink',
- $argument,
- ['\Google\Analytics\Admin\V1alpha\FirebaseLink', 'decode'],
- $metadata, $options);
- }
-
/**
* Deletes a FirebaseLink on a property
* @param \Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest $argument input argument
@@ -860,6 +811,24 @@ public function UpdateMeasurementProtocolSecret(\Google\Analytics\Admin\V1alpha\
$metadata, $options);
}
+ /**
+ * Acknowledges the terms of user data collection for the specified property.
+ *
+ * This acknowledgement must be completed (either in the Google Analytics UI
+ * or via this API) before MeasurementProtocolSecret resources may be created.
+ * @param \Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function AcknowledgeUserDataCollection(\Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse', 'decode'],
+ $metadata, $options);
+ }
+
/**
* Searches through all changes to an account or its children given the
* specified set of filters.
@@ -968,6 +937,182 @@ public function ListConversionEvents(\Google\Analytics\Admin\V1alpha\ListConvers
$metadata, $options);
}
+ /**
+ * Look up a single DisplayVideo360AdvertiserLink
+ * @param \Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function GetDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Lists all DisplayVideo360AdvertiserLinks on a property.
+ * @param \Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function ListDisplayVideo360AdvertiserLinks(\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Creates a DisplayVideo360AdvertiserLink.
+ * This can only be utilized by users who have proper authorization both on
+ * the Google Analytics property and on the Display & Video 360 advertiser.
+ * Users who do not have access to the Display & Video 360 advertiser should
+ * instead seek to create a DisplayVideo360LinkProposal.
+ * @param \Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function CreateDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Deletes a DisplayVideo360AdvertiserLink on a property.
+ * @param \Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function DeleteDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink',
+ $argument,
+ ['\Google\Protobuf\GPBEmpty', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Updates a DisplayVideo360AdvertiserLink on a property.
+ * @param \Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function UpdateDisplayVideo360AdvertiserLink(\Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+ * @param \Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkProposalRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function GetDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkProposalRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+ * @param \Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function ListDisplayVideo360AdvertiserLinkProposals(\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsResponse', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Creates a DisplayVideo360AdvertiserLinkProposal.
+ * @param \Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function CreateDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
+ * This can only be used on cancelled proposals.
+ * @param \Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function DeleteDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal',
+ $argument,
+ ['\Google\Protobuf\GPBEmpty', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Approves a DisplayVideo360AdvertiserLinkProposal.
+ * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
+ * DisplayVideo360AdvertiserLink will be created.
+ * @param \Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function ApproveDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Cancels a DisplayVideo360AdvertiserLinkProposal.
+ * Cancelling can mean either:
+ * - Declining a proposal initiated from Display & Video 360
+ * - Withdrawing a proposal initiated from Google Analytics
+ * After being cancelled, a proposal will eventually be deleted automatically.
+ * @param \Google\Analytics\Admin\V1alpha\CancelDisplayVideo360AdvertiserLinkProposalRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function CancelDisplayVideo360AdvertiserLinkProposal(\Google\Analytics\Admin\V1alpha\CancelDisplayVideo360AdvertiserLinkProposalRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal', 'decode'],
+ $metadata, $options);
+ }
+
/**
* Creates a CustomDimension.
* @param \Google\Analytics\Admin\V1alpha\CreateCustomDimensionRequest $argument input argument
@@ -1118,4 +1263,109 @@ public function GetCustomMetric(\Google\Analytics\Admin\V1alpha\GetCustomMetricR
$metadata, $options);
}
+ /**
+ * Returns the singleton data retention settings for this property.
+ * @param \Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function GetDataRetentionSettings(\Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DataRetentionSettings', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Updates the singleton data retention settings for this property.
+ * @param \Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function UpdateDataRetentionSettings(\Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DataRetentionSettings', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Creates a DataStream.
+ * @param \Google\Analytics\Admin\V1alpha\CreateDataStreamRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function CreateDataStream(\Google\Analytics\Admin\V1alpha\CreateDataStreamRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DataStream', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Deletes a DataStream on a property.
+ * @param \Google\Analytics\Admin\V1alpha\DeleteDataStreamRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function DeleteDataStream(\Google\Analytics\Admin\V1alpha\DeleteDataStreamRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream',
+ $argument,
+ ['\Google\Protobuf\GPBEmpty', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Updates a DataStream on a property.
+ * @param \Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function UpdateDataStream(\Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DataStream', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Lists DataStreams on a property.
+ * @param \Google\Analytics\Admin\V1alpha\ListDataStreamsRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function ListDataStreams(\Google\Analytics\Admin\V1alpha\ListDataStreamsRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\ListDataStreamsResponse', 'decode'],
+ $metadata, $options);
+ }
+
+ /**
+ * Lookup for a single DataStream.
+ * @param \Google\Analytics\Admin\V1alpha\GetDataStreamRequest $argument input argument
+ * @param array $metadata metadata
+ * @param array $options call options
+ * @return \Grpc\UnaryCall
+ */
+ public function GetDataStream(\Google\Analytics\Admin\V1alpha\GetDataStreamRequest $argument,
+ $metadata = [], $options = []) {
+ return $this->_simpleRequest('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream',
+ $argument,
+ ['\Google\Analytics\Admin\V1alpha\DataStream', 'decode'],
+ $metadata, $options);
+ }
+
}
diff --git a/AnalyticsAdmin/src/V1alpha/AndroidAppDataStream.php b/AnalyticsAdmin/src/V1alpha/AndroidAppDataStream.php
index 1820900cc29f..c4c053730468 100644
--- a/AnalyticsAdmin/src/V1alpha/AndroidAppDataStream.php
+++ b/AnalyticsAdmin/src/V1alpha/AndroidAppDataStream.php
@@ -153,7 +153,7 @@ public function setFirebaseAppId($var)
*/
public function getCreateTime()
{
- return isset($this->create_time) ? $this->create_time : null;
+ return $this->create_time;
}
public function hasCreateTime()
@@ -189,7 +189,7 @@ public function setCreateTime($var)
*/
public function getUpdateTime()
{
- return isset($this->update_time) ? $this->update_time : null;
+ return $this->update_time;
}
public function hasUpdateTime()
diff --git a/AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php b/AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php
new file mode 100644
index 000000000000..789cc358b3f1
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.php
@@ -0,0 +1,71 @@
+google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest
+ */
+class ApproveDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php b/AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php
new file mode 100644
index 000000000000..28d115857505
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.php
@@ -0,0 +1,81 @@
+google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse
+ */
+class ApproveDisplayVideo360AdvertiserLinkProposalResponse extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The DisplayVideo360AdvertiserLink created as a result of approving the
+ * proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1;
+ */
+ private $display_video_360_advertiser_link = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link
+ * The DisplayVideo360AdvertiserLink created as a result of approving the
+ * proposal.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The DisplayVideo360AdvertiserLink created as a result of approving the
+ * proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1;
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null
+ */
+ public function getDisplayVideo360AdvertiserLink()
+ {
+ return $this->display_video_360_advertiser_link;
+ }
+
+ public function hasDisplayVideo360AdvertiserLink()
+ {
+ return isset($this->display_video_360_advertiser_link);
+ }
+
+ public function clearDisplayVideo360AdvertiserLink()
+ {
+ unset($this->display_video_360_advertiser_link);
+ }
+
+ /**
+ * The DisplayVideo360AdvertiserLink created as a result of approving the
+ * proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1;
+ * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var
+ * @return $this
+ */
+ public function setDisplayVideo360AdvertiserLink($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class);
+ $this->display_video_360_advertiser_link = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/AuditUserLink.php b/AnalyticsAdmin/src/V1alpha/AuditUserLink.php
index bc0b270e319e..0037ec494dd2 100644
--- a/AnalyticsAdmin/src/V1alpha/AuditUserLink.php
+++ b/AnalyticsAdmin/src/V1alpha/AuditUserLink.php
@@ -29,7 +29,7 @@ class AuditUserLink extends \Google\Protobuf\Internal\Message
private $email_address = '';
/**
* Roles directly assigned to this user for this entity.
- * Format: predefinedRoles/read
+ * Format: predefinedRoles/viewer
* Excludes roles that are inherited from an account (if this is for a
* property), group, or organization admin role.
*
@@ -39,7 +39,7 @@ class AuditUserLink extends \Google\Protobuf\Internal\Message
/**
* Union of all permissions a user has at this account or property (includes
* direct permissions, group-inherited permissions, etc.).
- * Format: predefinedRoles/read
+ * Format: predefinedRoles/viewer
*
* Generated from protobuf field repeated string effective_roles = 4;
*/
@@ -57,13 +57,13 @@ class AuditUserLink extends \Google\Protobuf\Internal\Message
* Email address of the linked user
* @type string[]|\Google\Protobuf\Internal\RepeatedField $direct_roles
* Roles directly assigned to this user for this entity.
- * Format: predefinedRoles/read
+ * Format: predefinedRoles/viewer
* Excludes roles that are inherited from an account (if this is for a
* property), group, or organization admin role.
* @type string[]|\Google\Protobuf\Internal\RepeatedField $effective_roles
* Union of all permissions a user has at this account or property (includes
* direct permissions, group-inherited permissions, etc.).
- * Format: predefinedRoles/read
+ * Format: predefinedRoles/viewer
* }
*/
public function __construct($data = NULL) {
@@ -125,7 +125,7 @@ public function setEmailAddress($var)
/**
* Roles directly assigned to this user for this entity.
- * Format: predefinedRoles/read
+ * Format: predefinedRoles/viewer
* Excludes roles that are inherited from an account (if this is for a
* property), group, or organization admin role.
*
@@ -139,7 +139,7 @@ public function getDirectRoles()
/**
* Roles directly assigned to this user for this entity.
- * Format: predefinedRoles/read
+ * Format: predefinedRoles/viewer
* Excludes roles that are inherited from an account (if this is for a
* property), group, or organization admin role.
*
@@ -158,7 +158,7 @@ public function setDirectRoles($var)
/**
* Union of all permissions a user has at this account or property (includes
* direct permissions, group-inherited permissions, etc.).
- * Format: predefinedRoles/read
+ * Format: predefinedRoles/viewer
*
* Generated from protobuf field repeated string effective_roles = 4;
* @return \Google\Protobuf\Internal\RepeatedField
@@ -171,7 +171,7 @@ public function getEffectiveRoles()
/**
* Union of all permissions a user has at this account or property (includes
* direct permissions, group-inherited permissions, etc.).
- * Format: predefinedRoles/read
+ * Format: predefinedRoles/viewer
*
* Generated from protobuf field repeated string effective_roles = 4;
* @param string[]|\Google\Protobuf\Internal\RepeatedField $var
diff --git a/AnalyticsAdmin/src/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php b/AnalyticsAdmin/src/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php
new file mode 100644
index 000000000000..f5417363ae5f
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.php
@@ -0,0 +1,71 @@
+google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest
+ */
+class CancelDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange.php
index 67d5835d66bf..32f2c2f153bc 100644
--- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange.php
+++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange.php
@@ -126,7 +126,7 @@ public function setAction($var)
*/
public function getResourceBeforeChange()
{
- return isset($this->resource_before_change) ? $this->resource_before_change : null;
+ return $this->resource_before_change;
}
public function hasResourceBeforeChange()
@@ -164,7 +164,7 @@ public function setResourceBeforeChange($var)
*/
public function getResourceAfterChange()
{
- return isset($this->resource_after_change) ? $this->resource_after_change : null;
+ return $this->resource_after_change;
}
public function hasResourceAfterChange()
diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php
index 499afd803685..7ed044c80181 100644
--- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php
+++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php
@@ -40,6 +40,12 @@ class ChangeHistoryResource extends \Google\Protobuf\Internal\Message
* A snapshot of a GoogleAdsLink resource in change history.
* @type \Google\Analytics\Admin\V1alpha\GoogleSignalsSettings $google_signals_settings
* A snapshot of a GoogleSignalsSettings resource in change history.
+ * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link
+ * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+ * history.
+ * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $display_video_360_advertiser_link_proposal
+ * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+ * change history.
* @type \Google\Analytics\Admin\V1alpha\ConversionEvent $conversion_event
* A snapshot of a ConversionEvent resource in change history.
* @type \Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret $measurement_protocol_secret
@@ -48,6 +54,8 @@ class ChangeHistoryResource extends \Google\Protobuf\Internal\Message
* A snapshot of a CustomDimension resource in change history.
* @type \Google\Analytics\Admin\V1alpha\CustomMetric $custom_metric
* A snapshot of a CustomMetric resource in change history.
+ * @type \Google\Analytics\Admin\V1alpha\DataRetentionSettings $data_retention_settings
+ * A snapshot of a data retention settings resource in change history.
* }
*/
public function __construct($data = NULL) {
@@ -303,6 +311,72 @@ public function setGoogleSignalsSettings($var)
return $this;
}
+ /**
+ * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+ * history.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9;
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null
+ */
+ public function getDisplayVideo360AdvertiserLink()
+ {
+ return $this->readOneof(9);
+ }
+
+ public function hasDisplayVideo360AdvertiserLink()
+ {
+ return $this->hasOneof(9);
+ }
+
+ /**
+ * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+ * history.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9;
+ * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var
+ * @return $this
+ */
+ public function setDisplayVideo360AdvertiserLink($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class);
+ $this->writeOneof(9, $var);
+
+ return $this;
+ }
+
+ /**
+ * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+ * change history.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10;
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal|null
+ */
+ public function getDisplayVideo360AdvertiserLinkProposal()
+ {
+ return $this->readOneof(10);
+ }
+
+ public function hasDisplayVideo360AdvertiserLinkProposal()
+ {
+ return $this->hasOneof(10);
+ }
+
+ /**
+ * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+ * change history.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10;
+ * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $var
+ * @return $this
+ */
+ public function setDisplayVideo360AdvertiserLinkProposal($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class);
+ $this->writeOneof(10, $var);
+
+ return $this;
+ }
+
/**
* A snapshot of a ConversionEvent resource in change history.
*
@@ -427,6 +501,37 @@ public function setCustomMetric($var)
return $this;
}
+ /**
+ * A snapshot of a data retention settings resource in change history.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15;
+ * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings|null
+ */
+ public function getDataRetentionSettings()
+ {
+ return $this->readOneof(15);
+ }
+
+ public function hasDataRetentionSettings()
+ {
+ return $this->hasOneof(15);
+ }
+
+ /**
+ * A snapshot of a data retention settings resource in change history.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15;
+ * @param \Google\Analytics\Admin\V1alpha\DataRetentionSettings $var
+ * @return $this
+ */
+ public function setDataRetentionSettings($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings::class);
+ $this->writeOneof(15, $var);
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryEvent.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryEvent.php
index 0f9ed81870b7..373b8d9b3347 100644
--- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryEvent.php
+++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryEvent.php
@@ -122,7 +122,7 @@ public function setId($var)
*/
public function getChangeTime()
{
- return isset($this->change_time) ? $this->change_time : null;
+ return $this->change_time;
}
public function hasChangeTime()
diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php
index 06e7487ca2e0..354751036f7d 100644
--- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php
+++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php
@@ -91,6 +91,24 @@ class ChangeHistoryResourceType
* Generated from protobuf enum CUSTOM_METRIC = 12;
*/
const CUSTOM_METRIC = 12;
+ /**
+ * DataRetentionSettings resource
+ *
+ * Generated from protobuf enum DATA_RETENTION_SETTINGS = 13;
+ */
+ const DATA_RETENTION_SETTINGS = 13;
+ /**
+ * DisplayVideo360AdvertiserLink resource
+ *
+ * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK = 14;
+ */
+ const DISPLAY_VIDEO_360_ADVERTISER_LINK = 14;
+ /**
+ * DisplayVideo360AdvertiserLinkProposal resource
+ *
+ * Generated from protobuf enum DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15;
+ */
+ const DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15;
private static $valueToName = [
self::CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED => 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED',
@@ -106,6 +124,9 @@ class ChangeHistoryResourceType
self::MEASUREMENT_PROTOCOL_SECRET => 'MEASUREMENT_PROTOCOL_SECRET',
self::CUSTOM_DIMENSION => 'CUSTOM_DIMENSION',
self::CUSTOM_METRIC => 'CUSTOM_METRIC',
+ self::DATA_RETENTION_SETTINGS => 'DATA_RETENTION_SETTINGS',
+ self::DISPLAY_VIDEO_360_ADVERTISER_LINK => 'DISPLAY_VIDEO_360_ADVERTISER_LINK',
+ self::DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL => 'DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL',
];
public static function name($value)
diff --git a/AnalyticsAdmin/src/V1alpha/ConversionEvent.php b/AnalyticsAdmin/src/V1alpha/ConversionEvent.php
index b5405a7bce71..f7e8321e2ecb 100644
--- a/AnalyticsAdmin/src/V1alpha/ConversionEvent.php
+++ b/AnalyticsAdmin/src/V1alpha/ConversionEvent.php
@@ -38,9 +38,20 @@ class ConversionEvent extends \Google\Protobuf\Internal\Message
/**
* Output only. If set, this event can currently be deleted via DeleteConversionEvent.
*
- * Generated from protobuf field bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
- private $is_deletable = false;
+ private $deletable = false;
+ /**
+ * Output only. If set to true, this conversion event refers to a custom event. If set to
+ * false, this conversion event refers to a default event in GA. Default
+ * events typically have special meaning in GA. Default events are usually
+ * created for you by the GA system, but in some cases can be created by
+ * property admins. Custom events count towards the maximum number of
+ * custom conversion events that may be created per property.
+ *
+ * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $custom = false;
/**
* Constructor.
@@ -56,8 +67,15 @@ class ConversionEvent extends \Google\Protobuf\Internal\Message
* Examples: 'click', 'purchase'
* @type \Google\Protobuf\Timestamp $create_time
* Output only. Time when this conversion event was created in the property.
- * @type bool $is_deletable
+ * @type bool $deletable
* Output only. If set, this event can currently be deleted via DeleteConversionEvent.
+ * @type bool $custom
+ * Output only. If set to true, this conversion event refers to a custom event. If set to
+ * false, this conversion event refers to a default event in GA. Default
+ * events typically have special meaning in GA. Default events are usually
+ * created for you by the GA system, but in some cases can be created by
+ * property admins. Custom events count towards the maximum number of
+ * custom conversion events that may be created per property.
* }
*/
public function __construct($data = NULL) {
@@ -129,7 +147,7 @@ public function setEventName($var)
*/
public function getCreateTime()
{
- return isset($this->create_time) ? $this->create_time : null;
+ return $this->create_time;
}
public function hasCreateTime()
@@ -160,25 +178,61 @@ public function setCreateTime($var)
/**
* Output only. If set, this event can currently be deleted via DeleteConversionEvent.
*
- * Generated from protobuf field bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return bool
*/
- public function getIsDeletable()
+ public function getDeletable()
{
- return $this->is_deletable;
+ return $this->deletable;
}
/**
* Output only. If set, this event can currently be deleted via DeleteConversionEvent.
*
- * Generated from protobuf field bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param bool $var
+ * @return $this
+ */
+ public function setDeletable($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->deletable = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. If set to true, this conversion event refers to a custom event. If set to
+ * false, this conversion event refers to a default event in GA. Default
+ * events typically have special meaning in GA. Default events are usually
+ * created for you by the GA system, but in some cases can be created by
+ * property admins. Custom events count towards the maximum number of
+ * custom conversion events that may be created per property.
+ *
+ * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return bool
+ */
+ public function getCustom()
+ {
+ return $this->custom;
+ }
+
+ /**
+ * Output only. If set to true, this conversion event refers to a custom event. If set to
+ * false, this conversion event refers to a default event in GA. Default
+ * events typically have special meaning in GA. Default events are usually
+ * created for you by the GA system, but in some cases can be created by
+ * property admins. Custom events count towards the maximum number of
+ * custom conversion events that may be created per property.
+ *
+ * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param bool $var
* @return $this
*/
- public function setIsDeletable($var)
+ public function setCustom($var)
{
GPBUtil::checkBool($var);
- $this->is_deletable = $var;
+ $this->custom = $var;
return $this;
}
diff --git a/AnalyticsAdmin/src/V1alpha/CreateConversionEventRequest.php b/AnalyticsAdmin/src/V1alpha/CreateConversionEventRequest.php
index 9a19ffcc0b60..3e124528b669 100644
--- a/AnalyticsAdmin/src/V1alpha/CreateConversionEventRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/CreateConversionEventRequest.php
@@ -55,7 +55,7 @@ public function __construct($data = NULL) {
*/
public function getConversionEvent()
{
- return isset($this->conversion_event) ? $this->conversion_event : null;
+ return $this->conversion_event;
}
public function hasConversionEvent()
diff --git a/AnalyticsAdmin/src/V1alpha/CreateCustomDimensionRequest.php b/AnalyticsAdmin/src/V1alpha/CreateCustomDimensionRequest.php
index 2de265cc6302..654e0e2a0767 100644
--- a/AnalyticsAdmin/src/V1alpha/CreateCustomDimensionRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/CreateCustomDimensionRequest.php
@@ -79,7 +79,7 @@ public function setParent($var)
*/
public function getCustomDimension()
{
- return isset($this->custom_dimension) ? $this->custom_dimension : null;
+ return $this->custom_dimension;
}
public function hasCustomDimension()
diff --git a/AnalyticsAdmin/src/V1alpha/CreateCustomMetricRequest.php b/AnalyticsAdmin/src/V1alpha/CreateCustomMetricRequest.php
index 2fce5d94b14b..a1d8846a465c 100644
--- a/AnalyticsAdmin/src/V1alpha/CreateCustomMetricRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/CreateCustomMetricRequest.php
@@ -79,7 +79,7 @@ public function setParent($var)
*/
public function getCustomMetric()
{
- return isset($this->custom_metric) ? $this->custom_metric : null;
+ return $this->custom_metric;
}
public function hasCustomMetric()
diff --git a/AnalyticsAdmin/src/V1alpha/CreateDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/CreateDataStreamRequest.php
new file mode 100644
index 000000000000..fef4c92e969d
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/CreateDataStreamRequest.php
@@ -0,0 +1,111 @@
+google.analytics.admin.v1alpha.CreateDataStreamRequest
+ */
+class CreateDataStreamRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * Required. The DataStream to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $data_stream = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. Example format: properties/1234
+ * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream
+ * Required. The DataStream to create.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The DataStream to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\DataStream|null
+ */
+ public function getDataStream()
+ {
+ return $this->data_stream;
+ }
+
+ public function hasDataStream()
+ {
+ return isset($this->data_stream);
+ }
+
+ public function clearDataStream()
+ {
+ unset($this->data_stream);
+ }
+
+ /**
+ * Required. The DataStream to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\DataStream $var
+ * @return $this
+ */
+ public function setDataStream($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class);
+ $this->data_stream = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php b/AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php
new file mode 100644
index 000000000000..6282ee97d55b
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.php
@@ -0,0 +1,111 @@
+google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest
+ */
+class CreateDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $display_video_360_advertiser_link_proposal = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. Example format: properties/1234
+ * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $display_video_360_advertiser_link_proposal
+ * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal|null
+ */
+ public function getDisplayVideo360AdvertiserLinkProposal()
+ {
+ return $this->display_video_360_advertiser_link_proposal;
+ }
+
+ public function hasDisplayVideo360AdvertiserLinkProposal()
+ {
+ return isset($this->display_video_360_advertiser_link_proposal);
+ }
+
+ public function clearDisplayVideo360AdvertiserLinkProposal()
+ {
+ unset($this->display_video_360_advertiser_link_proposal);
+ }
+
+ /**
+ * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal $var
+ * @return $this
+ */
+ public function setDisplayVideo360AdvertiserLinkProposal($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class);
+ $this->display_video_360_advertiser_link_proposal = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php
new file mode 100644
index 000000000000..df57267fe977
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/CreateDisplayVideo360AdvertiserLinkRequest.php
@@ -0,0 +1,111 @@
+google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest
+ */
+class CreateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * Required. The DisplayVideo360AdvertiserLink to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $display_video_360_advertiser_link = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. Example format: properties/1234
+ * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link
+ * Required. The DisplayVideo360AdvertiserLink to create.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The DisplayVideo360AdvertiserLink to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null
+ */
+ public function getDisplayVideo360AdvertiserLink()
+ {
+ return $this->display_video_360_advertiser_link;
+ }
+
+ public function hasDisplayVideo360AdvertiserLink()
+ {
+ return isset($this->display_video_360_advertiser_link);
+ }
+
+ public function clearDisplayVideo360AdvertiserLink()
+ {
+ unset($this->display_video_360_advertiser_link);
+ }
+
+ /**
+ * Required. The DisplayVideo360AdvertiserLink to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var
+ * @return $this
+ */
+ public function setDisplayVideo360AdvertiserLink($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class);
+ $this->display_video_360_advertiser_link = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php
index cdb68286d47a..a4b46e39af3e 100644
--- a/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php
@@ -83,7 +83,7 @@ public function setParent($var)
*/
public function getFirebaseLink()
{
- return isset($this->firebase_link) ? $this->firebase_link : null;
+ return $this->firebase_link;
}
public function hasFirebaseLink()
diff --git a/AnalyticsAdmin/src/V1alpha/CreateGoogleAdsLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateGoogleAdsLinkRequest.php
index 2b513aa7e6e5..3854e554f16b 100644
--- a/AnalyticsAdmin/src/V1alpha/CreateGoogleAdsLinkRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/CreateGoogleAdsLinkRequest.php
@@ -79,7 +79,7 @@ public function setParent($var)
*/
public function getGoogleAdsLink()
{
- return isset($this->google_ads_link) ? $this->google_ads_link : null;
+ return $this->google_ads_link;
}
public function hasGoogleAdsLink()
diff --git a/AnalyticsAdmin/src/V1alpha/CreateMeasurementProtocolSecretRequest.php b/AnalyticsAdmin/src/V1alpha/CreateMeasurementProtocolSecretRequest.php
index fa5718444334..00397615e615 100644
--- a/AnalyticsAdmin/src/V1alpha/CreateMeasurementProtocolSecretRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/CreateMeasurementProtocolSecretRequest.php
@@ -91,7 +91,7 @@ public function setParent($var)
*/
public function getMeasurementProtocolSecret()
{
- return isset($this->measurement_protocol_secret) ? $this->measurement_protocol_secret : null;
+ return $this->measurement_protocol_secret;
}
public function hasMeasurementProtocolSecret()
diff --git a/AnalyticsAdmin/src/V1alpha/CreatePropertyRequest.php b/AnalyticsAdmin/src/V1alpha/CreatePropertyRequest.php
index 9476c7ca1a6b..56fe1d057d52 100644
--- a/AnalyticsAdmin/src/V1alpha/CreatePropertyRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/CreatePropertyRequest.php
@@ -48,7 +48,7 @@ public function __construct($data = NULL) {
*/
public function getProperty()
{
- return isset($this->property) ? $this->property : null;
+ return $this->property;
}
public function hasProperty()
diff --git a/AnalyticsAdmin/src/V1alpha/CreateUserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateUserLinkRequest.php
index 4e0a0d1ce7e5..60c86dc57e44 100644
--- a/AnalyticsAdmin/src/V1alpha/CreateUserLinkRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/CreateUserLinkRequest.php
@@ -123,7 +123,7 @@ public function setNotifyNewUser($var)
*/
public function getUserLink()
{
- return isset($this->user_link) ? $this->user_link : null;
+ return $this->user_link;
}
public function hasUserLink()
diff --git a/AnalyticsAdmin/src/V1alpha/CreateWebDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/CreateWebDataStreamRequest.php
index f32f0611be9d..7381a5d52457 100644
--- a/AnalyticsAdmin/src/V1alpha/CreateWebDataStreamRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/CreateWebDataStreamRequest.php
@@ -55,7 +55,7 @@ public function __construct($data = NULL) {
*/
public function getWebDataStream()
{
- return isset($this->web_data_stream) ? $this->web_data_stream : null;
+ return $this->web_data_stream;
}
public function hasWebDataStream()
diff --git a/AnalyticsAdmin/src/V1alpha/CustomMetric.php b/AnalyticsAdmin/src/V1alpha/CustomMetric.php
index 8a716f7de095..b1ed70910913 100644
--- a/AnalyticsAdmin/src/V1alpha/CustomMetric.php
+++ b/AnalyticsAdmin/src/V1alpha/CustomMetric.php
@@ -50,9 +50,9 @@ class CustomMetric extends \Google\Protobuf\Internal\Message
*/
private $description = '';
/**
- * Required. Immutable. The type for the custom metric's value.
+ * Required. The type for the custom metric's value.
*
- * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];
*/
private $measurement_unit = 0;
/**
@@ -87,7 +87,7 @@ class CustomMetric extends \Google\Protobuf\Internal\Message
* Optional. Description for this custom dimension.
* Max length of 150 characters.
* @type int $measurement_unit
- * Required. Immutable. The type for the custom metric's value.
+ * Required. The type for the custom metric's value.
* @type int $scope
* Required. Immutable. The scope of this custom metric.
* }
@@ -222,9 +222,9 @@ public function setDescription($var)
}
/**
- * Required. Immutable. The type for the custom metric's value.
+ * Required. The type for the custom metric's value.
*
- * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];
* @return int
*/
public function getMeasurementUnit()
@@ -233,9 +233,9 @@ public function getMeasurementUnit()
}
/**
- * Required. Immutable. The type for the custom metric's value.
+ * Required. The type for the custom metric's value.
*
- * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
+ * Generated from protobuf field .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];
* @param int $var
* @return $this
*/
diff --git a/AnalyticsAdmin/src/V1alpha/DataRetentionSettings.php b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings.php
new file mode 100644
index 000000000000..667d65aab8f4
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings.php
@@ -0,0 +1,143 @@
+google.analytics.admin.v1alpha.DataRetentionSettings
+ */
+class DataRetentionSettings extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. Resource name for this DataRetentionSetting resource.
+ * Format: properties/{property}/dataRetentionSettings
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $name = '';
+ /**
+ * The length of time that event-level data is retained.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2;
+ */
+ private $event_data_retention = 0;
+ /**
+ * If true, reset the retention period for the user identifier with every
+ * event from that user.
+ *
+ * Generated from protobuf field bool reset_user_data_on_new_activity = 3;
+ */
+ private $reset_user_data_on_new_activity = false;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Output only. Resource name for this DataRetentionSetting resource.
+ * Format: properties/{property}/dataRetentionSettings
+ * @type int $event_data_retention
+ * The length of time that event-level data is retained.
+ * @type bool $reset_user_data_on_new_activity
+ * If true, reset the retention period for the user identifier with every
+ * event from that user.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Output only. Resource name for this DataRetentionSetting resource.
+ * Format: properties/{property}/dataRetentionSettings
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Output only. Resource name for this DataRetentionSetting resource.
+ * Format: properties/{property}/dataRetentionSettings
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+ /**
+ * The length of time that event-level data is retained.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2;
+ * @return int
+ */
+ public function getEventDataRetention()
+ {
+ return $this->event_data_retention;
+ }
+
+ /**
+ * The length of time that event-level data is retained.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setEventDataRetention($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings\RetentionDuration::class);
+ $this->event_data_retention = $var;
+
+ return $this;
+ }
+
+ /**
+ * If true, reset the retention period for the user identifier with every
+ * event from that user.
+ *
+ * Generated from protobuf field bool reset_user_data_on_new_activity = 3;
+ * @return bool
+ */
+ public function getResetUserDataOnNewActivity()
+ {
+ return $this->reset_user_data_on_new_activity;
+ }
+
+ /**
+ * If true, reset the retention period for the user identifier with every
+ * event from that user.
+ *
+ * Generated from protobuf field bool reset_user_data_on_new_activity = 3;
+ * @param bool $var
+ * @return $this
+ */
+ public function setResetUserDataOnNewActivity($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->reset_user_data_on_new_activity = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/DataRetentionSettings/RetentionDuration.php b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings/RetentionDuration.php
new file mode 100644
index 000000000000..be5f9eb42de3
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings/RetentionDuration.php
@@ -0,0 +1,88 @@
+google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration
+ */
+class RetentionDuration
+{
+ /**
+ * Data retention time duration is not specified.
+ *
+ * Generated from protobuf enum RETENTION_DURATION_UNSPECIFIED = 0;
+ */
+ const RETENTION_DURATION_UNSPECIFIED = 0;
+ /**
+ * The data retention time duration is 2 months.
+ *
+ * Generated from protobuf enum TWO_MONTHS = 1;
+ */
+ const TWO_MONTHS = 1;
+ /**
+ * The data retention time duration is 14 months.
+ *
+ * Generated from protobuf enum FOURTEEN_MONTHS = 3;
+ */
+ const FOURTEEN_MONTHS = 3;
+ /**
+ * The data retention time duration is 26 months.
+ * Available to 360 properties only.
+ *
+ * Generated from protobuf enum TWENTY_SIX_MONTHS = 4;
+ */
+ const TWENTY_SIX_MONTHS = 4;
+ /**
+ * The data retention time duration is 38 months.
+ * Available to 360 properties only.
+ *
+ * Generated from protobuf enum THIRTY_EIGHT_MONTHS = 5;
+ */
+ const THIRTY_EIGHT_MONTHS = 5;
+ /**
+ * The data retention time duration is 50 months.
+ * Available to 360 properties only.
+ *
+ * Generated from protobuf enum FIFTY_MONTHS = 6;
+ */
+ const FIFTY_MONTHS = 6;
+
+ private static $valueToName = [
+ self::RETENTION_DURATION_UNSPECIFIED => 'RETENTION_DURATION_UNSPECIFIED',
+ self::TWO_MONTHS => 'TWO_MONTHS',
+ self::FOURTEEN_MONTHS => 'FOURTEEN_MONTHS',
+ self::TWENTY_SIX_MONTHS => 'TWENTY_SIX_MONTHS',
+ self::THIRTY_EIGHT_MONTHS => 'THIRTY_EIGHT_MONTHS',
+ self::FIFTY_MONTHS => 'FIFTY_MONTHS',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(RetentionDuration::class, \Google\Analytics\Admin\V1alpha\DataRetentionSettings_RetentionDuration::class);
+
diff --git a/AnalyticsAdmin/src/V1alpha/DataRetentionSettings_RetentionDuration.php b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings_RetentionDuration.php
new file mode 100644
index 000000000000..f3585feaed85
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DataRetentionSettings_RetentionDuration.php
@@ -0,0 +1,16 @@
+google.analytics.admin.v1alpha.DataStream
+ */
+class DataStream extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. Resource name of this Data Stream.
+ * Format: properties/{property_id}/dataStreams/{stream_id}
+ * Example: "properties/1000/dataStreams/2000"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $name = '';
+ /**
+ * Required. Immutable. The type of this DataStream resource.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
+ */
+ private $type = 0;
+ /**
+ * Human-readable display name for the Data Stream.
+ * Required for web data streams.
+ * The max allowed display name length is 255 UTF-16 code units.
+ *
+ * Generated from protobuf field string display_name = 3;
+ */
+ private $display_name = '';
+ /**
+ * Output only. Time when this stream was originally created.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $create_time = null;
+ /**
+ * Output only. Time when stream payload fields were last updated.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $update_time = null;
+ protected $stream_data;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData $web_stream_data
+ * Data specific to web streams. Must be populated if type is
+ * WEB_DATA_STREAM.
+ * @type \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData $android_app_stream_data
+ * Data specific to Android app streams. Must be populated if type is
+ * ANDROID_APP_DATA_STREAM.
+ * @type \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData $ios_app_stream_data
+ * Data specific to iOS app streams. Must be populated if type is
+ * IOS_APP_DATA_STREAM.
+ * @type string $name
+ * Output only. Resource name of this Data Stream.
+ * Format: properties/{property_id}/dataStreams/{stream_id}
+ * Example: "properties/1000/dataStreams/2000"
+ * @type int $type
+ * Required. Immutable. The type of this DataStream resource.
+ * @type string $display_name
+ * Human-readable display name for the Data Stream.
+ * Required for web data streams.
+ * The max allowed display name length is 255 UTF-16 code units.
+ * @type \Google\Protobuf\Timestamp $create_time
+ * Output only. Time when this stream was originally created.
+ * @type \Google\Protobuf\Timestamp $update_time
+ * Output only. Time when stream payload fields were last updated.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Data specific to web streams. Must be populated if type is
+ * WEB_DATA_STREAM.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6;
+ * @return \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData|null
+ */
+ public function getWebStreamData()
+ {
+ return $this->readOneof(6);
+ }
+
+ public function hasWebStreamData()
+ {
+ return $this->hasOneof(6);
+ }
+
+ /**
+ * Data specific to web streams. Must be populated if type is
+ * WEB_DATA_STREAM.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6;
+ * @param \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData $var
+ * @return $this
+ */
+ public function setWebStreamData($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\WebStreamData::class);
+ $this->writeOneof(6, $var);
+
+ return $this;
+ }
+
+ /**
+ * Data specific to Android app streams. Must be populated if type is
+ * ANDROID_APP_DATA_STREAM.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7;
+ * @return \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData|null
+ */
+ public function getAndroidAppStreamData()
+ {
+ return $this->readOneof(7);
+ }
+
+ public function hasAndroidAppStreamData()
+ {
+ return $this->hasOneof(7);
+ }
+
+ /**
+ * Data specific to Android app streams. Must be populated if type is
+ * ANDROID_APP_DATA_STREAM.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7;
+ * @param \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData $var
+ * @return $this
+ */
+ public function setAndroidAppStreamData($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\AndroidAppStreamData::class);
+ $this->writeOneof(7, $var);
+
+ return $this;
+ }
+
+ /**
+ * Data specific to iOS app streams. Must be populated if type is
+ * IOS_APP_DATA_STREAM.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8;
+ * @return \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData|null
+ */
+ public function getIosAppStreamData()
+ {
+ return $this->readOneof(8);
+ }
+
+ public function hasIosAppStreamData()
+ {
+ return $this->hasOneof(8);
+ }
+
+ /**
+ * Data specific to iOS app streams. Must be populated if type is
+ * IOS_APP_DATA_STREAM.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8;
+ * @param \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData $var
+ * @return $this
+ */
+ public function setIosAppStreamData($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream\IosAppStreamData::class);
+ $this->writeOneof(8, $var);
+
+ return $this;
+ }
+
+ /**
+ * Output only. Resource name of this Data Stream.
+ * Format: properties/{property_id}/dataStreams/{stream_id}
+ * Example: "properties/1000/dataStreams/2000"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Output only. Resource name of this Data Stream.
+ * Format: properties/{property_id}/dataStreams/{stream_id}
+ * Example: "properties/1000/dataStreams/2000"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. Immutable. The type of this DataStream resource.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
+ * @return int
+ */
+ public function getType()
+ {
+ return $this->type;
+ }
+
+ /**
+ * Required. Immutable. The type of this DataStream resource.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
+ * @param int $var
+ * @return $this
+ */
+ public function setType($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\DataStream\DataStreamType::class);
+ $this->type = $var;
+
+ return $this;
+ }
+
+ /**
+ * Human-readable display name for the Data Stream.
+ * Required for web data streams.
+ * The max allowed display name length is 255 UTF-16 code units.
+ *
+ * Generated from protobuf field string display_name = 3;
+ * @return string
+ */
+ public function getDisplayName()
+ {
+ return $this->display_name;
+ }
+
+ /**
+ * Human-readable display name for the Data Stream.
+ * Required for web data streams.
+ * The max allowed display name length is 255 UTF-16 code units.
+ *
+ * Generated from protobuf field string display_name = 3;
+ * @param string $var
+ * @return $this
+ */
+ public function setDisplayName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->display_name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. Time when this stream was originally created.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getCreateTime()
+ {
+ return $this->create_time;
+ }
+
+ public function hasCreateTime()
+ {
+ return isset($this->create_time);
+ }
+
+ public function clearCreateTime()
+ {
+ unset($this->create_time);
+ }
+
+ /**
+ * Output only. Time when this stream was originally created.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setCreateTime($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->create_time = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. Time when stream payload fields were last updated.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getUpdateTime()
+ {
+ return $this->update_time;
+ }
+
+ public function hasUpdateTime()
+ {
+ return isset($this->update_time);
+ }
+
+ public function clearUpdateTime()
+ {
+ unset($this->update_time);
+ }
+
+ /**
+ * Output only. Time when stream payload fields were last updated.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setUpdateTime($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->update_time = $var;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getStreamData()
+ {
+ return $this->whichOneof("stream_data");
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/DataStream/AndroidAppStreamData.php b/AnalyticsAdmin/src/V1alpha/DataStream/AndroidAppStreamData.php
new file mode 100644
index 000000000000..43599b9f19d8
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DataStream/AndroidAppStreamData.php
@@ -0,0 +1,112 @@
+google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData
+ */
+class AndroidAppStreamData extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. ID of the corresponding Android app in Firebase, if any.
+ * This ID can change if the Android app is deleted and recreated.
+ *
+ * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $firebase_app_id = '';
+ /**
+ * Immutable. The package name for the app being measured.
+ * Example: "com.example.myandroidapp"
+ *
+ * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ */
+ private $package_name = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $firebase_app_id
+ * Output only. ID of the corresponding Android app in Firebase, if any.
+ * This ID can change if the Android app is deleted and recreated.
+ * @type string $package_name
+ * Immutable. The package name for the app being measured.
+ * Example: "com.example.myandroidapp"
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Output only. ID of the corresponding Android app in Firebase, if any.
+ * This ID can change if the Android app is deleted and recreated.
+ *
+ * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getFirebaseAppId()
+ {
+ return $this->firebase_app_id;
+ }
+
+ /**
+ * Output only. ID of the corresponding Android app in Firebase, if any.
+ * This ID can change if the Android app is deleted and recreated.
+ *
+ * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setFirebaseAppId($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->firebase_app_id = $var;
+
+ return $this;
+ }
+
+ /**
+ * Immutable. The package name for the app being measured.
+ * Example: "com.example.myandroidapp"
+ *
+ * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return string
+ */
+ public function getPackageName()
+ {
+ return $this->package_name;
+ }
+
+ /**
+ * Immutable. The package name for the app being measured.
+ * Example: "com.example.myandroidapp"
+ *
+ * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param string $var
+ * @return $this
+ */
+ public function setPackageName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->package_name = $var;
+
+ return $this;
+ }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(AndroidAppStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_AndroidAppStreamData::class);
+
diff --git a/AnalyticsAdmin/src/V1alpha/DataStream/DataStreamType.php b/AnalyticsAdmin/src/V1alpha/DataStream/DataStreamType.php
new file mode 100644
index 000000000000..40b9025b6d49
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DataStream/DataStreamType.php
@@ -0,0 +1,71 @@
+google.analytics.admin.v1alpha.DataStream.DataStreamType
+ */
+class DataStreamType
+{
+ /**
+ * Type unknown or not specified.
+ *
+ * Generated from protobuf enum DATA_STREAM_TYPE_UNSPECIFIED = 0;
+ */
+ const DATA_STREAM_TYPE_UNSPECIFIED = 0;
+ /**
+ * Web data stream.
+ *
+ * Generated from protobuf enum WEB_DATA_STREAM = 1;
+ */
+ const WEB_DATA_STREAM = 1;
+ /**
+ * Android app data stream.
+ *
+ * Generated from protobuf enum ANDROID_APP_DATA_STREAM = 2;
+ */
+ const ANDROID_APP_DATA_STREAM = 2;
+ /**
+ * iOS app data stream.
+ *
+ * Generated from protobuf enum IOS_APP_DATA_STREAM = 3;
+ */
+ const IOS_APP_DATA_STREAM = 3;
+
+ private static $valueToName = [
+ self::DATA_STREAM_TYPE_UNSPECIFIED => 'DATA_STREAM_TYPE_UNSPECIFIED',
+ self::WEB_DATA_STREAM => 'WEB_DATA_STREAM',
+ self::ANDROID_APP_DATA_STREAM => 'ANDROID_APP_DATA_STREAM',
+ self::IOS_APP_DATA_STREAM => 'IOS_APP_DATA_STREAM',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(DataStreamType::class, \Google\Analytics\Admin\V1alpha\DataStream_DataStreamType::class);
+
diff --git a/AnalyticsAdmin/src/V1alpha/DataStream/IosAppStreamData.php b/AnalyticsAdmin/src/V1alpha/DataStream/IosAppStreamData.php
new file mode 100644
index 000000000000..bf35d3c8f983
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DataStream/IosAppStreamData.php
@@ -0,0 +1,112 @@
+google.analytics.admin.v1alpha.DataStream.IosAppStreamData
+ */
+class IosAppStreamData extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. ID of the corresponding iOS app in Firebase, if any.
+ * This ID can change if the iOS app is deleted and recreated.
+ *
+ * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $firebase_app_id = '';
+ /**
+ * Required. Immutable. The Apple App Store Bundle ID for the app
+ * Example: "com.example.myiosapp"
+ *
+ * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
+ */
+ private $bundle_id = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $firebase_app_id
+ * Output only. ID of the corresponding iOS app in Firebase, if any.
+ * This ID can change if the iOS app is deleted and recreated.
+ * @type string $bundle_id
+ * Required. Immutable. The Apple App Store Bundle ID for the app
+ * Example: "com.example.myiosapp"
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Output only. ID of the corresponding iOS app in Firebase, if any.
+ * This ID can change if the iOS app is deleted and recreated.
+ *
+ * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getFirebaseAppId()
+ {
+ return $this->firebase_app_id;
+ }
+
+ /**
+ * Output only. ID of the corresponding iOS app in Firebase, if any.
+ * This ID can change if the iOS app is deleted and recreated.
+ *
+ * Generated from protobuf field string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setFirebaseAppId($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->firebase_app_id = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. Immutable. The Apple App Store Bundle ID for the app
+ * Example: "com.example.myiosapp"
+ *
+ * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
+ * @return string
+ */
+ public function getBundleId()
+ {
+ return $this->bundle_id;
+ }
+
+ /**
+ * Required. Immutable. The Apple App Store Bundle ID for the app
+ * Example: "com.example.myiosapp"
+ *
+ * Generated from protobuf field string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
+ * @param string $var
+ * @return $this
+ */
+ public function setBundleId($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->bundle_id = $var;
+
+ return $this;
+ }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(IosAppStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_IosAppStreamData::class);
+
diff --git a/AnalyticsAdmin/src/V1alpha/DataStream/WebStreamData.php b/AnalyticsAdmin/src/V1alpha/DataStream/WebStreamData.php
new file mode 100644
index 000000000000..3e7029eb96c8
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DataStream/WebStreamData.php
@@ -0,0 +1,150 @@
+google.analytics.admin.v1alpha.DataStream.WebStreamData
+ */
+class WebStreamData extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. Analytics "Measurement ID", without the "G-" prefix.
+ * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
+ *
+ * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $measurement_id = '';
+ /**
+ * Output only. ID of the corresponding web app in Firebase, if any.
+ * This ID can change if the web app is deleted and recreated.
+ *
+ * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $firebase_app_id = '';
+ /**
+ * Immutable. Domain name of the web app being measured, or empty.
+ * Example: "http://www.google.com", "https://www.google.com"
+ *
+ * Generated from protobuf field string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE];
+ */
+ private $default_uri = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $measurement_id
+ * Output only. Analytics "Measurement ID", without the "G-" prefix.
+ * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
+ * @type string $firebase_app_id
+ * Output only. ID of the corresponding web app in Firebase, if any.
+ * This ID can change if the web app is deleted and recreated.
+ * @type string $default_uri
+ * Immutable. Domain name of the web app being measured, or empty.
+ * Example: "http://www.google.com", "https://www.google.com"
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Output only. Analytics "Measurement ID", without the "G-" prefix.
+ * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
+ *
+ * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getMeasurementId()
+ {
+ return $this->measurement_id;
+ }
+
+ /**
+ * Output only. Analytics "Measurement ID", without the "G-" prefix.
+ * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
+ *
+ * Generated from protobuf field string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setMeasurementId($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->measurement_id = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. ID of the corresponding web app in Firebase, if any.
+ * This ID can change if the web app is deleted and recreated.
+ *
+ * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getFirebaseAppId()
+ {
+ return $this->firebase_app_id;
+ }
+
+ /**
+ * Output only. ID of the corresponding web app in Firebase, if any.
+ * This ID can change if the web app is deleted and recreated.
+ *
+ * Generated from protobuf field string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setFirebaseAppId($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->firebase_app_id = $var;
+
+ return $this;
+ }
+
+ /**
+ * Immutable. Domain name of the web app being measured, or empty.
+ * Example: "http://www.google.com", "https://www.google.com"
+ *
+ * Generated from protobuf field string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return string
+ */
+ public function getDefaultUri()
+ {
+ return $this->default_uri;
+ }
+
+ /**
+ * Immutable. Domain name of the web app being measured, or empty.
+ * Example: "http://www.google.com", "https://www.google.com"
+ *
+ * Generated from protobuf field string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param string $var
+ * @return $this
+ */
+ public function setDefaultUri($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->default_uri = $var;
+
+ return $this;
+ }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(WebStreamData::class, \Google\Analytics\Admin\V1alpha\DataStream_WebStreamData::class);
+
diff --git a/AnalyticsAdmin/src/V1alpha/DataStream_AndroidAppStreamData.php b/AnalyticsAdmin/src/V1alpha/DataStream_AndroidAppStreamData.php
new file mode 100644
index 000000000000..b5dca0ca4578
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DataStream_AndroidAppStreamData.php
@@ -0,0 +1,16 @@
+google.analytics.admin.v1alpha.DeleteDataStreamRequest
+ */
+class DeleteDataStreamRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the DataStream to delete.
+ * Example format: properties/1234/dataStreams/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The name of the DataStream to delete.
+ * Example format: properties/1234/dataStreams/5678
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the DataStream to delete.
+ * Example format: properties/1234/dataStreams/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The name of the DataStream to delete.
+ * Example format: properties/1234/dataStreams/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php
new file mode 100644
index 000000000000..0c3a125c9342
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.php
@@ -0,0 +1,71 @@
+google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest
+ */
+class DeleteDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php
new file mode 100644
index 000000000000..d0f84d2bf86c
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.php
@@ -0,0 +1,71 @@
+google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest
+ */
+class DeleteDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+ * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+ * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+ * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+ * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLink.php b/AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLink.php
new file mode 100644
index 000000000000..f6181f64a33d
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLink.php
@@ -0,0 +1,404 @@
+google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink
+ */
+class DisplayVideo360AdvertiserLink extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+ * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+ * Note: linkId is not the Display & Video 360 Advertiser ID
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $name = '';
+ /**
+ * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+ *
+ * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ */
+ private $advertiser_id = '';
+ /**
+ * Output only. The display name of the Display & Video 360 Advertiser.
+ *
+ * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $advertiser_display_name = '';
+ /**
+ * Enables personalized advertising features with this integration.
+ * If this field is not set on create/update, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4;
+ */
+ private $ads_personalization_enabled = null;
+ /**
+ * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+ * property. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE];
+ */
+ private $campaign_data_sharing_enabled = null;
+ /**
+ * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+ * property. This can only be enabled if campaign_data_sharing_enabled is
+ * enabled. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ */
+ private $cost_data_sharing_enabled = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+ * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+ * Note: linkId is not the Display & Video 360 Advertiser ID
+ * @type string $advertiser_id
+ * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+ * @type string $advertiser_display_name
+ * Output only. The display name of the Display & Video 360 Advertiser.
+ * @type \Google\Protobuf\BoolValue $ads_personalization_enabled
+ * Enables personalized advertising features with this integration.
+ * If this field is not set on create/update, it will be defaulted to true.
+ * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled
+ * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+ * property. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled
+ * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+ * property. This can only be enabled if campaign_data_sharing_enabled is
+ * enabled. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+ * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+ * Note: linkId is not the Display & Video 360 Advertiser ID
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+ * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+ * Note: linkId is not the Display & Video 360 Advertiser ID
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+ *
+ * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return string
+ */
+ public function getAdvertiserId()
+ {
+ return $this->advertiser_id;
+ }
+
+ /**
+ * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+ *
+ * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param string $var
+ * @return $this
+ */
+ public function setAdvertiserId($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->advertiser_id = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The display name of the Display & Video 360 Advertiser.
+ *
+ * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getAdvertiserDisplayName()
+ {
+ return $this->advertiser_display_name;
+ }
+
+ /**
+ * Output only. The display name of the Display & Video 360 Advertiser.
+ *
+ * Generated from protobuf field string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setAdvertiserDisplayName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->advertiser_display_name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Enables personalized advertising features with this integration.
+ * If this field is not set on create/update, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4;
+ * @return \Google\Protobuf\BoolValue|null
+ */
+ public function getAdsPersonalizationEnabled()
+ {
+ return $this->ads_personalization_enabled;
+ }
+
+ public function hasAdsPersonalizationEnabled()
+ {
+ return isset($this->ads_personalization_enabled);
+ }
+
+ public function clearAdsPersonalizationEnabled()
+ {
+ unset($this->ads_personalization_enabled);
+ }
+
+ /**
+ * Returns the unboxed value from getAdsPersonalizationEnabled()
+
+ * Enables personalized advertising features with this integration.
+ * If this field is not set on create/update, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4;
+ * @return bool|null
+ */
+ public function getAdsPersonalizationEnabledValue()
+ {
+ return $this->readWrapperValue("ads_personalization_enabled");
+ }
+
+ /**
+ * Enables personalized advertising features with this integration.
+ * If this field is not set on create/update, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4;
+ * @param \Google\Protobuf\BoolValue $var
+ * @return $this
+ */
+ public function setAdsPersonalizationEnabled($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
+ $this->ads_personalization_enabled = $var;
+
+ return $this;
+ }
+
+ /**
+ * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
+
+ * Enables personalized advertising features with this integration.
+ * If this field is not set on create/update, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 4;
+ * @param bool|null $var
+ * @return $this
+ */
+ public function setAdsPersonalizationEnabledValue($var)
+ {
+ $this->writeWrapperValue("ads_personalization_enabled", $var);
+ return $this;}
+
+ /**
+ * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+ * property. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return \Google\Protobuf\BoolValue|null
+ */
+ public function getCampaignDataSharingEnabled()
+ {
+ return $this->campaign_data_sharing_enabled;
+ }
+
+ public function hasCampaignDataSharingEnabled()
+ {
+ return isset($this->campaign_data_sharing_enabled);
+ }
+
+ public function clearCampaignDataSharingEnabled()
+ {
+ unset($this->campaign_data_sharing_enabled);
+ }
+
+ /**
+ * Returns the unboxed value from getCampaignDataSharingEnabled()
+
+ * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+ * property. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return bool|null
+ */
+ public function getCampaignDataSharingEnabledValue()
+ {
+ return $this->readWrapperValue("campaign_data_sharing_enabled");
+ }
+
+ /**
+ * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+ * property. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param \Google\Protobuf\BoolValue $var
+ * @return $this
+ */
+ public function setCampaignDataSharingEnabled($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
+ $this->campaign_data_sharing_enabled = $var;
+
+ return $this;
+ }
+
+ /**
+ * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
+
+ * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+ * property. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param bool|null $var
+ * @return $this
+ */
+ public function setCampaignDataSharingEnabledValue($var)
+ {
+ $this->writeWrapperValue("campaign_data_sharing_enabled", $var);
+ return $this;}
+
+ /**
+ * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+ * property. This can only be enabled if campaign_data_sharing_enabled is
+ * enabled. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return \Google\Protobuf\BoolValue|null
+ */
+ public function getCostDataSharingEnabled()
+ {
+ return $this->cost_data_sharing_enabled;
+ }
+
+ public function hasCostDataSharingEnabled()
+ {
+ return isset($this->cost_data_sharing_enabled);
+ }
+
+ public function clearCostDataSharingEnabled()
+ {
+ unset($this->cost_data_sharing_enabled);
+ }
+
+ /**
+ * Returns the unboxed value from getCostDataSharingEnabled()
+
+ * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+ * property. This can only be enabled if campaign_data_sharing_enabled is
+ * enabled. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return bool|null
+ */
+ public function getCostDataSharingEnabledValue()
+ {
+ return $this->readWrapperValue("cost_data_sharing_enabled");
+ }
+
+ /**
+ * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+ * property. This can only be enabled if campaign_data_sharing_enabled is
+ * enabled. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param \Google\Protobuf\BoolValue $var
+ * @return $this
+ */
+ public function setCostDataSharingEnabled($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
+ $this->cost_data_sharing_enabled = $var;
+
+ return $this;
+ }
+
+ /**
+ * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
+
+ * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+ * property. This can only be enabled if campaign_data_sharing_enabled is
+ * enabled. After link creation, this can only be updated from the Display &
+ * Video 360 product.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param bool|null $var
+ * @return $this
+ */
+ public function setCostDataSharingEnabledValue($var)
+ {
+ $this->writeWrapperValue("cost_data_sharing_enabled", $var);
+ return $this;}
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLinkProposal.php b/AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLinkProposal.php
new file mode 100644
index 000000000000..4c5ed15a238d
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DisplayVideo360AdvertiserLinkProposal.php
@@ -0,0 +1,490 @@
+google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal
+ */
+class DisplayVideo360AdvertiserLinkProposal extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+ * Format:
+ * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+ * Note: proposalId is not the Display & Video 360 Advertiser ID
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $name = '';
+ /**
+ * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+ *
+ * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ */
+ private $advertiser_id = '';
+ /**
+ * Output only. The status information for this link proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $link_proposal_status_details = null;
+ /**
+ * Output only. The display name of the Display & Video Advertiser.
+ * Only populated for proposals that originated from Display & Video 360.
+ *
+ * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $advertiser_display_name = '';
+ /**
+ * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+ * the email address of an admin on the target advertiser. This is used to
+ * verify that the Google Analytics admin is aware of at least one admin on
+ * the Display & Video 360 Advertiser. This does not restrict approval of the
+ * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+ * may approve the proposal.
+ *
+ * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY];
+ */
+ private $validation_email = '';
+ /**
+ * Immutable. Enables personalized advertising features with this integration.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ */
+ private $ads_personalization_enabled = null;
+ /**
+ * Immutable. Enables the import of campaign data from Display & Video 360.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE];
+ */
+ private $campaign_data_sharing_enabled = null;
+ /**
+ * Immutable. Enables the import of cost data from Display & Video 360.
+ * This can only be enabled if campaign_data_sharing_enabled is enabled.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE];
+ */
+ private $cost_data_sharing_enabled = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+ * Format:
+ * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+ * Note: proposalId is not the Display & Video 360 Advertiser ID
+ * @type string $advertiser_id
+ * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+ * @type \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails $link_proposal_status_details
+ * Output only. The status information for this link proposal.
+ * @type string $advertiser_display_name
+ * Output only. The display name of the Display & Video Advertiser.
+ * Only populated for proposals that originated from Display & Video 360.
+ * @type string $validation_email
+ * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+ * the email address of an admin on the target advertiser. This is used to
+ * verify that the Google Analytics admin is aware of at least one admin on
+ * the Display & Video 360 Advertiser. This does not restrict approval of the
+ * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+ * may approve the proposal.
+ * @type \Google\Protobuf\BoolValue $ads_personalization_enabled
+ * Immutable. Enables personalized advertising features with this integration.
+ * If this field is not set on create, it will be defaulted to true.
+ * @type \Google\Protobuf\BoolValue $campaign_data_sharing_enabled
+ * Immutable. Enables the import of campaign data from Display & Video 360.
+ * If this field is not set on create, it will be defaulted to true.
+ * @type \Google\Protobuf\BoolValue $cost_data_sharing_enabled
+ * Immutable. Enables the import of cost data from Display & Video 360.
+ * This can only be enabled if campaign_data_sharing_enabled is enabled.
+ * If this field is not set on create, it will be defaulted to true.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+ * Format:
+ * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+ * Note: proposalId is not the Display & Video 360 Advertiser ID
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+ * Format:
+ * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+ * Note: proposalId is not the Display & Video 360 Advertiser ID
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+ *
+ * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return string
+ */
+ public function getAdvertiserId()
+ {
+ return $this->advertiser_id;
+ }
+
+ /**
+ * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+ *
+ * Generated from protobuf field string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param string $var
+ * @return $this
+ */
+ public function setAdvertiserId($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->advertiser_id = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The status information for this link proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails|null
+ */
+ public function getLinkProposalStatusDetails()
+ {
+ return $this->link_proposal_status_details;
+ }
+
+ public function hasLinkProposalStatusDetails()
+ {
+ return isset($this->link_proposal_status_details);
+ }
+
+ public function clearLinkProposalStatusDetails()
+ {
+ unset($this->link_proposal_status_details);
+ }
+
+ /**
+ * Output only. The status information for this link proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails $var
+ * @return $this
+ */
+ public function setLinkProposalStatusDetails($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\LinkProposalStatusDetails::class);
+ $this->link_proposal_status_details = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The display name of the Display & Video Advertiser.
+ * Only populated for proposals that originated from Display & Video 360.
+ *
+ * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getAdvertiserDisplayName()
+ {
+ return $this->advertiser_display_name;
+ }
+
+ /**
+ * Output only. The display name of the Display & Video Advertiser.
+ * Only populated for proposals that originated from Display & Video 360.
+ *
+ * Generated from protobuf field string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setAdvertiserDisplayName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->advertiser_display_name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+ * the email address of an admin on the target advertiser. This is used to
+ * verify that the Google Analytics admin is aware of at least one admin on
+ * the Display & Video 360 Advertiser. This does not restrict approval of the
+ * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+ * may approve the proposal.
+ *
+ * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY];
+ * @return string
+ */
+ public function getValidationEmail()
+ {
+ return $this->validation_email;
+ }
+
+ /**
+ * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+ * the email address of an admin on the target advertiser. This is used to
+ * verify that the Google Analytics admin is aware of at least one admin on
+ * the Display & Video 360 Advertiser. This does not restrict approval of the
+ * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+ * may approve the proposal.
+ *
+ * Generated from protobuf field string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setValidationEmail($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->validation_email = $var;
+
+ return $this;
+ }
+
+ /**
+ * Immutable. Enables personalized advertising features with this integration.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return \Google\Protobuf\BoolValue|null
+ */
+ public function getAdsPersonalizationEnabled()
+ {
+ return $this->ads_personalization_enabled;
+ }
+
+ public function hasAdsPersonalizationEnabled()
+ {
+ return isset($this->ads_personalization_enabled);
+ }
+
+ public function clearAdsPersonalizationEnabled()
+ {
+ unset($this->ads_personalization_enabled);
+ }
+
+ /**
+ * Returns the unboxed value from getAdsPersonalizationEnabled()
+
+ * Immutable. Enables personalized advertising features with this integration.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return bool|null
+ */
+ public function getAdsPersonalizationEnabledValue()
+ {
+ return $this->readWrapperValue("ads_personalization_enabled");
+ }
+
+ /**
+ * Immutable. Enables personalized advertising features with this integration.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param \Google\Protobuf\BoolValue $var
+ * @return $this
+ */
+ public function setAdsPersonalizationEnabled($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
+ $this->ads_personalization_enabled = $var;
+
+ return $this;
+ }
+
+ /**
+ * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
+
+ * Immutable. Enables personalized advertising features with this integration.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param bool|null $var
+ * @return $this
+ */
+ public function setAdsPersonalizationEnabledValue($var)
+ {
+ $this->writeWrapperValue("ads_personalization_enabled", $var);
+ return $this;}
+
+ /**
+ * Immutable. Enables the import of campaign data from Display & Video 360.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return \Google\Protobuf\BoolValue|null
+ */
+ public function getCampaignDataSharingEnabled()
+ {
+ return $this->campaign_data_sharing_enabled;
+ }
+
+ public function hasCampaignDataSharingEnabled()
+ {
+ return isset($this->campaign_data_sharing_enabled);
+ }
+
+ public function clearCampaignDataSharingEnabled()
+ {
+ unset($this->campaign_data_sharing_enabled);
+ }
+
+ /**
+ * Returns the unboxed value from getCampaignDataSharingEnabled()
+
+ * Immutable. Enables the import of campaign data from Display & Video 360.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return bool|null
+ */
+ public function getCampaignDataSharingEnabledValue()
+ {
+ return $this->readWrapperValue("campaign_data_sharing_enabled");
+ }
+
+ /**
+ * Immutable. Enables the import of campaign data from Display & Video 360.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param \Google\Protobuf\BoolValue $var
+ * @return $this
+ */
+ public function setCampaignDataSharingEnabled($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
+ $this->campaign_data_sharing_enabled = $var;
+
+ return $this;
+ }
+
+ /**
+ * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
+
+ * Immutable. Enables the import of campaign data from Display & Video 360.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param bool|null $var
+ * @return $this
+ */
+ public function setCampaignDataSharingEnabledValue($var)
+ {
+ $this->writeWrapperValue("campaign_data_sharing_enabled", $var);
+ return $this;}
+
+ /**
+ * Immutable. Enables the import of cost data from Display & Video 360.
+ * This can only be enabled if campaign_data_sharing_enabled is enabled.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return \Google\Protobuf\BoolValue|null
+ */
+ public function getCostDataSharingEnabled()
+ {
+ return $this->cost_data_sharing_enabled;
+ }
+
+ public function hasCostDataSharingEnabled()
+ {
+ return isset($this->cost_data_sharing_enabled);
+ }
+
+ public function clearCostDataSharingEnabled()
+ {
+ unset($this->cost_data_sharing_enabled);
+ }
+
+ /**
+ * Returns the unboxed value from getCostDataSharingEnabled()
+
+ * Immutable. Enables the import of cost data from Display & Video 360.
+ * This can only be enabled if campaign_data_sharing_enabled is enabled.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return bool|null
+ */
+ public function getCostDataSharingEnabledValue()
+ {
+ return $this->readWrapperValue("cost_data_sharing_enabled");
+ }
+
+ /**
+ * Immutable. Enables the import of cost data from Display & Video 360.
+ * This can only be enabled if campaign_data_sharing_enabled is enabled.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param \Google\Protobuf\BoolValue $var
+ * @return $this
+ */
+ public function setCostDataSharingEnabled($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
+ $this->cost_data_sharing_enabled = $var;
+
+ return $this;
+ }
+
+ /**
+ * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
+
+ * Immutable. Enables the import of cost data from Display & Video 360.
+ * This can only be enabled if campaign_data_sharing_enabled is enabled.
+ * If this field is not set on create, it will be defaulted to true.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param bool|null $var
+ * @return $this
+ */
+ public function setCostDataSharingEnabledValue($var)
+ {
+ $this->writeWrapperValue("cost_data_sharing_enabled", $var);
+ return $this;}
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/FirebaseLink.php b/AnalyticsAdmin/src/V1alpha/FirebaseLink.php
index 0780f37f533a..5f0348591039 100644
--- a/AnalyticsAdmin/src/V1alpha/FirebaseLink.php
+++ b/AnalyticsAdmin/src/V1alpha/FirebaseLink.php
@@ -9,7 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * A link between an GA4 property and a Firebase project.
+ * A link between a GA4 property and a Firebase project.
*
* Generated from protobuf message google.analytics.admin.v1alpha.FirebaseLink
*/
@@ -38,13 +38,6 @@ class FirebaseLink extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $create_time = null;
- /**
- * Maximum user access to the GA4 property allowed to admins of
- * the linked Firebase project.
- *
- * Generated from protobuf field .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4;
- */
- private $maximum_user_access = 0;
/**
* Constructor.
@@ -63,9 +56,6 @@ class FirebaseLink extends \Google\Protobuf\Internal\Message
* Example: 'projects/1234'
* @type \Google\Protobuf\Timestamp $create_time
* Output only. Time when this FirebaseLink was originally created.
- * @type int $maximum_user_access
- * Maximum user access to the GA4 property allowed to admins of
- * the linked Firebase project.
* }
*/
public function __construct($data = NULL) {
@@ -143,7 +133,7 @@ public function setProject($var)
*/
public function getCreateTime()
{
- return isset($this->create_time) ? $this->create_time : null;
+ return $this->create_time;
}
public function hasCreateTime()
@@ -171,33 +161,5 @@ public function setCreateTime($var)
return $this;
}
- /**
- * Maximum user access to the GA4 property allowed to admins of
- * the linked Firebase project.
- *
- * Generated from protobuf field .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4;
- * @return int
- */
- public function getMaximumUserAccess()
- {
- return $this->maximum_user_access;
- }
-
- /**
- * Maximum user access to the GA4 property allowed to admins of
- * the linked Firebase project.
- *
- * Generated from protobuf field .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4;
- * @param int $var
- * @return $this
- */
- public function setMaximumUserAccess($var)
- {
- GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\MaximumUserAccess::class);
- $this->maximum_user_access = $var;
-
- return $this;
- }
-
}
diff --git a/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php b/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php
index c688cbfb8936..188c884d780f 100644
--- a/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php
+++ b/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php
@@ -18,7 +18,7 @@
/*
* GENERATED CODE WARNING
* Generated by gapic-generator-php from the file
- * https://github.com/google/googleapis/blob/master/google/analytics/admin/v1alpha/analytics_admin.proto
+ * https://github.com/googleapis/googleapis/blob/master/google/analytics/admin/v1alpha/analytics_admin.proto
* Updates to the above are reflected here through a refresh process.
*
* @experimental
@@ -27,9 +27,13 @@
namespace Google\Analytics\Admin\V1alpha\Gapic;
use Google\Analytics\Admin\V1alpha\Account;
+use Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionRequest;
+use Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse;
+
use Google\Analytics\Admin\V1alpha\AndroidAppDataStream;
+use Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalRequest;
+use Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse;
use Google\Analytics\Admin\V1alpha\ArchiveCustomDimensionRequest;
-
use Google\Analytics\Admin\V1alpha\ArchiveCustomMetricRequest;
use Google\Analytics\Admin\V1alpha\AuditUserLinksRequest;
use Google\Analytics\Admin\V1alpha\AuditUserLinksResponse;
@@ -40,10 +44,14 @@
use Google\Analytics\Admin\V1alpha\BatchGetUserLinksResponse;
use Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksRequest;
use Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksResponse;
+use Google\Analytics\Admin\V1alpha\CancelDisplayVideo360AdvertiserLinkProposalRequest;
use Google\Analytics\Admin\V1alpha\ConversionEvent;
use Google\Analytics\Admin\V1alpha\CreateConversionEventRequest;
use Google\Analytics\Admin\V1alpha\CreateCustomDimensionRequest;
use Google\Analytics\Admin\V1alpha\CreateCustomMetricRequest;
+use Google\Analytics\Admin\V1alpha\CreateDataStreamRequest;
+use Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest;
+use Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateFirebaseLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateGoogleAdsLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateMeasurementProtocolSecretRequest;
@@ -52,10 +60,15 @@
use Google\Analytics\Admin\V1alpha\CreateWebDataStreamRequest;
use Google\Analytics\Admin\V1alpha\CustomDimension;
use Google\Analytics\Admin\V1alpha\CustomMetric;
+use Google\Analytics\Admin\V1alpha\DataRetentionSettings;
use Google\Analytics\Admin\V1alpha\DataSharingSettings;
+use Google\Analytics\Admin\V1alpha\DataStream;
use Google\Analytics\Admin\V1alpha\DeleteAccountRequest;
use Google\Analytics\Admin\V1alpha\DeleteAndroidAppDataStreamRequest;
use Google\Analytics\Admin\V1alpha\DeleteConversionEventRequest;
+use Google\Analytics\Admin\V1alpha\DeleteDataStreamRequest;
+use Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest;
+use Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteGoogleAdsLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteIosAppDataStreamRequest;
@@ -63,15 +76,19 @@
use Google\Analytics\Admin\V1alpha\DeletePropertyRequest;
use Google\Analytics\Admin\V1alpha\DeleteUserLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteWebDataStreamRequest;
-use Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings;
+use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink;
+use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal;
use Google\Analytics\Admin\V1alpha\FirebaseLink;
use Google\Analytics\Admin\V1alpha\GetAccountRequest;
use Google\Analytics\Admin\V1alpha\GetAndroidAppDataStreamRequest;
use Google\Analytics\Admin\V1alpha\GetConversionEventRequest;
use Google\Analytics\Admin\V1alpha\GetCustomDimensionRequest;
use Google\Analytics\Admin\V1alpha\GetCustomMetricRequest;
+use Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest;
use Google\Analytics\Admin\V1alpha\GetDataSharingSettingsRequest;
-use Google\Analytics\Admin\V1alpha\GetEnhancedMeasurementSettingsRequest;
+use Google\Analytics\Admin\V1alpha\GetDataStreamRequest;
+use Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkProposalRequest;
+use Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\GetGlobalSiteTagRequest;
use Google\Analytics\Admin\V1alpha\GetGoogleSignalsSettingsRequest;
use Google\Analytics\Admin\V1alpha\GetIosAppDataStreamRequest;
@@ -84,9 +101,9 @@
use Google\Analytics\Admin\V1alpha\GoogleSignalsSettings;
use Google\Analytics\Admin\V1alpha\IosAppDataStream;
use Google\Analytics\Admin\V1alpha\ListAccountsRequest;
+
use Google\Analytics\Admin\V1alpha\ListAccountsResponse;
use Google\Analytics\Admin\V1alpha\ListAccountSummariesRequest;
-
use Google\Analytics\Admin\V1alpha\ListAccountSummariesResponse;
use Google\Analytics\Admin\V1alpha\ListAndroidAppDataStreamsRequest;
use Google\Analytics\Admin\V1alpha\ListAndroidAppDataStreamsResponse;
@@ -96,6 +113,12 @@
use Google\Analytics\Admin\V1alpha\ListCustomDimensionsResponse;
use Google\Analytics\Admin\V1alpha\ListCustomMetricsRequest;
use Google\Analytics\Admin\V1alpha\ListCustomMetricsResponse;
+use Google\Analytics\Admin\V1alpha\ListDataStreamsRequest;
+use Google\Analytics\Admin\V1alpha\ListDataStreamsResponse;
+use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsRequest;
+use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsResponse;
+use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksRequest;
+use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse;
use Google\Analytics\Admin\V1alpha\ListFirebaseLinksRequest;
use Google\Analytics\Admin\V1alpha\ListFirebaseLinksResponse;
use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksRequest;
@@ -120,8 +143,9 @@
use Google\Analytics\Admin\V1alpha\UpdateAndroidAppDataStreamRequest;
use Google\Analytics\Admin\V1alpha\UpdateCustomDimensionRequest;
use Google\Analytics\Admin\V1alpha\UpdateCustomMetricRequest;
-use Google\Analytics\Admin\V1alpha\UpdateEnhancedMeasurementSettingsRequest;
-use Google\Analytics\Admin\V1alpha\UpdateFirebaseLinkRequest;
+use Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest;
+use Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest;
+use Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateGoogleAdsLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateGoogleSignalsSettingsRequest;
use Google\Analytics\Admin\V1alpha\UpdateIosAppDataStreamRequest;
@@ -153,8 +177,9 @@
* ```
* $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
* try {
- * $formattedName = $analyticsAdminServiceClient->customDimensionName('[PROPERTY]');
- * $analyticsAdminServiceClient->archiveCustomDimension($formattedName);
+ * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * $acknowledgement = 'acknowledgement';
+ * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement);
* } finally {
* $analyticsAdminServiceClient->close();
* }
@@ -213,9 +238,15 @@ class AnalyticsAdminServiceGapicClient
private static $customMetricNameTemplate;
+ private static $dataRetentionSettingsNameTemplate;
+
private static $dataSharingSettingsNameTemplate;
- private static $enhancedMeasurementSettingsNameTemplate;
+ private static $dataStreamNameTemplate;
+
+ private static $displayVideo360AdvertiserLinkNameTemplate;
+
+ private static $displayVideo360AdvertiserLinkProposalNameTemplate;
private static $firebaseLinkNameTemplate;
@@ -312,6 +343,15 @@ private static function getCustomMetricNameTemplate()
return self::$customMetricNameTemplate;
}
+ private static function getDataRetentionSettingsNameTemplate()
+ {
+ if (self::$dataRetentionSettingsNameTemplate == null) {
+ self::$dataRetentionSettingsNameTemplate = new PathTemplate('properties/{property}/dataRetentionSettings');
+ }
+
+ return self::$dataRetentionSettingsNameTemplate;
+ }
+
private static function getDataSharingSettingsNameTemplate()
{
if (self::$dataSharingSettingsNameTemplate == null) {
@@ -321,13 +361,31 @@ private static function getDataSharingSettingsNameTemplate()
return self::$dataSharingSettingsNameTemplate;
}
- private static function getEnhancedMeasurementSettingsNameTemplate()
+ private static function getDataStreamNameTemplate()
+ {
+ if (self::$dataStreamNameTemplate == null) {
+ self::$dataStreamNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}');
+ }
+
+ return self::$dataStreamNameTemplate;
+ }
+
+ private static function getDisplayVideo360AdvertiserLinkNameTemplate()
+ {
+ if (self::$displayVideo360AdvertiserLinkNameTemplate == null) {
+ self::$displayVideo360AdvertiserLinkNameTemplate = new PathTemplate('properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}');
+ }
+
+ return self::$displayVideo360AdvertiserLinkNameTemplate;
+ }
+
+ private static function getDisplayVideo360AdvertiserLinkProposalNameTemplate()
{
- if (self::$enhancedMeasurementSettingsNameTemplate == null) {
- self::$enhancedMeasurementSettingsNameTemplate = new PathTemplate('properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings');
+ if (self::$displayVideo360AdvertiserLinkProposalNameTemplate == null) {
+ self::$displayVideo360AdvertiserLinkProposalNameTemplate = new PathTemplate('properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}');
}
- return self::$enhancedMeasurementSettingsNameTemplate;
+ return self::$displayVideo360AdvertiserLinkProposalNameTemplate;
}
private static function getFirebaseLinkNameTemplate()
@@ -430,8 +488,11 @@ private static function getPathTemplateMap()
'conversionEvent' => self::getConversionEventNameTemplate(),
'customDimension' => self::getCustomDimensionNameTemplate(),
'customMetric' => self::getCustomMetricNameTemplate(),
+ 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(),
'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(),
- 'enhancedMeasurementSettings' => self::getEnhancedMeasurementSettingsNameTemplate(),
+ 'dataStream' => self::getDataStreamNameTemplate(),
+ 'displayVideo360AdvertiserLink' => self::getDisplayVideo360AdvertiserLinkNameTemplate(),
+ 'displayVideo360AdvertiserLinkProposal' => self::getDisplayVideo360AdvertiserLinkProposalNameTemplate(),
'firebaseLink' => self::getFirebaseLinkNameTemplate(),
'globalSiteTag' => self::getGlobalSiteTagNameTemplate(),
'googleAdsLink' => self::getGoogleAdsLinkNameTemplate(),
@@ -556,6 +617,23 @@ public static function customMetricName($property)
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a
+ * data_retention_settings resource.
+ *
+ * @param string $property
+ *
+ * @return string The formatted data_retention_settings resource.
+ *
+ * @experimental
+ */
+ public static function dataRetentionSettingsName($property)
+ {
+ return self::getDataRetentionSettingsNameTemplate()->render([
+ 'property' => $property,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a
* data_sharing_settings resource.
@@ -573,22 +651,60 @@ public static function dataSharingSettingsName($account)
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a data_stream
+ * resource.
+ *
+ * @param string $property
+ * @param string $dataStream
+ *
+ * @return string The formatted data_stream resource.
+ *
+ * @experimental
+ */
+ public static function dataStreamName($property, $dataStream)
+ {
+ return self::getDataStreamNameTemplate()->render([
+ 'property' => $property,
+ 'data_stream' => $dataStream,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a
- * enhanced_measurement_settings resource.
+ * display_video360_advertiser_link resource.
*
* @param string $property
- * @param string $webDataStream
+ * @param string $displayVideo360AdvertiserLink
*
- * @return string The formatted enhanced_measurement_settings resource.
+ * @return string The formatted display_video360_advertiser_link resource.
*
* @experimental
*/
- public static function enhancedMeasurementSettingsName($property, $webDataStream)
+ public static function displayVideo360AdvertiserLinkName($property, $displayVideo360AdvertiserLink)
{
- return self::getEnhancedMeasurementSettingsNameTemplate()->render([
+ return self::getDisplayVideo360AdvertiserLinkNameTemplate()->render([
'property' => $property,
- 'web_data_stream' => $webDataStream,
+ 'display_video_360_advertiser_link' => $displayVideo360AdvertiserLink,
+ ]);
+ }
+
+ /**
+ * Formats a string containing the fully-qualified path to represent a
+ * display_video360_advertiser_link_proposal resource.
+ *
+ * @param string $property
+ * @param string $displayVideo360AdvertiserLinkProposal
+ *
+ * @return string The formatted display_video360_advertiser_link_proposal resource.
+ *
+ * @experimental
+ */
+ public static function displayVideo360AdvertiserLinkProposalName($property, $displayVideo360AdvertiserLinkProposal)
+ {
+ return self::getDisplayVideo360AdvertiserLinkProposalNameTemplate()->render([
+ 'property' => $property,
+ 'display_video_360_advertiser_link_proposal' => $displayVideo360AdvertiserLinkProposal,
]);
}
@@ -788,8 +904,11 @@ public static function webDataStreamName($property, $webDataStream)
* - conversionEvent: properties/{property}/conversionEvents/{conversion_event}
* - customDimension: properties/{property}/customDimensions
* - customMetric: properties/{property}/customMetrics
+ * - dataRetentionSettings: properties/{property}/dataRetentionSettings
* - dataSharingSettings: accounts/{account}/dataSharingSettings
- * - enhancedMeasurementSettings: properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings
+ * - dataStream: properties/{property}/dataStreams/{data_stream}
+ * - displayVideo360AdvertiserLink: properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}
+ * - displayVideo360AdvertiserLinkProposal: properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}
* - firebaseLink: properties/{property}/firebaseLinks/{firebase_link}
* - globalSiteTag: properties/{property}/globalSiteTag
* - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link}
@@ -903,6 +1022,106 @@ public function __construct(array $options = [])
$this->setClientOptions($clientOptions);
}
+ /**
+ * Acknowledges the terms of user data collection for the specified property.
+ *
+ * This acknowledgement must be completed (either in the Google Analytics UI
+ * or via this API) before MeasurementProtocolSecret resources may be created.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedProperty = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * $acknowledgement = 'acknowledgement';
+ * $response = $analyticsAdminServiceClient->acknowledgeUserDataCollection($formattedProperty, $acknowledgement);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $property Required. The property for which to acknowledge user data collection.
+ * @param string $acknowledgement Required. An acknowledgement that the caller of this method understands the terms
+ * of user data collection.
+ *
+ * This field must contain the exact value:
+ * "I acknowledge that I have the necessary privacy disclosures and rights
+ * from my end users for the collection and processing of their data,
+ * including the association of such data with the visitation information
+ * Google Analytics collects from my site and/or app property."
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function acknowledgeUserDataCollection($property, $acknowledgement, array $optionalArgs = [])
+ {
+ $request = new AcknowledgeUserDataCollectionRequest();
+ $requestParamHeaders = [];
+ $request->setProperty($property);
+ $request->setAcknowledgement($acknowledgement);
+ $requestParamHeaders['property'] = $property;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('AcknowledgeUserDataCollection', AcknowledgeUserDataCollectionResponse::class, $optionalArgs, $request)->wait();
+ }
+
+ /**
+ * Approves a DisplayVideo360AdvertiserLinkProposal.
+ * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
+ * DisplayVideo360AdvertiserLink will be created.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
+ * $response = $analyticsAdminServiceClient->approveDisplayVideo360AdvertiserLinkProposal($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function approveDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = [])
+ {
+ $request = new ApproveDisplayVideo360AdvertiserLinkProposalRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('ApproveDisplayVideo360AdvertiserLinkProposal', ApproveDisplayVideo360AdvertiserLinkProposalResponse::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Archives a CustomDimension on a property.
*
@@ -1272,6 +1491,53 @@ public function batchUpdateUserLinks($parent, $requests, array $optionalArgs = [
return $this->startCall('BatchUpdateUserLinks', BatchUpdateUserLinksResponse::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Cancels a DisplayVideo360AdvertiserLinkProposal.
+ * Cancelling can mean either:
+ * - Declining a proposal initiated from Display & Video 360
+ * - Withdrawing a proposal initiated from Google Analytics
+ * After being cancelled, a proposal will eventually be deleted automatically.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
+ * $response = $analyticsAdminServiceClient->cancelDisplayVideo360AdvertiserLinkProposal($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function cancelDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = [])
+ {
+ $request = new CancelDisplayVideo360AdvertiserLinkProposalRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('CancelDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Creates a conversion event with the specified attributes.
*
@@ -1408,6 +1674,145 @@ public function createCustomMetric($parent, $customMetric, array $optionalArgs =
return $this->startCall('CreateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Creates a DataStream.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * $dataStream = new DataStream();
+ * $response = $analyticsAdminServiceClient->createDataStream($formattedParent, $dataStream);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. Example format: properties/1234
+ * @param DataStream $dataStream Required. The DataStream to create.
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DataStream
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function createDataStream($parent, $dataStream, array $optionalArgs = [])
+ {
+ $request = new CreateDataStreamRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $request->setDataStream($dataStream);
+ $requestParamHeaders['parent'] = $parent;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('CreateDataStream', DataStream::class, $optionalArgs, $request)->wait();
+ }
+
+ /**
+ * Creates a DisplayVideo360AdvertiserLink.
+ * This can only be utilized by users who have proper authorization both on
+ * the Google Analytics property and on the Display & Video 360 advertiser.
+ * Users who do not have access to the Display & Video 360 advertiser should
+ * instead seek to create a DisplayVideo360LinkProposal.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink();
+ * $response = $analyticsAdminServiceClient->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. Example format: properties/1234
+ * @param DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create.
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function createDisplayVideo360AdvertiserLink($parent, $displayVideo360AdvertiserLink, array $optionalArgs = [])
+ {
+ $request = new CreateDisplayVideo360AdvertiserLinkRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $request->setDisplayVideo360AdvertiserLink($displayVideo360AdvertiserLink);
+ $requestParamHeaders['parent'] = $parent;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('CreateDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait();
+ }
+
+ /**
+ * Creates a DisplayVideo360AdvertiserLinkProposal.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal();
+ * $response = $analyticsAdminServiceClient->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. Example format: properties/1234
+ * @param DisplayVideo360AdvertiserLinkProposal $displayVideo360AdvertiserLinkProposal Required. The DisplayVideo360AdvertiserLinkProposal to create.
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function createDisplayVideo360AdvertiserLinkProposal($parent, $displayVideo360AdvertiserLinkProposal, array $optionalArgs = [])
+ {
+ $request = new CreateDisplayVideo360AdvertiserLinkProposalRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $request->setDisplayVideo360AdvertiserLinkProposal($displayVideo360AdvertiserLinkProposal);
+ $requestParamHeaders['parent'] = $parent;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('CreateDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Creates a FirebaseLink.
*
@@ -1826,6 +2231,130 @@ public function deleteConversionEvent($name, array $optionalArgs = [])
return $this->startCall('DeleteConversionEvent', GPBEmpty::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Deletes a DataStream on a property.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ * $analyticsAdminServiceClient->deleteDataStream($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The name of the DataStream to delete.
+ * Example format: properties/1234/dataStreams/5678
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function deleteDataStream($name, array $optionalArgs = [])
+ {
+ $request = new DeleteDataStreamRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('DeleteDataStream', GPBEmpty::class, $optionalArgs, $request)->wait();
+ }
+
+ /**
+ * Deletes a DisplayVideo360AdvertiserLink on a property.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]');
+ * $analyticsAdminServiceClient->deleteDisplayVideo360AdvertiserLink($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The name of the DisplayVideo360AdvertiserLink to delete.
+ * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function deleteDisplayVideo360AdvertiserLink($name, array $optionalArgs = [])
+ {
+ $request = new DeleteDisplayVideo360AdvertiserLinkRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('DeleteDisplayVideo360AdvertiserLink', GPBEmpty::class, $optionalArgs, $request)->wait();
+ }
+
+ /**
+ * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
+ * This can only be used on cancelled proposals.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
+ * $analyticsAdminServiceClient->deleteDisplayVideo360AdvertiserLinkProposal($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function deleteDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = [])
+ {
+ $request = new DeleteDisplayVideo360AdvertiserLinkProposalRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('DeleteDisplayVideo360AdvertiserLinkProposal', GPBEmpty::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Deletes a FirebaseLink on a property
*
@@ -2347,6 +2876,51 @@ public function getCustomMetric($name, array $optionalArgs = [])
return $this->startCall('GetCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Returns the singleton data retention settings for this property.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->dataRetentionSettingsName('[PROPERTY]');
+ * $response = $analyticsAdminServiceClient->getDataRetentionSettings($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The name of the settings to lookup.
+ * Format:
+ * properties/{property}/dataRetentionSettings
+ * Example: "properties/1000/dataRetentionSettings"
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function getDataRetentionSettings($name, array $optionalArgs = [])
+ {
+ $request = new GetDataRetentionSettingsRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('GetDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Get data sharing settings on an account.
* Data sharing settings are singletons.
@@ -2375,43 +2949,125 @@ public function getCustomMetric($name, array $optionalArgs = [])
* {@see Google\ApiCore\RetrySettings} for example usage.
* }
*
- * @return \Google\Analytics\Admin\V1alpha\DataSharingSettings
+ * @return \Google\Analytics\Admin\V1alpha\DataSharingSettings
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function getDataSharingSettings($name, array $optionalArgs = [])
+ {
+ $request = new GetDataSharingSettingsRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('GetDataSharingSettings', DataSharingSettings::class, $optionalArgs, $request)->wait();
+ }
+
+ /**
+ * Lookup for a single DataStream.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ * $response = $analyticsAdminServiceClient->getDataStream($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The name of the DataStream to get.
+ * Example format: properties/1234/dataStreams/5678
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DataStream
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function getDataStream($name, array $optionalArgs = [])
+ {
+ $request = new GetDataStreamRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('GetDataStream', DataStream::class, $optionalArgs, $request)->wait();
+ }
+
+ /**
+ * Look up a single DisplayVideo360AdvertiserLink
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]');
+ * $response = $analyticsAdminServiceClient->getDisplayVideo360AdvertiserLink($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The name of the DisplayVideo360AdvertiserLink to get.
+ * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink
*
* @throws ApiException if the remote call fails
*
* @experimental
*/
- public function getDataSharingSettings($name, array $optionalArgs = [])
+ public function getDisplayVideo360AdvertiserLink($name, array $optionalArgs = [])
{
- $request = new GetDataSharingSettingsRequest();
+ $request = new GetDisplayVideo360AdvertiserLinkRequest();
$requestParamHeaders = [];
$request->setName($name);
$requestParamHeaders['name'] = $name;
$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetDataSharingSettings', DataSharingSettings::class, $optionalArgs, $request)->wait();
+ return $this->startCall('GetDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait();
}
/**
- * Returns the singleton enhanced measurement settings for this web stream.
- * Note that the stream must enable enhanced measurement for these settings to
- * take effect.
+ * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
*
* Sample code:
* ```
* $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
* try {
- * $formattedName = $analyticsAdminServiceClient->enhancedMeasurementSettingsName('[PROPERTY]', '[WEB_DATA_STREAM]');
- * $response = $analyticsAdminServiceClient->getEnhancedMeasurementSettings($formattedName);
+ * $formattedName = $analyticsAdminServiceClient->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
+ * $response = $analyticsAdminServiceClient->getDisplayVideo360AdvertiserLinkProposal($formattedName);
* } finally {
* $analyticsAdminServiceClient->close();
* }
* ```
*
- * @param string $name Required. The name of the settings to lookup.
- * Format:
- * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
- * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+ * @param string $name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
* @param array $optionalArgs {
* Optional.
*
@@ -2422,21 +3078,21 @@ public function getDataSharingSettings($name, array $optionalArgs = [])
* {@see Google\ApiCore\RetrySettings} for example usage.
* }
*
- * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal
*
* @throws ApiException if the remote call fails
*
* @experimental
*/
- public function getEnhancedMeasurementSettings($name, array $optionalArgs = [])
+ public function getDisplayVideo360AdvertiserLinkProposal($name, array $optionalArgs = [])
{
- $request = new GetEnhancedMeasurementSettingsRequest();
+ $request = new GetDisplayVideo360AdvertiserLinkProposalRequest();
$requestParamHeaders = [];
$request->setName($name);
$requestParamHeaders['name'] = $name;
$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetEnhancedMeasurementSettings', EnhancedMeasurementSettings::class, $optionalArgs, $request)->wait();
+ return $this->startCall('GetDisplayVideo360AdvertiserLinkProposal', DisplayVideo360AdvertiserLinkProposal::class, $optionalArgs, $request)->wait();
}
/**
@@ -3180,6 +3836,219 @@ public function listCustomMetrics($parent, array $optionalArgs = [])
return $this->getPagedListResponse('ListCustomMetrics', $optionalArgs, ListCustomMetricsResponse::class, $request);
}
+ /**
+ * Lists DataStreams on a property.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * // Iterate over pages of elements
+ * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent);
+ * foreach ($pagedResponse->iteratePages() as $page) {
+ * foreach ($page as $element) {
+ * // doSomethingWith($element);
+ * }
+ * }
+ * // Alternatively:
+ * // Iterate through all elements
+ * $pagedResponse = $analyticsAdminServiceClient->listDataStreams($formattedParent);
+ * foreach ($pagedResponse->iterateAllElements() as $element) {
+ * // doSomethingWith($element);
+ * }
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. Example format: properties/1234
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type int $pageSize
+ * The maximum number of resources contained in the underlying API
+ * response. The API may return fewer values in a page, even if
+ * there are additional values to be retrieved.
+ * @type string $pageToken
+ * A page token is used to specify a page of values to be returned.
+ * If no page token is specified (the default), the first page
+ * of values will be returned. Any page token used here must have
+ * been generated by a previous call to the API.
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\ApiCore\PagedListResponse
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function listDataStreams($parent, array $optionalArgs = [])
+ {
+ $request = new ListDataStreamsRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $requestParamHeaders['parent'] = $parent;
+ if (isset($optionalArgs['pageSize'])) {
+ $request->setPageSize($optionalArgs['pageSize']);
+ }
+
+ if (isset($optionalArgs['pageToken'])) {
+ $request->setPageToken($optionalArgs['pageToken']);
+ }
+
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->getPagedListResponse('ListDataStreams', $optionalArgs, ListDataStreamsResponse::class, $request);
+ }
+
+ /**
+ * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * // Iterate over pages of elements
+ * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent);
+ * foreach ($pagedResponse->iteratePages() as $page) {
+ * foreach ($page as $element) {
+ * // doSomethingWith($element);
+ * }
+ * }
+ * // Alternatively:
+ * // Iterate through all elements
+ * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinkProposals($formattedParent);
+ * foreach ($pagedResponse->iterateAllElements() as $element) {
+ * // doSomethingWith($element);
+ * }
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. Example format: properties/1234
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type int $pageSize
+ * The maximum number of resources contained in the underlying API
+ * response. The API may return fewer values in a page, even if
+ * there are additional values to be retrieved.
+ * @type string $pageToken
+ * A page token is used to specify a page of values to be returned.
+ * If no page token is specified (the default), the first page
+ * of values will be returned. Any page token used here must have
+ * been generated by a previous call to the API.
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\ApiCore\PagedListResponse
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function listDisplayVideo360AdvertiserLinkProposals($parent, array $optionalArgs = [])
+ {
+ $request = new ListDisplayVideo360AdvertiserLinkProposalsRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $requestParamHeaders['parent'] = $parent;
+ if (isset($optionalArgs['pageSize'])) {
+ $request->setPageSize($optionalArgs['pageSize']);
+ }
+
+ if (isset($optionalArgs['pageToken'])) {
+ $request->setPageToken($optionalArgs['pageToken']);
+ }
+
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->getPagedListResponse('ListDisplayVideo360AdvertiserLinkProposals', $optionalArgs, ListDisplayVideo360AdvertiserLinkProposalsResponse::class, $request);
+ }
+
+ /**
+ * Lists all DisplayVideo360AdvertiserLinks on a property.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * // Iterate over pages of elements
+ * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinks($formattedParent);
+ * foreach ($pagedResponse->iteratePages() as $page) {
+ * foreach ($page as $element) {
+ * // doSomethingWith($element);
+ * }
+ * }
+ * // Alternatively:
+ * // Iterate through all elements
+ * $pagedResponse = $analyticsAdminServiceClient->listDisplayVideo360AdvertiserLinks($formattedParent);
+ * foreach ($pagedResponse->iterateAllElements() as $element) {
+ * // doSomethingWith($element);
+ * }
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. Example format: properties/1234
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type int $pageSize
+ * The maximum number of resources contained in the underlying API
+ * response. The API may return fewer values in a page, even if
+ * there are additional values to be retrieved.
+ * @type string $pageToken
+ * A page token is used to specify a page of values to be returned.
+ * If no page token is specified (the default), the first page
+ * of values will be returned. Any page token used here must have
+ * been generated by a previous call to the API.
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\ApiCore\PagedListResponse
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function listDisplayVideo360AdvertiserLinks($parent, array $optionalArgs = [])
+ {
+ $request = new ListDisplayVideo360AdvertiserLinksRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $requestParamHeaders['parent'] = $parent;
+ if (isset($optionalArgs['pageSize'])) {
+ $request->setPageSize($optionalArgs['pageSize']);
+ }
+
+ if (isset($optionalArgs['pageToken'])) {
+ $request->setPageToken($optionalArgs['pageToken']);
+ }
+
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->getPagedListResponse('ListDisplayVideo360AdvertiserLinks', $optionalArgs, ListDisplayVideo360AdvertiserLinksResponse::class, $request);
+ }
+
/**
* Lists FirebaseLinks on a property.
* Properties can have at most one FirebaseLink.
@@ -4071,28 +4940,26 @@ public function updateCustomMetric($updateMask, array $optionalArgs = [])
}
/**
- * Updates the singleton enhanced measurement settings for this web stream.
- * Note that the stream must enable enhanced measurement for these settings to
- * take effect.
+ * Updates the singleton data retention settings for this property.
*
* Sample code:
* ```
* $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
* try {
- * $enhancedMeasurementSettings = new EnhancedMeasurementSettings();
+ * $dataRetentionSettings = new DataRetentionSettings();
* $updateMask = new FieldMask();
- * $response = $analyticsAdminServiceClient->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask);
+ * $response = $analyticsAdminServiceClient->updateDataRetentionSettings($dataRetentionSettings, $updateMask);
* } finally {
* $analyticsAdminServiceClient->close();
* }
* ```
*
- * @param EnhancedMeasurementSettings $enhancedMeasurementSettings Required. The settings to update.
- * The `name` field is used to identify the settings to be updated.
- * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake case
- * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
- * the entire entity, use one path with the string "*" to match all fields.
- * @param array $optionalArgs {
+ * @param DataRetentionSettings $dataRetentionSettings Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake case
+ * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
+ * the entire entity, use one path with the string "*" to match all fields.
+ * @param array $optionalArgs {
* Optional.
*
* @type RetrySettings|array $retrySettings
@@ -4102,46 +4969,46 @@ public function updateCustomMetric($updateMask, array $optionalArgs = [])
* {@see Google\ApiCore\RetrySettings} for example usage.
* }
*
- * @return \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings
+ * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings
*
* @throws ApiException if the remote call fails
*
* @experimental
*/
- public function updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask, array $optionalArgs = [])
+ public function updateDataRetentionSettings($dataRetentionSettings, $updateMask, array $optionalArgs = [])
{
- $request = new UpdateEnhancedMeasurementSettingsRequest();
+ $request = new UpdateDataRetentionSettingsRequest();
$requestParamHeaders = [];
- $request->setEnhancedMeasurementSettings($enhancedMeasurementSettings);
+ $request->setDataRetentionSettings($dataRetentionSettings);
$request->setUpdateMask($updateMask);
- $requestParamHeaders['enhanced_measurement_settings.name'] = $enhancedMeasurementSettings->getName();
+ $requestParamHeaders['data_retention_settings.name'] = $dataRetentionSettings->getName();
$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('UpdateEnhancedMeasurementSettings', EnhancedMeasurementSettings::class, $optionalArgs, $request)->wait();
+ return $this->startCall('UpdateDataRetentionSettings', DataRetentionSettings::class, $optionalArgs, $request)->wait();
}
/**
- * Updates a FirebaseLink on a property
+ * Updates a DataStream on a property.
*
* Sample code:
* ```
* $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
* try {
- * $firebaseLink = new FirebaseLink();
* $updateMask = new FieldMask();
- * $response = $analyticsAdminServiceClient->updateFirebaseLink($firebaseLink, $updateMask);
+ * $response = $analyticsAdminServiceClient->updateDataStream($updateMask);
* } finally {
* $analyticsAdminServiceClient->close();
* }
* ```
*
- * @param FirebaseLink $firebaseLink Required. The Firebase link to update.
- * @param FieldMask $updateMask Required. The list of fields to be updated. Field names must be in snake case
- * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
- * the entire entity, use one path with the string "*" to match all fields.
- * @param array $optionalArgs {
+ * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be updated.
+ * To replace the entire entity, use one path with the string "*" to match
+ * all fields.
+ * @param array $optionalArgs {
* Optional.
*
+ * @type DataStream $dataStream
+ * The DataStream to update
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a
* {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
@@ -4149,22 +5016,73 @@ public function updateEnhancedMeasurementSettings($enhancedMeasurementSettings,
* {@see Google\ApiCore\RetrySettings} for example usage.
* }
*
- * @return \Google\Analytics\Admin\V1alpha\FirebaseLink
+ * @return \Google\Analytics\Admin\V1alpha\DataStream
*
* @throws ApiException if the remote call fails
*
* @experimental
*/
- public function updateFirebaseLink($firebaseLink, $updateMask, array $optionalArgs = [])
+ public function updateDataStream($updateMask, array $optionalArgs = [])
{
- $request = new UpdateFirebaseLinkRequest();
+ $request = new UpdateDataStreamRequest();
+ $requestParamHeaders = [];
+ $request->setUpdateMask($updateMask);
+ if (isset($optionalArgs['dataStream'])) {
+ $request->setDataStream($optionalArgs['dataStream']);
+ }
+
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('UpdateDataStream', DataStream::class, $optionalArgs, $request)->wait();
+ }
+
+ /**
+ * Updates a DisplayVideo360AdvertiserLink on a property.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $updateMask = new FieldMask();
+ * $response = $analyticsAdminServiceClient->updateDisplayVideo360AdvertiserLink($updateMask);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param FieldMask $updateMask Required. The list of fields to be updated. Omitted fields will not be updated.
+ * To replace the entire entity, use one path with the string "*" to match
+ * all fields.
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type DisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink
+ * The DisplayVideo360AdvertiserLink to update
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a
+ * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
+ * settings parameters. See the documentation on
+ * {@see Google\ApiCore\RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function updateDisplayVideo360AdvertiserLink($updateMask, array $optionalArgs = [])
+ {
+ $request = new UpdateDisplayVideo360AdvertiserLinkRequest();
$requestParamHeaders = [];
- $request->setFirebaseLink($firebaseLink);
$request->setUpdateMask($updateMask);
- $requestParamHeaders['firebase_link.name'] = $firebaseLink->getName();
+ if (isset($optionalArgs['displayVideo360AdvertiserLink'])) {
+ $request->setDisplayVideo360AdvertiserLink($optionalArgs['displayVideo360AdvertiserLink']);
+ }
+
$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('UpdateFirebaseLink', FirebaseLink::class, $optionalArgs, $request)->wait();
+ return $this->startCall('UpdateDisplayVideo360AdvertiserLink', DisplayVideo360AdvertiserLink::class, $optionalArgs, $request)->wait();
}
/**
diff --git a/AnalyticsAdmin/src/V1alpha/GetDataRetentionSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/GetDataRetentionSettingsRequest.php
new file mode 100644
index 000000000000..036b6f839d49
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/GetDataRetentionSettingsRequest.php
@@ -0,0 +1,79 @@
+google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest
+ */
+class GetDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the settings to lookup.
+ * Format:
+ * properties/{property}/dataRetentionSettings
+ * Example: "properties/1000/dataRetentionSettings"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The name of the settings to lookup.
+ * Format:
+ * properties/{property}/dataRetentionSettings
+ * Example: "properties/1000/dataRetentionSettings"
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the settings to lookup.
+ * Format:
+ * properties/{property}/dataRetentionSettings
+ * Example: "properties/1000/dataRetentionSettings"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The name of the settings to lookup.
+ * Format:
+ * properties/{property}/dataRetentionSettings
+ * Example: "properties/1000/dataRetentionSettings"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/GetDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/GetDataStreamRequest.php
new file mode 100644
index 000000000000..f9375bf599a8
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/GetDataStreamRequest.php
@@ -0,0 +1,71 @@
+google.analytics.admin.v1alpha.GetDataStreamRequest
+ */
+class GetDataStreamRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the DataStream to get.
+ * Example format: properties/1234/dataStreams/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The name of the DataStream to get.
+ * Example format: properties/1234/dataStreams/5678
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the DataStream to get.
+ * Example format: properties/1234/dataStreams/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The name of the DataStream to get.
+ * Example format: properties/1234/dataStreams/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php b/AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php
new file mode 100644
index 000000000000..3d1357d0bab2
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.php
@@ -0,0 +1,71 @@
+google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest
+ */
+class GetDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+ * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php
new file mode 100644
index 000000000000..640bc29234da
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/GetDisplayVideo360AdvertiserLinkRequest.php
@@ -0,0 +1,71 @@
+google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest
+ */
+class GetDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLink to get.
+ * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The name of the DisplayVideo360AdvertiserLink to get.
+ * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLink to get.
+ * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The name of the DisplayVideo360AdvertiserLink to get.
+ * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/GoogleAdsLink.php b/AnalyticsAdmin/src/V1alpha/GoogleAdsLink.php
index a8f297c08088..8bd8a553d045 100644
--- a/AnalyticsAdmin/src/V1alpha/GoogleAdsLink.php
+++ b/AnalyticsAdmin/src/V1alpha/GoogleAdsLink.php
@@ -9,7 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * A link between an GA4 property and a Google Ads account.
+ * A link between a GA4 property and a Google Ads account.
*
* Generated from protobuf message google.analytics.admin.v1alpha.GoogleAdsLink
*/
@@ -43,13 +43,6 @@ class GoogleAdsLink extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.protobuf.BoolValue ads_personalization_enabled = 5;
*/
private $ads_personalization_enabled = null;
- /**
- * Output only. Email address of the user that created the link.
- * An empty string will be returned if the email address can't be retrieved.
- *
- * Generated from protobuf field string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $email_address = '';
/**
* Output only. Time when this link was originally created.
*
@@ -62,6 +55,13 @@ class GoogleAdsLink extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $update_time = null;
+ /**
+ * Output only. Email address of the user that created the link.
+ * An empty string will be returned if the email address can't be retrieved.
+ *
+ * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $creator_email_address = '';
/**
* Constructor.
@@ -81,13 +81,13 @@ class GoogleAdsLink extends \Google\Protobuf\Internal\Message
* Automatically publish my Google Analytics audience lists and Google
* Analytics remarketing events/parameters to the linked Google Ads account.
* If this field is not set on create/update, it will be defaulted to true.
- * @type string $email_address
- * Output only. Email address of the user that created the link.
- * An empty string will be returned if the email address can't be retrieved.
* @type \Google\Protobuf\Timestamp $create_time
* Output only. Time when this link was originally created.
* @type \Google\Protobuf\Timestamp $update_time
* Output only. Time when this link was last updated.
+ * @type string $creator_email_address
+ * Output only. Email address of the user that created the link.
+ * An empty string will be returned if the email address can't be retrieved.
* }
*/
public function __construct($data = NULL) {
@@ -186,7 +186,7 @@ public function setCanManageClients($var)
*/
public function getAdsPersonalizationEnabled()
{
- return isset($this->ads_personalization_enabled) ? $this->ads_personalization_enabled : null;
+ return $this->ads_personalization_enabled;
}
public function hasAdsPersonalizationEnabled()
@@ -250,34 +250,6 @@ public function setAdsPersonalizationEnabledValue($var)
$this->writeWrapperValue("ads_personalization_enabled", $var);
return $this;}
- /**
- * Output only. Email address of the user that created the link.
- * An empty string will be returned if the email address can't be retrieved.
- *
- * Generated from protobuf field string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getEmailAddress()
- {
- return $this->email_address;
- }
-
- /**
- * Output only. Email address of the user that created the link.
- * An empty string will be returned if the email address can't be retrieved.
- *
- * Generated from protobuf field string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setEmailAddress($var)
- {
- GPBUtil::checkString($var, True);
- $this->email_address = $var;
-
- return $this;
- }
-
/**
* Output only. Time when this link was originally created.
*
@@ -286,7 +258,7 @@ public function setEmailAddress($var)
*/
public function getCreateTime()
{
- return isset($this->create_time) ? $this->create_time : null;
+ return $this->create_time;
}
public function hasCreateTime()
@@ -322,7 +294,7 @@ public function setCreateTime($var)
*/
public function getUpdateTime()
{
- return isset($this->update_time) ? $this->update_time : null;
+ return $this->update_time;
}
public function hasUpdateTime()
@@ -350,5 +322,33 @@ public function setUpdateTime($var)
return $this;
}
+ /**
+ * Output only. Email address of the user that created the link.
+ * An empty string will be returned if the email address can't be retrieved.
+ *
+ * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getCreatorEmailAddress()
+ {
+ return $this->creator_email_address;
+ }
+
+ /**
+ * Output only. Email address of the user that created the link.
+ * An empty string will be returned if the email address can't be retrieved.
+ *
+ * Generated from protobuf field string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setCreatorEmailAddress($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->creator_email_address = $var;
+
+ return $this;
+ }
+
}
diff --git a/AnalyticsAdmin/src/V1alpha/IosAppDataStream.php b/AnalyticsAdmin/src/V1alpha/IosAppDataStream.php
index e5c7582a74d2..7011deaabab1 100644
--- a/AnalyticsAdmin/src/V1alpha/IosAppDataStream.php
+++ b/AnalyticsAdmin/src/V1alpha/IosAppDataStream.php
@@ -153,7 +153,7 @@ public function setFirebaseAppId($var)
*/
public function getCreateTime()
{
- return isset($this->create_time) ? $this->create_time : null;
+ return $this->create_time;
}
public function hasCreateTime()
@@ -189,7 +189,7 @@ public function setCreateTime($var)
*/
public function getUpdateTime()
{
- return isset($this->update_time) ? $this->update_time : null;
+ return $this->update_time;
}
public function hasUpdateTime()
diff --git a/AnalyticsAdmin/src/V1alpha/LinkProposalInitiatingProduct.php b/AnalyticsAdmin/src/V1alpha/LinkProposalInitiatingProduct.php
new file mode 100644
index 000000000000..19dac5a16098
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/LinkProposalInitiatingProduct.php
@@ -0,0 +1,62 @@
+google.analytics.admin.v1alpha.LinkProposalInitiatingProduct
+ */
+class LinkProposalInitiatingProduct
+{
+ /**
+ * Unspecified product.
+ *
+ * Generated from protobuf enum LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0;
+ */
+ const LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0;
+ /**
+ * This proposal was created by a user from Google Analytics.
+ *
+ * Generated from protobuf enum GOOGLE_ANALYTICS = 1;
+ */
+ const GOOGLE_ANALYTICS = 1;
+ /**
+ * This proposal was created by a user from a linked product (not Google
+ * Analytics).
+ *
+ * Generated from protobuf enum LINKED_PRODUCT = 2;
+ */
+ const LINKED_PRODUCT = 2;
+
+ private static $valueToName = [
+ self::LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED => 'LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED',
+ self::GOOGLE_ANALYTICS => 'GOOGLE_ANALYTICS',
+ self::LINKED_PRODUCT => 'LINKED_PRODUCT',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/LinkProposalState.php b/AnalyticsAdmin/src/V1alpha/LinkProposalState.php
new file mode 100644
index 000000000000..5143339967af
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/LinkProposalState.php
@@ -0,0 +1,97 @@
+google.analytics.admin.v1alpha.LinkProposalState
+ */
+class LinkProposalState
+{
+ /**
+ * Unspecified state
+ *
+ * Generated from protobuf enum LINK_PROPOSAL_STATE_UNSPECIFIED = 0;
+ */
+ const LINK_PROPOSAL_STATE_UNSPECIFIED = 0;
+ /**
+ * This proposal is awaiting review from a Google Analytics user. This
+ * proposal will automatically expire after some time.
+ *
+ * Generated from protobuf enum AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1;
+ */
+ const AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1;
+ /**
+ * This proposal is awaiting review from a user of a linked product. This
+ * proposal will automatically expire after some time.
+ *
+ * Generated from protobuf enum AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2;
+ */
+ const AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2;
+ /**
+ * This proposal has been withdrawn by an admin on the initiating product.
+ * This proposal will be automatically deleted after some time.
+ *
+ * Generated from protobuf enum WITHDRAWN = 3;
+ */
+ const WITHDRAWN = 3;
+ /**
+ * This proposal has been declined by an admin on the receiving product. This
+ * proposal will be automatically deleted after some time.
+ *
+ * Generated from protobuf enum DECLINED = 4;
+ */
+ const DECLINED = 4;
+ /**
+ * This proposal expired due to lack of response from an admin on the
+ * receiving product. This proposal will be automatically deleted after some
+ * time.
+ *
+ * Generated from protobuf enum EXPIRED = 5;
+ */
+ const EXPIRED = 5;
+ /**
+ * This proposal has become obsolete because a link was directly created to
+ * the same external product resource that this proposal specifies. This
+ * proposal will be automatically deleted after some time.
+ *
+ * Generated from protobuf enum OBSOLETE = 6;
+ */
+ const OBSOLETE = 6;
+
+ private static $valueToName = [
+ self::LINK_PROPOSAL_STATE_UNSPECIFIED => 'LINK_PROPOSAL_STATE_UNSPECIFIED',
+ self::AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS => 'AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS',
+ self::AWAITING_REVIEW_FROM_LINKED_PRODUCT => 'AWAITING_REVIEW_FROM_LINKED_PRODUCT',
+ self::WITHDRAWN => 'WITHDRAWN',
+ self::DECLINED => 'DECLINED',
+ self::EXPIRED => 'EXPIRED',
+ self::OBSOLETE => 'OBSOLETE',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/LinkProposalStatusDetails.php b/AnalyticsAdmin/src/V1alpha/LinkProposalStatusDetails.php
new file mode 100644
index 000000000000..3deb05a01b2c
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/LinkProposalStatusDetails.php
@@ -0,0 +1,135 @@
+google.analytics.admin.v1alpha.LinkProposalStatusDetails
+ */
+class LinkProposalStatusDetails extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. The source of this proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $link_proposal_initiating_product = 0;
+ /**
+ * Output only. The email address of the user that proposed this linkage.
+ *
+ * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $requestor_email = '';
+ /**
+ * Output only. The state of this proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $link_proposal_state = 0;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type int $link_proposal_initiating_product
+ * Output only. The source of this proposal.
+ * @type string $requestor_email
+ * Output only. The email address of the user that proposed this linkage.
+ * @type int $link_proposal_state
+ * Output only. The state of this proposal.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Output only. The source of this proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return int
+ */
+ public function getLinkProposalInitiatingProduct()
+ {
+ return $this->link_proposal_initiating_product;
+ }
+
+ /**
+ * Output only. The source of this proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param int $var
+ * @return $this
+ */
+ public function setLinkProposalInitiatingProduct($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\LinkProposalInitiatingProduct::class);
+ $this->link_proposal_initiating_product = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The email address of the user that proposed this linkage.
+ *
+ * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getRequestorEmail()
+ {
+ return $this->requestor_email;
+ }
+
+ /**
+ * Output only. The email address of the user that proposed this linkage.
+ *
+ * Generated from protobuf field string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setRequestorEmail($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->requestor_email = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The state of this proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return int
+ */
+ public function getLinkProposalState()
+ {
+ return $this->link_proposal_state;
+ }
+
+ /**
+ * Output only. The state of this proposal.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param int $var
+ * @return $this
+ */
+ public function setLinkProposalState($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\LinkProposalState::class);
+ $this->link_proposal_state = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ListDataStreamsRequest.php b/AnalyticsAdmin/src/V1alpha/ListDataStreamsRequest.php
new file mode 100644
index 000000000000..961168af6a52
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ListDataStreamsRequest.php
@@ -0,0 +1,155 @@
+google.analytics.admin.v1alpha.ListDataStreamsRequest
+ */
+class ListDataStreamsRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ */
+ private $page_size = 0;
+ /**
+ * A page token, received from a previous `ListDataStreams` call.
+ * Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to `ListDataStreams` must
+ * match the call that provided the page token.
+ *
+ * Generated from protobuf field string page_token = 3;
+ */
+ private $page_token = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. Example format: properties/1234
+ * @type int $page_size
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ * @type string $page_token
+ * A page token, received from a previous `ListDataStreams` call.
+ * Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to `ListDataStreams` must
+ * match the call that provided the page token.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ * @return int
+ */
+ public function getPageSize()
+ {
+ return $this->page_size;
+ }
+
+ /**
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setPageSize($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->page_size = $var;
+
+ return $this;
+ }
+
+ /**
+ * A page token, received from a previous `ListDataStreams` call.
+ * Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to `ListDataStreams` must
+ * match the call that provided the page token.
+ *
+ * Generated from protobuf field string page_token = 3;
+ * @return string
+ */
+ public function getPageToken()
+ {
+ return $this->page_token;
+ }
+
+ /**
+ * A page token, received from a previous `ListDataStreams` call.
+ * Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to `ListDataStreams` must
+ * match the call that provided the page token.
+ *
+ * Generated from protobuf field string page_token = 3;
+ * @param string $var
+ * @return $this
+ */
+ public function setPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ListDataStreamsResponse.php b/AnalyticsAdmin/src/V1alpha/ListDataStreamsResponse.php
new file mode 100644
index 000000000000..782395551a22
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ListDataStreamsResponse.php
@@ -0,0 +1,105 @@
+google.analytics.admin.v1alpha.ListDataStreamsResponse
+ */
+class ListDataStreamsResponse extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * List of DataStreams.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1;
+ */
+ private $data_streams;
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ */
+ private $next_page_token = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\DataStream[]|\Google\Protobuf\Internal\RepeatedField $data_streams
+ * List of DataStreams.
+ * @type string $next_page_token
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * List of DataStreams.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getDataStreams()
+ {
+ return $this->data_streams;
+ }
+
+ /**
+ * List of DataStreams.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1;
+ * @param \Google\Analytics\Admin\V1alpha\DataStream[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setDataStreams($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DataStream::class);
+ $this->data_streams = $arr;
+
+ return $this;
+ }
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @return string
+ */
+ public function getNextPageToken()
+ {
+ return $this->next_page_token;
+ }
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @param string $var
+ * @return $this
+ */
+ public function setNextPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->next_page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php
new file mode 100644
index 000000000000..7a16b8a07564
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.php
@@ -0,0 +1,163 @@
+google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest
+ */
+class ListDisplayVideo360AdvertiserLinkProposalsRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ */
+ private $page_size = 0;
+ /**
+ * A page token, received from a previous
+ * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+ * the subsequent page.
+ * When paginating, all other parameters provided to
+ * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+ * provided the page token.
+ *
+ * Generated from protobuf field string page_token = 3;
+ */
+ private $page_token = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. Example format: properties/1234
+ * @type int $page_size
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ * @type string $page_token
+ * A page token, received from a previous
+ * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+ * the subsequent page.
+ * When paginating, all other parameters provided to
+ * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+ * provided the page token.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ * @return int
+ */
+ public function getPageSize()
+ {
+ return $this->page_size;
+ }
+
+ /**
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setPageSize($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->page_size = $var;
+
+ return $this;
+ }
+
+ /**
+ * A page token, received from a previous
+ * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+ * the subsequent page.
+ * When paginating, all other parameters provided to
+ * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+ * provided the page token.
+ *
+ * Generated from protobuf field string page_token = 3;
+ * @return string
+ */
+ public function getPageToken()
+ {
+ return $this->page_token;
+ }
+
+ /**
+ * A page token, received from a previous
+ * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+ * the subsequent page.
+ * When paginating, all other parameters provided to
+ * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+ * provided the page token.
+ *
+ * Generated from protobuf field string page_token = 3;
+ * @param string $var
+ * @return $this
+ */
+ public function setPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php
new file mode 100644
index 000000000000..13e669a09c6c
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.php
@@ -0,0 +1,105 @@
+google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse
+ */
+class ListDisplayVideo360AdvertiserLinkProposalsResponse extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * List of DisplayVideo360AdvertiserLinkProposals.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1;
+ */
+ private $display_video_360_advertiser_link_proposals;
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ */
+ private $next_page_token = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal[]|\Google\Protobuf\Internal\RepeatedField $display_video_360_advertiser_link_proposals
+ * List of DisplayVideo360AdvertiserLinkProposals.
+ * @type string $next_page_token
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * List of DisplayVideo360AdvertiserLinkProposals.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getDisplayVideo360AdvertiserLinkProposals()
+ {
+ return $this->display_video_360_advertiser_link_proposals;
+ }
+
+ /**
+ * List of DisplayVideo360AdvertiserLinkProposals.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1;
+ * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setDisplayVideo360AdvertiserLinkProposals($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal::class);
+ $this->display_video_360_advertiser_link_proposals = $arr;
+
+ return $this;
+ }
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @return string
+ */
+ public function getNextPageToken()
+ {
+ return $this->next_page_token;
+ }
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @param string $var
+ * @return $this
+ */
+ public function setNextPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->next_page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php
new file mode 100644
index 000000000000..29cc0b4dde3f
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksRequest.php
@@ -0,0 +1,159 @@
+google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest
+ */
+class ListDisplayVideo360AdvertiserLinksRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ */
+ private $page_size = 0;
+ /**
+ * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+ * call. Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to
+ * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+ * page token.
+ *
+ * Generated from protobuf field string page_token = 3;
+ */
+ private $page_token = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. Example format: properties/1234
+ * @type int $page_size
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ * @type string $page_token
+ * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+ * call. Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to
+ * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+ * page token.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ * @return int
+ */
+ public function getPageSize()
+ {
+ return $this->page_size;
+ }
+
+ /**
+ * The maximum number of resources to return.
+ * If unspecified, at most 50 resources will be returned.
+ * The maximum value is 200 (higher values will be coerced to the maximum).
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setPageSize($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->page_size = $var;
+
+ return $this;
+ }
+
+ /**
+ * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+ * call. Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to
+ * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+ * page token.
+ *
+ * Generated from protobuf field string page_token = 3;
+ * @return string
+ */
+ public function getPageToken()
+ {
+ return $this->page_token;
+ }
+
+ /**
+ * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+ * call. Provide this to retrieve the subsequent page.
+ * When paginating, all other parameters provided to
+ * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+ * page token.
+ *
+ * Generated from protobuf field string page_token = 3;
+ * @param string $var
+ * @return $this
+ */
+ public function setPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php
new file mode 100644
index 000000000000..77fcf0e3ebe4
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ListDisplayVideo360AdvertiserLinksResponse.php
@@ -0,0 +1,105 @@
+google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse
+ */
+class ListDisplayVideo360AdvertiserLinksResponse extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * List of DisplayVideo360AdvertiserLinks.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1;
+ */
+ private $display_video_360_advertiser_links;
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ */
+ private $next_page_token = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink[]|\Google\Protobuf\Internal\RepeatedField $display_video_360_advertiser_links
+ * List of DisplayVideo360AdvertiserLinks.
+ * @type string $next_page_token
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * List of DisplayVideo360AdvertiserLinks.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getDisplayVideo360AdvertiserLinks()
+ {
+ return $this->display_video_360_advertiser_links;
+ }
+
+ /**
+ * List of DisplayVideo360AdvertiserLinks.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1;
+ * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setDisplayVideo360AdvertiserLinks($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class);
+ $this->display_video_360_advertiser_links = $arr;
+
+ return $this;
+ }
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @return string
+ */
+ public function getNextPageToken()
+ {
+ return $this->next_page_token;
+ }
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @param string $var
+ * @return $this
+ */
+ public function setNextPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->next_page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/Property.php b/AnalyticsAdmin/src/V1alpha/Property.php
index 2b3fdb86f5e0..259c05732097 100644
--- a/AnalyticsAdmin/src/V1alpha/Property.php
+++ b/AnalyticsAdmin/src/V1alpha/Property.php
@@ -78,6 +78,12 @@ class Property extends \Google\Protobuf\Internal\Message
* Generated from protobuf field string currency_code = 8;
*/
private $currency_code = '';
+ /**
+ * Output only. The Google Analytics service level that applies to this property.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $service_level = 0;
/**
* Output only. If set, the time at which this property was trashed. If not set, then this
* property is not currently in the trash can.
@@ -93,6 +99,14 @@ class Property extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $expire_time = null;
+ /**
+ * Immutable. The resource name of the parent account
+ * Format: accounts/{account_id}
+ * Example: "accounts/123"
+ *
+ * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {
+ */
+ private $account = '';
/**
* Constructor.
@@ -131,6 +145,8 @@ class Property extends \Google\Protobuf\Internal\Message
* The currency type used in reports involving monetary values.
* Format: https://en.wikipedia.org/wiki/ISO_4217
* Examples: "USD", "EUR", "JPY"
+ * @type int $service_level
+ * Output only. The Google Analytics service level that applies to this property.
* @type \Google\Protobuf\Timestamp $delete_time
* Output only. If set, the time at which this property was trashed. If not set, then this
* property is not currently in the trash can.
@@ -138,6 +154,10 @@ class Property extends \Google\Protobuf\Internal\Message
* Output only. If set, the time at which this trashed property will be permanently
* deleted. If not set, then this property is not currently in the trash can
* and is not slated to be deleted.
+ * @type string $account
+ * Immutable. The resource name of the parent account
+ * Format: accounts/{account_id}
+ * Example: "accounts/123"
* }
*/
public function __construct($data = NULL) {
@@ -183,7 +203,7 @@ public function setName($var)
*/
public function getCreateTime()
{
- return isset($this->create_time) ? $this->create_time : null;
+ return $this->create_time;
}
public function hasCreateTime()
@@ -219,7 +239,7 @@ public function setCreateTime($var)
*/
public function getUpdateTime()
{
- return isset($this->update_time) ? $this->update_time : null;
+ return $this->update_time;
}
public function hasUpdateTime()
@@ -403,6 +423,32 @@ public function setCurrencyCode($var)
return $this;
}
+ /**
+ * Output only. The Google Analytics service level that applies to this property.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return int
+ */
+ public function getServiceLevel()
+ {
+ return $this->service_level;
+ }
+
+ /**
+ * Output only. The Google Analytics service level that applies to this property.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param int $var
+ * @return $this
+ */
+ public function setServiceLevel($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\ServiceLevel::class);
+ $this->service_level = $var;
+
+ return $this;
+ }
+
/**
* Output only. If set, the time at which this property was trashed. If not set, then this
* property is not currently in the trash can.
@@ -412,7 +458,7 @@ public function setCurrencyCode($var)
*/
public function getDeleteTime()
{
- return isset($this->delete_time) ? $this->delete_time : null;
+ return $this->delete_time;
}
public function hasDeleteTime()
@@ -451,7 +497,7 @@ public function setDeleteTime($var)
*/
public function getExpireTime()
{
- return isset($this->expire_time) ? $this->expire_time : null;
+ return $this->expire_time;
}
public function hasExpireTime()
@@ -481,5 +527,35 @@ public function setExpireTime($var)
return $this;
}
+ /**
+ * Immutable. The resource name of the parent account
+ * Format: accounts/{account_id}
+ * Example: "accounts/123"
+ *
+ * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getAccount()
+ {
+ return $this->account;
+ }
+
+ /**
+ * Immutable. The resource name of the parent account
+ * Format: accounts/{account_id}
+ * Example: "accounts/123"
+ *
+ * Generated from protobuf field string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setAccount($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->account = $var;
+
+ return $this;
+ }
+
}
diff --git a/AnalyticsAdmin/src/V1alpha/PropertySummary.php b/AnalyticsAdmin/src/V1alpha/PropertySummary.php
index d0c3e97f1c16..be3ced4aa27b 100644
--- a/AnalyticsAdmin/src/V1alpha/PropertySummary.php
+++ b/AnalyticsAdmin/src/V1alpha/PropertySummary.php
@@ -9,7 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * A virtual resource representing metadata for an GA4 property.
+ * A virtual resource representing metadata for a GA4 property.
*
* Generated from protobuf message google.analytics.admin.v1alpha.PropertySummary
*/
@@ -24,7 +24,7 @@ class PropertySummary extends \Google\Protobuf\Internal\Message
*/
private $property = '';
/**
- * Display name for the property referred to in this account summary.
+ * Display name for the property referred to in this property summary.
*
* Generated from protobuf field string display_name = 2;
*/
@@ -41,7 +41,7 @@ class PropertySummary extends \Google\Protobuf\Internal\Message
* Format: properties/{property_id}
* Example: "properties/1000"
* @type string $display_name
- * Display name for the property referred to in this account summary.
+ * Display name for the property referred to in this property summary.
* }
*/
public function __construct($data = NULL) {
@@ -80,7 +80,7 @@ public function setProperty($var)
}
/**
- * Display name for the property referred to in this account summary.
+ * Display name for the property referred to in this property summary.
*
* Generated from protobuf field string display_name = 2;
* @return string
@@ -91,7 +91,7 @@ public function getDisplayName()
}
/**
- * Display name for the property referred to in this account summary.
+ * Display name for the property referred to in this property summary.
*
* Generated from protobuf field string display_name = 2;
* @param string $var
diff --git a/AnalyticsAdmin/src/V1alpha/ProvisionAccountTicketRequest.php b/AnalyticsAdmin/src/V1alpha/ProvisionAccountTicketRequest.php
index b4d013e0b519..25fa52530dc5 100644
--- a/AnalyticsAdmin/src/V1alpha/ProvisionAccountTicketRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/ProvisionAccountTicketRequest.php
@@ -55,7 +55,7 @@ public function __construct($data = NULL) {
*/
public function getAccount()
{
- return isset($this->account) ? $this->account : null;
+ return $this->account;
}
public function hasAccount()
diff --git a/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php b/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php
index 1f3520475461..84013f5656ad 100644
--- a/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php
@@ -263,7 +263,7 @@ public function setActorEmail($var)
*/
public function getEarliestChangeTime()
{
- return isset($this->earliest_change_time) ? $this->earliest_change_time : null;
+ return $this->earliest_change_time;
}
public function hasEarliestChangeTime()
@@ -299,7 +299,7 @@ public function setEarliestChangeTime($var)
*/
public function getLatestChangeTime()
{
- return isset($this->latest_change_time) ? $this->latest_change_time : null;
+ return $this->latest_change_time;
}
public function hasLatestChangeTime()
diff --git a/AnalyticsAdmin/src/V1alpha/ServiceLevel.php b/AnalyticsAdmin/src/V1alpha/ServiceLevel.php
new file mode 100644
index 000000000000..d7e00a48d589
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ServiceLevel.php
@@ -0,0 +1,61 @@
+google.analytics.admin.v1alpha.ServiceLevel
+ */
+class ServiceLevel
+{
+ /**
+ * Service level not specified or invalid.
+ *
+ * Generated from protobuf enum SERVICE_LEVEL_UNSPECIFIED = 0;
+ */
+ const SERVICE_LEVEL_UNSPECIFIED = 0;
+ /**
+ * The standard version of Google Analytics.
+ *
+ * Generated from protobuf enum GOOGLE_ANALYTICS_STANDARD = 1;
+ */
+ const GOOGLE_ANALYTICS_STANDARD = 1;
+ /**
+ * The paid, premium version of Google Analytics.
+ *
+ * Generated from protobuf enum GOOGLE_ANALYTICS_360 = 2;
+ */
+ const GOOGLE_ANALYTICS_360 = 2;
+
+ private static $valueToName = [
+ self::SERVICE_LEVEL_UNSPECIFIED => 'SERVICE_LEVEL_UNSPECIFIED',
+ self::GOOGLE_ANALYTICS_STANDARD => 'GOOGLE_ANALYTICS_STANDARD',
+ self::GOOGLE_ANALYTICS_360 => 'GOOGLE_ANALYTICS_360',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateAccountRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateAccountRequest.php
index 952fe87954e1..f28a0f03186d 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdateAccountRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdateAccountRequest.php
@@ -60,7 +60,7 @@ public function __construct($data = NULL) {
*/
public function getAccount()
{
- return isset($this->account) ? $this->account : null;
+ return $this->account;
}
public function hasAccount()
@@ -99,7 +99,7 @@ public function setAccount($var)
*/
public function getUpdateMask()
{
- return isset($this->update_mask) ? $this->update_mask : null;
+ return $this->update_mask;
}
public function hasUpdateMask()
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateAndroidAppDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateAndroidAppDataStreamRequest.php
index 7ec52689102c..c9695464283f 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdateAndroidAppDataStreamRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdateAndroidAppDataStreamRequest.php
@@ -60,7 +60,7 @@ public function __construct($data = NULL) {
*/
public function getAndroidAppDataStream()
{
- return isset($this->android_app_data_stream) ? $this->android_app_data_stream : null;
+ return $this->android_app_data_stream;
}
public function hasAndroidAppDataStream()
@@ -99,7 +99,7 @@ public function setAndroidAppDataStream($var)
*/
public function getUpdateMask()
{
- return isset($this->update_mask) ? $this->update_mask : null;
+ return $this->update_mask;
}
public function hasUpdateMask()
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateCustomDimensionRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateCustomDimensionRequest.php
index 8020843f3cff..22e714096b1e 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdateCustomDimensionRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdateCustomDimensionRequest.php
@@ -57,7 +57,7 @@ public function __construct($data = NULL) {
*/
public function getCustomDimension()
{
- return isset($this->custom_dimension) ? $this->custom_dimension : null;
+ return $this->custom_dimension;
}
public function hasCustomDimension()
@@ -95,7 +95,7 @@ public function setCustomDimension($var)
*/
public function getUpdateMask()
{
- return isset($this->update_mask) ? $this->update_mask : null;
+ return $this->update_mask;
}
public function hasUpdateMask()
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateCustomMetricRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateCustomMetricRequest.php
index 60568657d4cc..1cc191a1251b 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdateCustomMetricRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdateCustomMetricRequest.php
@@ -57,7 +57,7 @@ public function __construct($data = NULL) {
*/
public function getCustomMetric()
{
- return isset($this->custom_metric) ? $this->custom_metric : null;
+ return $this->custom_metric;
}
public function hasCustomMetric()
@@ -95,7 +95,7 @@ public function setCustomMetric($var)
*/
public function getUpdateMask()
{
- return isset($this->update_mask) ? $this->update_mask : null;
+ return $this->update_mask;
}
public function hasUpdateMask()
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateDataRetentionSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateDataRetentionSettingsRequest.php
new file mode 100644
index 000000000000..c330a9891d31
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/UpdateDataRetentionSettingsRequest.php
@@ -0,0 +1,133 @@
+google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest
+ */
+class UpdateDataRetentionSettingsRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $data_retention_settings = null;
+ /**
+ * Required. The list of fields to be updated. Field names must be in snake case
+ * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
+ * the entire entity, use one path with the string "*" to match all fields.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $update_mask = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\DataRetentionSettings $data_retention_settings
+ * Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ * @type \Google\Protobuf\FieldMask $update_mask
+ * Required. The list of fields to be updated. Field names must be in snake case
+ * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
+ * the entire entity, use one path with the string "*" to match all fields.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\DataRetentionSettings|null
+ */
+ public function getDataRetentionSettings()
+ {
+ return $this->data_retention_settings;
+ }
+
+ public function hasDataRetentionSettings()
+ {
+ return isset($this->data_retention_settings);
+ }
+
+ public function clearDataRetentionSettings()
+ {
+ unset($this->data_retention_settings);
+ }
+
+ /**
+ * Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\DataRetentionSettings $var
+ * @return $this
+ */
+ public function setDataRetentionSettings($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRetentionSettings::class);
+ $this->data_retention_settings = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The list of fields to be updated. Field names must be in snake case
+ * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
+ * the entire entity, use one path with the string "*" to match all fields.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Protobuf\FieldMask|null
+ */
+ public function getUpdateMask()
+ {
+ return $this->update_mask;
+ }
+
+ public function hasUpdateMask()
+ {
+ return isset($this->update_mask);
+ }
+
+ public function clearUpdateMask()
+ {
+ unset($this->update_mask);
+ }
+
+ /**
+ * Required. The list of fields to be updated. Field names must be in snake case
+ * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
+ * the entire entity, use one path with the string "*" to match all fields.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Protobuf\FieldMask $var
+ * @return $this
+ */
+ public function setUpdateMask($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
+ $this->update_mask = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateDataStreamRequest.php
new file mode 100644
index 000000000000..41ea4242b607
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/UpdateDataStreamRequest.php
@@ -0,0 +1,129 @@
+google.analytics.admin.v1alpha.UpdateDataStreamRequest
+ */
+class UpdateDataStreamRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The DataStream to update
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1;
+ */
+ private $data_stream = null;
+ /**
+ * Required. The list of fields to be updated. Omitted fields will not be updated.
+ * To replace the entire entity, use one path with the string "*" to match
+ * all fields.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $update_mask = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\DataStream $data_stream
+ * The DataStream to update
+ * @type \Google\Protobuf\FieldMask $update_mask
+ * Required. The list of fields to be updated. Omitted fields will not be updated.
+ * To replace the entire entity, use one path with the string "*" to match
+ * all fields.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The DataStream to update
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1;
+ * @return \Google\Analytics\Admin\V1alpha\DataStream|null
+ */
+ public function getDataStream()
+ {
+ return $this->data_stream;
+ }
+
+ public function hasDataStream()
+ {
+ return isset($this->data_stream);
+ }
+
+ public function clearDataStream()
+ {
+ unset($this->data_stream);
+ }
+
+ /**
+ * The DataStream to update
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DataStream data_stream = 1;
+ * @param \Google\Analytics\Admin\V1alpha\DataStream $var
+ * @return $this
+ */
+ public function setDataStream($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataStream::class);
+ $this->data_stream = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The list of fields to be updated. Omitted fields will not be updated.
+ * To replace the entire entity, use one path with the string "*" to match
+ * all fields.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Protobuf\FieldMask|null
+ */
+ public function getUpdateMask()
+ {
+ return $this->update_mask;
+ }
+
+ public function hasUpdateMask()
+ {
+ return isset($this->update_mask);
+ }
+
+ public function clearUpdateMask()
+ {
+ unset($this->update_mask);
+ }
+
+ /**
+ * Required. The list of fields to be updated. Omitted fields will not be updated.
+ * To replace the entire entity, use one path with the string "*" to match
+ * all fields.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Protobuf\FieldMask $var
+ * @return $this
+ */
+ public function setUpdateMask($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
+ $this->update_mask = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php
new file mode 100644
index 000000000000..1e83ea1b37d2
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.php
@@ -0,0 +1,129 @@
+google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest
+ */
+class UpdateDisplayVideo360AdvertiserLinkRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The DisplayVideo360AdvertiserLink to update
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1;
+ */
+ private $display_video_360_advertiser_link = null;
+ /**
+ * Required. The list of fields to be updated. Omitted fields will not be updated.
+ * To replace the entire entity, use one path with the string "*" to match
+ * all fields.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $update_mask = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $display_video_360_advertiser_link
+ * The DisplayVideo360AdvertiserLink to update
+ * @type \Google\Protobuf\FieldMask $update_mask
+ * Required. The list of fields to be updated. Omitted fields will not be updated.
+ * To replace the entire entity, use one path with the string "*" to match
+ * all fields.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The DisplayVideo360AdvertiserLink to update
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1;
+ * @return \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink|null
+ */
+ public function getDisplayVideo360AdvertiserLink()
+ {
+ return $this->display_video_360_advertiser_link;
+ }
+
+ public function hasDisplayVideo360AdvertiserLink()
+ {
+ return isset($this->display_video_360_advertiser_link);
+ }
+
+ public function clearDisplayVideo360AdvertiserLink()
+ {
+ unset($this->display_video_360_advertiser_link);
+ }
+
+ /**
+ * The DisplayVideo360AdvertiserLink to update
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1;
+ * @param \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink $var
+ * @return $this
+ */
+ public function setDisplayVideo360AdvertiserLink($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink::class);
+ $this->display_video_360_advertiser_link = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The list of fields to be updated. Omitted fields will not be updated.
+ * To replace the entire entity, use one path with the string "*" to match
+ * all fields.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Protobuf\FieldMask|null
+ */
+ public function getUpdateMask()
+ {
+ return $this->update_mask;
+ }
+
+ public function hasUpdateMask()
+ {
+ return isset($this->update_mask);
+ }
+
+ public function clearUpdateMask()
+ {
+ unset($this->update_mask);
+ }
+
+ /**
+ * Required. The list of fields to be updated. Omitted fields will not be updated.
+ * To replace the entire entity, use one path with the string "*" to match
+ * all fields.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Protobuf\FieldMask $var
+ * @return $this
+ */
+ public function setUpdateMask($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
+ $this->update_mask = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateGoogleAdsLinkRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateGoogleAdsLinkRequest.php
index 5750ad808f43..5ce358dd120e 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdateGoogleAdsLinkRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdateGoogleAdsLinkRequest.php
@@ -57,7 +57,7 @@ public function __construct($data = NULL) {
*/
public function getGoogleAdsLink()
{
- return isset($this->google_ads_link) ? $this->google_ads_link : null;
+ return $this->google_ads_link;
}
public function hasGoogleAdsLink()
@@ -95,7 +95,7 @@ public function setGoogleAdsLink($var)
*/
public function getUpdateMask()
{
- return isset($this->update_mask) ? $this->update_mask : null;
+ return $this->update_mask;
}
public function hasUpdateMask()
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateGoogleSignalsSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateGoogleSignalsSettingsRequest.php
index 641ea99b4ee8..9ce49d1c30ad 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdateGoogleSignalsSettingsRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdateGoogleSignalsSettingsRequest.php
@@ -60,7 +60,7 @@ public function __construct($data = NULL) {
*/
public function getGoogleSignalsSettings()
{
- return isset($this->google_signals_settings) ? $this->google_signals_settings : null;
+ return $this->google_signals_settings;
}
public function hasGoogleSignalsSettings()
@@ -99,7 +99,7 @@ public function setGoogleSignalsSettings($var)
*/
public function getUpdateMask()
{
- return isset($this->update_mask) ? $this->update_mask : null;
+ return $this->update_mask;
}
public function hasUpdateMask()
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateIosAppDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateIosAppDataStreamRequest.php
index 10aed55c5ecb..68358307a86c 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdateIosAppDataStreamRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdateIosAppDataStreamRequest.php
@@ -60,7 +60,7 @@ public function __construct($data = NULL) {
*/
public function getIosAppDataStream()
{
- return isset($this->ios_app_data_stream) ? $this->ios_app_data_stream : null;
+ return $this->ios_app_data_stream;
}
public function hasIosAppDataStream()
@@ -99,7 +99,7 @@ public function setIosAppDataStream($var)
*/
public function getUpdateMask()
{
- return isset($this->update_mask) ? $this->update_mask : null;
+ return $this->update_mask;
}
public function hasUpdateMask()
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateMeasurementProtocolSecretRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateMeasurementProtocolSecretRequest.php
index 7d3848b6609c..b967b7b31ac6 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdateMeasurementProtocolSecretRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdateMeasurementProtocolSecretRequest.php
@@ -53,7 +53,7 @@ public function __construct($data = NULL) {
*/
public function getMeasurementProtocolSecret()
{
- return isset($this->measurement_protocol_secret) ? $this->measurement_protocol_secret : null;
+ return $this->measurement_protocol_secret;
}
public function hasMeasurementProtocolSecret()
@@ -89,7 +89,7 @@ public function setMeasurementProtocolSecret($var)
*/
public function getUpdateMask()
{
- return isset($this->update_mask) ? $this->update_mask : null;
+ return $this->update_mask;
}
public function hasUpdateMask()
diff --git a/AnalyticsAdmin/src/V1alpha/UpdatePropertyRequest.php b/AnalyticsAdmin/src/V1alpha/UpdatePropertyRequest.php
index a1d4d3b5fae1..ba0e3c190267 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdatePropertyRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdatePropertyRequest.php
@@ -63,7 +63,7 @@ public function __construct($data = NULL) {
*/
public function getProperty()
{
- return isset($this->property) ? $this->property : null;
+ return $this->property;
}
public function hasProperty()
@@ -103,7 +103,7 @@ public function setProperty($var)
*/
public function getUpdateMask()
{
- return isset($this->update_mask) ? $this->update_mask : null;
+ return $this->update_mask;
}
public function hasUpdateMask()
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateUserLinkRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateUserLinkRequest.php
index c9d49d0aaa00..d70a336389fe 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdateUserLinkRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdateUserLinkRequest.php
@@ -45,7 +45,7 @@ public function __construct($data = NULL) {
*/
public function getUserLink()
{
- return isset($this->user_link) ? $this->user_link : null;
+ return $this->user_link;
}
public function hasUserLink()
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateWebDataStreamRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateWebDataStreamRequest.php
index 5ddbf167a1dc..bd8759899311 100644
--- a/AnalyticsAdmin/src/V1alpha/UpdateWebDataStreamRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/UpdateWebDataStreamRequest.php
@@ -60,7 +60,7 @@ public function __construct($data = NULL) {
*/
public function getWebDataStream()
{
- return isset($this->web_data_stream) ? $this->web_data_stream : null;
+ return $this->web_data_stream;
}
public function hasWebDataStream()
@@ -99,7 +99,7 @@ public function setWebDataStream($var)
*/
public function getUpdateMask()
{
- return isset($this->update_mask) ? $this->update_mask : null;
+ return $this->update_mask;
}
public function hasUpdateMask()
diff --git a/AnalyticsAdmin/src/V1alpha/UserLink.php b/AnalyticsAdmin/src/V1alpha/UserLink.php
index 7f98b9c4bade..422be45ecdfb 100644
--- a/AnalyticsAdmin/src/V1alpha/UserLink.php
+++ b/AnalyticsAdmin/src/V1alpha/UserLink.php
@@ -31,10 +31,12 @@ class UserLink extends \Google\Protobuf\Internal\Message
/**
* Roles directly assigned to this user for this account or property.
* Valid values:
- * predefinedRoles/read
- * predefinedRoles/collaborate
- * predefinedRoles/edit
- * predefinedRoles/manage-users
+ * predefinedRoles/viewer
+ * predefinedRoles/analyst
+ * predefinedRoles/editor
+ * predefinedRoles/admin
+ * predefinedRoles/no-cost-data
+ * predefinedRoles/no-revenue-data
* Excludes roles that are inherited from a higher-level entity, group,
* or organization admin role.
* A UserLink that is updated to have an empty list of direct_roles will be
@@ -57,10 +59,12 @@ class UserLink extends \Google\Protobuf\Internal\Message
* @type string[]|\Google\Protobuf\Internal\RepeatedField $direct_roles
* Roles directly assigned to this user for this account or property.
* Valid values:
- * predefinedRoles/read
- * predefinedRoles/collaborate
- * predefinedRoles/edit
- * predefinedRoles/manage-users
+ * predefinedRoles/viewer
+ * predefinedRoles/analyst
+ * predefinedRoles/editor
+ * predefinedRoles/admin
+ * predefinedRoles/no-cost-data
+ * predefinedRoles/no-revenue-data
* Excludes roles that are inherited from a higher-level entity, group,
* or organization admin role.
* A UserLink that is updated to have an empty list of direct_roles will be
@@ -127,10 +131,12 @@ public function setEmailAddress($var)
/**
* Roles directly assigned to this user for this account or property.
* Valid values:
- * predefinedRoles/read
- * predefinedRoles/collaborate
- * predefinedRoles/edit
- * predefinedRoles/manage-users
+ * predefinedRoles/viewer
+ * predefinedRoles/analyst
+ * predefinedRoles/editor
+ * predefinedRoles/admin
+ * predefinedRoles/no-cost-data
+ * predefinedRoles/no-revenue-data
* Excludes roles that are inherited from a higher-level entity, group,
* or organization admin role.
* A UserLink that is updated to have an empty list of direct_roles will be
@@ -147,10 +153,12 @@ public function getDirectRoles()
/**
* Roles directly assigned to this user for this account or property.
* Valid values:
- * predefinedRoles/read
- * predefinedRoles/collaborate
- * predefinedRoles/edit
- * predefinedRoles/manage-users
+ * predefinedRoles/viewer
+ * predefinedRoles/analyst
+ * predefinedRoles/editor
+ * predefinedRoles/admin
+ * predefinedRoles/no-cost-data
+ * predefinedRoles/no-revenue-data
* Excludes roles that are inherited from a higher-level entity, group,
* or organization admin role.
* A UserLink that is updated to have an empty list of direct_roles will be
diff --git a/AnalyticsAdmin/src/V1alpha/WebDataStream.php b/AnalyticsAdmin/src/V1alpha/WebDataStream.php
index 8d653f83118d..7c8a30c5b325 100644
--- a/AnalyticsAdmin/src/V1alpha/WebDataStream.php
+++ b/AnalyticsAdmin/src/V1alpha/WebDataStream.php
@@ -58,7 +58,7 @@ class WebDataStream extends \Google\Protobuf\Internal\Message
private $default_uri = '';
/**
* Required. Human-readable display name for the Data Stream.
- * The max allowed display name length is 100 UTF-16 code units.
+ * The max allowed display name length is 255 UTF-16 code units.
*
* Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
*/
@@ -89,7 +89,7 @@ class WebDataStream extends \Google\Protobuf\Internal\Message
* Example: "http://www.google.com", "https://www.google.com"
* @type string $display_name
* Required. Human-readable display name for the Data Stream.
- * The max allowed display name length is 100 UTF-16 code units.
+ * The max allowed display name length is 255 UTF-16 code units.
* }
*/
public function __construct($data = NULL) {
@@ -191,7 +191,7 @@ public function setFirebaseAppId($var)
*/
public function getCreateTime()
{
- return isset($this->create_time) ? $this->create_time : null;
+ return $this->create_time;
}
public function hasCreateTime()
@@ -227,7 +227,7 @@ public function setCreateTime($var)
*/
public function getUpdateTime()
{
- return isset($this->update_time) ? $this->update_time : null;
+ return $this->update_time;
}
public function hasUpdateTime()
@@ -285,7 +285,7 @@ public function setDefaultUri($var)
/**
* Required. Human-readable display name for the Data Stream.
- * The max allowed display name length is 100 UTF-16 code units.
+ * The max allowed display name length is 255 UTF-16 code units.
*
* Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
* @return string
@@ -297,7 +297,7 @@ public function getDisplayName()
/**
* Required. Human-readable display name for the Data Stream.
- * The max allowed display name length is 100 UTF-16 code units.
+ * The max allowed display name length is 255 UTF-16 code units.
*
* Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = REQUIRED];
* @param string $var
diff --git a/AnalyticsAdmin/src/V1alpha/gapic_metadata.json b/AnalyticsAdmin/src/V1alpha/gapic_metadata.json
index b2e1bde44089..255a3278d511 100644
--- a/AnalyticsAdmin/src/V1alpha/gapic_metadata.json
+++ b/AnalyticsAdmin/src/V1alpha/gapic_metadata.json
@@ -10,6 +10,16 @@
"grpc": {
"libraryClient": "AnalyticsAdminServiceGapicClient",
"rpcs": {
+ "AcknowledgeUserDataCollection": {
+ "methods": [
+ "acknowledgeUserDataCollection"
+ ]
+ },
+ "ApproveDisplayVideo360AdvertiserLinkProposal": {
+ "methods": [
+ "approveDisplayVideo360AdvertiserLinkProposal"
+ ]
+ },
"ArchiveCustomDimension": {
"methods": [
"archiveCustomDimension"
@@ -45,6 +55,11 @@
"batchUpdateUserLinks"
]
},
+ "CancelDisplayVideo360AdvertiserLinkProposal": {
+ "methods": [
+ "cancelDisplayVideo360AdvertiserLinkProposal"
+ ]
+ },
"CreateConversionEvent": {
"methods": [
"createConversionEvent"
@@ -60,6 +75,21 @@
"createCustomMetric"
]
},
+ "CreateDataStream": {
+ "methods": [
+ "createDataStream"
+ ]
+ },
+ "CreateDisplayVideo360AdvertiserLink": {
+ "methods": [
+ "createDisplayVideo360AdvertiserLink"
+ ]
+ },
+ "CreateDisplayVideo360AdvertiserLinkProposal": {
+ "methods": [
+ "createDisplayVideo360AdvertiserLinkProposal"
+ ]
+ },
"CreateFirebaseLink": {
"methods": [
"createFirebaseLink"
@@ -105,6 +135,21 @@
"deleteConversionEvent"
]
},
+ "DeleteDataStream": {
+ "methods": [
+ "deleteDataStream"
+ ]
+ },
+ "DeleteDisplayVideo360AdvertiserLink": {
+ "methods": [
+ "deleteDisplayVideo360AdvertiserLink"
+ ]
+ },
+ "DeleteDisplayVideo360AdvertiserLinkProposal": {
+ "methods": [
+ "deleteDisplayVideo360AdvertiserLinkProposal"
+ ]
+ },
"DeleteFirebaseLink": {
"methods": [
"deleteFirebaseLink"
@@ -165,14 +210,29 @@
"getCustomMetric"
]
},
+ "GetDataRetentionSettings": {
+ "methods": [
+ "getDataRetentionSettings"
+ ]
+ },
"GetDataSharingSettings": {
"methods": [
"getDataSharingSettings"
]
},
- "GetEnhancedMeasurementSettings": {
+ "GetDataStream": {
+ "methods": [
+ "getDataStream"
+ ]
+ },
+ "GetDisplayVideo360AdvertiserLink": {
+ "methods": [
+ "getDisplayVideo360AdvertiserLink"
+ ]
+ },
+ "GetDisplayVideo360AdvertiserLinkProposal": {
"methods": [
- "getEnhancedMeasurementSettings"
+ "getDisplayVideo360AdvertiserLinkProposal"
]
},
"GetGlobalSiteTag": {
@@ -240,6 +300,21 @@
"listCustomMetrics"
]
},
+ "ListDataStreams": {
+ "methods": [
+ "listDataStreams"
+ ]
+ },
+ "ListDisplayVideo360AdvertiserLinkProposals": {
+ "methods": [
+ "listDisplayVideo360AdvertiserLinkProposals"
+ ]
+ },
+ "ListDisplayVideo360AdvertiserLinks": {
+ "methods": [
+ "listDisplayVideo360AdvertiserLinks"
+ ]
+ },
"ListFirebaseLinks": {
"methods": [
"listFirebaseLinks"
@@ -305,14 +380,19 @@
"updateCustomMetric"
]
},
- "UpdateEnhancedMeasurementSettings": {
+ "UpdateDataRetentionSettings": {
+ "methods": [
+ "updateDataRetentionSettings"
+ ]
+ },
+ "UpdateDataStream": {
"methods": [
- "updateEnhancedMeasurementSettings"
+ "updateDataStream"
]
},
- "UpdateFirebaseLink": {
+ "UpdateDisplayVideo360AdvertiserLink": {
"methods": [
- "updateFirebaseLink"
+ "updateDisplayVideo360AdvertiserLink"
]
},
"UpdateGoogleAdsLink": {
diff --git a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json
index 673658b440e3..b76dd4b721f5 100644
--- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json
+++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json
@@ -39,6 +39,16 @@
}
},
"methods": {
+ "AcknowledgeUserDataCollection": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "ApproveDisplayVideo360AdvertiserLinkProposal": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"ArchiveCustomDimension": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -74,6 +84,11 @@
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
+ "CancelDisplayVideo360AdvertiserLinkProposal": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"CreateConversionEvent": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -89,6 +104,21 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "CreateDataStream": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "CreateDisplayVideo360AdvertiserLink": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "CreateDisplayVideo360AdvertiserLinkProposal": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"CreateFirebaseLink": {
"timeout_millis": 60000,
"retry_codes_name": "no_retry_1_codes",
@@ -134,6 +164,21 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "DeleteDataStream": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "DeleteDisplayVideo360AdvertiserLink": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "DeleteDisplayVideo360AdvertiserLinkProposal": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"DeleteFirebaseLink": {
"timeout_millis": 60000,
"retry_codes_name": "no_retry_1_codes",
@@ -194,15 +239,30 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "GetDataRetentionSettings": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"GetDataSharingSettings": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
- "GetEnhancedMeasurementSettings": {
+ "GetDataStream": {
"timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "GetDisplayVideo360AdvertiserLink": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "GetDisplayVideo360AdvertiserLinkProposal": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
},
"GetGlobalSiteTag": {
"timeout_millis": 60000,
@@ -269,6 +329,21 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "ListDataStreams": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "ListDisplayVideo360AdvertiserLinkProposals": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "ListDisplayVideo360AdvertiserLinks": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"ListFirebaseLinks": {
"timeout_millis": 60000,
"retry_codes_name": "no_retry_1_codes",
@@ -334,15 +409,20 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
- "UpdateEnhancedMeasurementSettings": {
+ "UpdateDataRetentionSettings": {
"timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
},
- "UpdateFirebaseLink": {
+ "UpdateDataStream": {
"timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "UpdateDisplayVideo360AdvertiserLink": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
},
"UpdateGoogleAdsLink": {
"timeout_millis": 60000,
diff --git a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php
index 7a9c26e6db95..9d17c30f1820 100644
--- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php
+++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php
@@ -73,6 +73,36 @@
'resourcesGetMethod' => 'getCustomMetrics',
],
],
+ 'ListDataStreams' => [
+ 'pageStreaming' => [
+ 'requestPageTokenGetMethod' => 'getPageToken',
+ 'requestPageTokenSetMethod' => 'setPageToken',
+ 'requestPageSizeGetMethod' => 'getPageSize',
+ 'requestPageSizeSetMethod' => 'setPageSize',
+ 'responsePageTokenGetMethod' => 'getNextPageToken',
+ 'resourcesGetMethod' => 'getDataStreams',
+ ],
+ ],
+ 'ListDisplayVideo360AdvertiserLinkProposals' => [
+ 'pageStreaming' => [
+ 'requestPageTokenGetMethod' => 'getPageToken',
+ 'requestPageTokenSetMethod' => 'setPageToken',
+ 'requestPageSizeGetMethod' => 'getPageSize',
+ 'requestPageSizeSetMethod' => 'setPageSize',
+ 'responsePageTokenGetMethod' => 'getNextPageToken',
+ 'resourcesGetMethod' => 'getDisplayVideo360AdvertiserLinkProposals',
+ ],
+ ],
+ 'ListDisplayVideo360AdvertiserLinks' => [
+ 'pageStreaming' => [
+ 'requestPageTokenGetMethod' => 'getPageToken',
+ 'requestPageTokenSetMethod' => 'setPageToken',
+ 'requestPageSizeGetMethod' => 'getPageSize',
+ 'requestPageSizeSetMethod' => 'setPageSize',
+ 'responsePageTokenGetMethod' => 'getNextPageToken',
+ 'resourcesGetMethod' => 'getDisplayVideo360AdvertiserLinks',
+ ],
+ ],
'ListFirebaseLinks' => [
'pageStreaming' => [
'requestPageTokenGetMethod' => 'getPageToken',
diff --git a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php
index fbc74b592d88..475e5260520b 100644
--- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php
+++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php
@@ -3,6 +3,30 @@
return [
'interfaces' => [
'google.analytics.admin.v1alpha.AnalyticsAdminService' => [
+ 'AcknowledgeUserDataCollection' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/{property=properties/*}:acknowledgeUserDataCollection',
+ 'body' => '*',
+ 'placeholders' => [
+ 'property' => [
+ 'getters' => [
+ 'getProperty',
+ ],
+ ],
+ ],
+ ],
+ 'ApproveDisplayVideo360AdvertiserLinkProposal' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve',
+ 'body' => '*',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'ArchiveCustomDimension' => [
'method' => 'post',
'uriTemplate' => '/v1alpha/{name=properties/*/customDimensions/*}:archive',
@@ -120,6 +144,18 @@
],
],
],
+ 'CancelDisplayVideo360AdvertiserLinkProposal' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel',
+ 'body' => '*',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'CreateConversionEvent' => [
'method' => 'post',
'uriTemplate' => '/v1alpha/{parent=properties/*}/conversionEvents',
@@ -156,6 +192,42 @@
],
],
],
+ 'CreateDataStream' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*}/dataStreams',
+ 'body' => 'data_stream',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
+ 'CreateDisplayVideo360AdvertiserLink' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks',
+ 'body' => 'display_video_360_advertiser_link',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
+ 'CreateDisplayVideo360AdvertiserLinkProposal' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals',
+ 'body' => 'display_video_360_advertiser_link_proposal',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'CreateFirebaseLink' => [
'method' => 'post',
'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks',
@@ -273,6 +345,39 @@
],
],
],
+ 'DeleteDataStream' => [
+ 'method' => 'delete',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
+ 'DeleteDisplayVideo360AdvertiserLink' => [
+ 'method' => 'delete',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
+ 'DeleteDisplayVideo360AdvertiserLinkProposal' => [
+ 'method' => 'delete',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'DeleteFirebaseLink' => [
'method' => 'delete',
'uriTemplate' => '/v1alpha/{name=properties/*/firebaseLinks/*}',
@@ -421,6 +526,17 @@
],
],
],
+ 'GetDataRetentionSettings' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/dataRetentionSettings}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'GetDataSharingSettings' => [
'method' => 'get',
'uriTemplate' => '/v1alpha/{name=accounts/*/dataSharingSettings}',
@@ -432,9 +548,31 @@
],
],
],
- 'GetEnhancedMeasurementSettings' => [
+ 'GetDataStream' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
+ 'GetDisplayVideo360AdvertiserLink' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
+ 'GetDisplayVideo360AdvertiserLinkProposal' => [
'method' => 'get',
- 'uriTemplate' => '/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}',
'placeholders' => [
'name' => [
'getters' => [
@@ -588,6 +726,39 @@
],
],
],
+ 'ListDataStreams' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*}/dataStreams',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
+ 'ListDisplayVideo360AdvertiserLinkProposals' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
+ 'ListDisplayVideo360AdvertiserLinks' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'ListFirebaseLinks' => [
'method' => 'get',
'uriTemplate' => '/v1alpha/{parent=properties/*}/firebaseLinks',
@@ -645,6 +816,9 @@
'ListProperties' => [
'method' => 'get',
'uriTemplate' => '/v1alpha/properties',
+ 'queryParams' => [
+ 'filter',
+ ],
],
'ListUserLinks' => [
'method' => 'get',
@@ -703,6 +877,9 @@
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
'UpdateAndroidAppDataStream' => [
'method' => 'patch',
@@ -716,6 +893,9 @@
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
'UpdateCustomDimension' => [
'method' => 'patch',
@@ -729,6 +909,9 @@
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
'UpdateCustomMetric' => [
'method' => 'patch',
@@ -742,32 +925,57 @@
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
- 'UpdateEnhancedMeasurementSettings' => [
+ 'UpdateDataRetentionSettings' => [
'method' => 'patch',
- 'uriTemplate' => '/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}',
- 'body' => 'enhanced_measurement_settings',
+ 'uriTemplate' => '/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}',
+ 'body' => 'data_retention_settings',
'placeholders' => [
- 'enhanced_measurement_settings.name' => [
+ 'data_retention_settings.name' => [
'getters' => [
- 'getEnhancedMeasurementSettings',
+ 'getDataRetentionSettings',
'getName',
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
- 'UpdateFirebaseLink' => [
+ 'UpdateDataStream' => [
'method' => 'patch',
- 'uriTemplate' => '/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}',
- 'body' => 'firebase_link',
+ 'uriTemplate' => '/v1alpha/{data_stream.name=properties/*/dataStreams/*}',
+ 'body' => 'data_stream',
'placeholders' => [
- 'firebase_link.name' => [
+ 'data_stream.name' => [
'getters' => [
- 'getFirebaseLink',
+ 'getDataStream',
'getName',
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
+ ],
+ 'UpdateDisplayVideo360AdvertiserLink' => [
+ 'method' => 'patch',
+ 'uriTemplate' => '/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}',
+ 'body' => 'display_video_360_advertiser_link',
+ 'placeholders' => [
+ 'display_video_360_advertiser_link.name' => [
+ 'getters' => [
+ 'getDisplayVideo360AdvertiserLink',
+ 'getName',
+ ],
+ ],
+ ],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
'UpdateGoogleAdsLink' => [
'method' => 'patch',
@@ -781,6 +989,9 @@
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
'UpdateGoogleSignalsSettings' => [
'method' => 'patch',
@@ -794,6 +1005,9 @@
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
'UpdateIosAppDataStream' => [
'method' => 'patch',
@@ -807,6 +1021,9 @@
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
'UpdateMeasurementProtocolSecret' => [
'method' => 'patch',
@@ -845,6 +1062,9 @@
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
'UpdateUserLink' => [
'method' => 'patch',
@@ -878,6 +1098,9 @@
],
],
],
+ 'queryParams' => [
+ 'update_mask',
+ ],
],
],
],
diff --git a/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php b/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php
index cf0ce6041d06..aae5676c8151 100644
--- a/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php
+++ b/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php
@@ -25,9 +25,11 @@
use Google\Analytics\Admin\V1alpha\Account;
use Google\Analytics\Admin\V1alpha\AccountSummary;
+use Google\Analytics\Admin\V1alpha\AcknowledgeUserDataCollectionResponse;
use Google\Analytics\Admin\V1alpha\AnalyticsAdminServiceClient;
-use Google\Analytics\Admin\V1alpha\AndroidAppDataStream;
+use Google\Analytics\Admin\V1alpha\AndroidAppDataStream;
+use Google\Analytics\Admin\V1alpha\ApproveDisplayVideo360AdvertiserLinkProposalResponse;
use Google\Analytics\Admin\V1alpha\AuditUserLink;
use Google\Analytics\Admin\V1alpha\AuditUserLinksResponse;
use Google\Analytics\Admin\V1alpha\BatchCreateUserLinksResponse;
@@ -40,8 +42,12 @@
use Google\Analytics\Admin\V1alpha\CustomMetric;
use Google\Analytics\Admin\V1alpha\CustomMetric\MeasurementUnit;
use Google\Analytics\Admin\V1alpha\CustomMetric\MetricScope;
+use Google\Analytics\Admin\V1alpha\DataRetentionSettings;
use Google\Analytics\Admin\V1alpha\DataSharingSettings;
-use Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings;
+use Google\Analytics\Admin\V1alpha\DataStream;
+use Google\Analytics\Admin\V1alpha\DataStream\DataStreamType;
+use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink;
+use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal;
use Google\Analytics\Admin\V1alpha\FirebaseLink;
use Google\Analytics\Admin\V1alpha\GlobalSiteTag;
use Google\Analytics\Admin\V1alpha\GoogleAdsLink;
@@ -53,6 +59,9 @@
use Google\Analytics\Admin\V1alpha\ListConversionEventsResponse;
use Google\Analytics\Admin\V1alpha\ListCustomDimensionsResponse;
use Google\Analytics\Admin\V1alpha\ListCustomMetricsResponse;
+use Google\Analytics\Admin\V1alpha\ListDataStreamsResponse;
+use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsResponse;
+use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse;
use Google\Analytics\Admin\V1alpha\ListFirebaseLinksResponse;
use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksResponse;
use Google\Analytics\Admin\V1alpha\ListIosAppDataStreamsResponse;
@@ -109,6 +118,134 @@ private function createClient(array $options = [])
return new AnalyticsAdminServiceClient($options);
}
+ /**
+ * @test
+ */
+ public function acknowledgeUserDataCollectionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new AcknowledgeUserDataCollectionResponse();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedProperty = $client->propertyName('[PROPERTY]');
+ $acknowledgement = 'acknowledgement1769490938';
+ $response = $client->acknowledgeUserDataCollection($formattedProperty, $acknowledgement);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection', $actualFuncCall);
+ $actualValue = $actualRequestObject->getProperty();
+ $this->assertProtobufEquals($formattedProperty, $actualValue);
+ $actualValue = $actualRequestObject->getAcknowledgement();
+ $this->assertProtobufEquals($acknowledgement, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function acknowledgeUserDataCollectionExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedProperty = $client->propertyName('[PROPERTY]');
+ $acknowledgement = 'acknowledgement1769490938';
+ try {
+ $client->acknowledgeUserDataCollection($formattedProperty, $acknowledgement);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function approveDisplayVideo360AdvertiserLinkProposalTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new ApproveDisplayVideo360AdvertiserLinkProposalResponse();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
+ $response = $client->approveDisplayVideo360AdvertiserLinkProposal($formattedName);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function approveDisplayVideo360AdvertiserLinkProposalExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
+ try {
+ $client->approveDisplayVideo360AdvertiserLinkProposal($formattedName);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/**
* @test
*/
@@ -570,6 +707,76 @@ public function batchUpdateUserLinksExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /**
+ * @test
+ */
+ public function cancelDisplayVideo360AdvertiserLinkProposalTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name2 = 'name2-1052831874';
+ $advertiserId = 'advertiserId-127926097';
+ $advertiserDisplayName = 'advertiserDisplayName-674771332';
+ $validationEmail = 'validationEmail2105669718';
+ $expectedResponse = new DisplayVideo360AdvertiserLinkProposal();
+ $expectedResponse->setName($name2);
+ $expectedResponse->setAdvertiserId($advertiserId);
+ $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName);
+ $expectedResponse->setValidationEmail($validationEmail);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
+ $response = $client->cancelDisplayVideo360AdvertiserLinkProposal($formattedName);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function cancelDisplayVideo360AdvertiserLinkProposalExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
+ try {
+ $client->cancelDisplayVideo360AdvertiserLinkProposal($formattedName);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/**
* @test
*/
@@ -583,11 +790,13 @@ public function createConversionEventTest()
// Mock response
$name = 'name3373707';
$eventName = 'eventName984174864';
- $isDeletable = false;
+ $deletable = true;
+ $custom = false;
$expectedResponse = new ConversionEvent();
$expectedResponse->setName($name);
$expectedResponse->setEventName($eventName);
- $expectedResponse->setIsDeletable($isDeletable);
+ $expectedResponse->setDeletable($deletable);
+ $expectedResponse->setCustom($custom);
$transport->addResponse($expectedResponse);
// Mock request
$conversionEvent = new ConversionEvent();
@@ -823,7 +1032,7 @@ public function createCustomMetricExceptionTest()
/**
* @test
*/
- public function createFirebaseLinkTest()
+ public function createDataStreamTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -832,32 +1041,34 @@ public function createFirebaseLinkTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name = 'name3373707';
- $project = 'project-309310695';
- $expectedResponse = new FirebaseLink();
+ $displayName = 'displayName1615086568';
+ $expectedResponse = new DataStream();
$expectedResponse->setName($name);
- $expectedResponse->setProject($project);
+ $expectedResponse->setDisplayName($displayName);
$transport->addResponse($expectedResponse);
// Mock request
$formattedParent = $client->propertyName('[PROPERTY]');
- $firebaseLink = new FirebaseLink();
- $response = $client->createFirebaseLink($formattedParent, $firebaseLink);
+ $dataStream = new DataStream();
+ $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED;
+ $dataStream->setType($dataStreamType);
+ $response = $client->createDataStream($formattedParent, $dataStream);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream', $actualFuncCall);
$actualValue = $actualRequestObject->getParent();
$this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getFirebaseLink();
- $this->assertProtobufEquals($firebaseLink, $actualValue);
+ $actualValue = $actualRequestObject->getDataStream();
+ $this->assertProtobufEquals($dataStream, $actualValue);
$this->assertTrue($transport->isExhausted());
}
/**
* @test
*/
- public function createFirebaseLinkExceptionTest()
+ public function createDataStreamExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -876,9 +1087,11 @@ public function createFirebaseLinkExceptionTest()
$transport->addResponse(null, $status);
// Mock request
$formattedParent = $client->propertyName('[PROPERTY]');
- $firebaseLink = new FirebaseLink();
+ $dataStream = new DataStream();
+ $dataStreamType = DataStreamType::DATA_STREAM_TYPE_UNSPECIFIED;
+ $dataStream->setType($dataStreamType);
try {
- $client->createFirebaseLink($formattedParent, $firebaseLink);
+ $client->createDataStream($formattedParent, $dataStream);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -893,7 +1106,7 @@ public function createFirebaseLinkExceptionTest()
/**
* @test
*/
- public function createGoogleAdsLinkTest()
+ public function createDisplayVideo360AdvertiserLinkTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -902,36 +1115,34 @@ public function createGoogleAdsLinkTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name = 'name3373707';
- $customerId = 'customerId-1772061412';
- $canManageClients = false;
- $emailAddress = 'emailAddress-769510831';
- $expectedResponse = new GoogleAdsLink();
+ $advertiserId = 'advertiserId-127926097';
+ $advertiserDisplayName = 'advertiserDisplayName-674771332';
+ $expectedResponse = new DisplayVideo360AdvertiserLink();
$expectedResponse->setName($name);
- $expectedResponse->setCustomerId($customerId);
- $expectedResponse->setCanManageClients($canManageClients);
- $expectedResponse->setEmailAddress($emailAddress);
+ $expectedResponse->setAdvertiserId($advertiserId);
+ $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName);
$transport->addResponse($expectedResponse);
// Mock request
$formattedParent = $client->propertyName('[PROPERTY]');
- $googleAdsLink = new GoogleAdsLink();
- $response = $client->createGoogleAdsLink($formattedParent, $googleAdsLink);
+ $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink();
+ $response = $client->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink', $actualFuncCall);
$actualValue = $actualRequestObject->getParent();
$this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getGoogleAdsLink();
- $this->assertProtobufEquals($googleAdsLink, $actualValue);
+ $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLink();
+ $this->assertProtobufEquals($displayVideo360AdvertiserLink, $actualValue);
$this->assertTrue($transport->isExhausted());
}
/**
* @test
*/
- public function createGoogleAdsLinkExceptionTest()
+ public function createDisplayVideo360AdvertiserLinkExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -950,9 +1161,9 @@ public function createGoogleAdsLinkExceptionTest()
$transport->addResponse(null, $status);
// Mock request
$formattedParent = $client->propertyName('[PROPERTY]');
- $googleAdsLink = new GoogleAdsLink();
+ $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink();
try {
- $client->createGoogleAdsLink($formattedParent, $googleAdsLink);
+ $client->createDisplayVideo360AdvertiserLink($formattedParent, $displayVideo360AdvertiserLink);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -967,7 +1178,7 @@ public function createGoogleAdsLinkExceptionTest()
/**
* @test
*/
- public function createMeasurementProtocolSecretTest()
+ public function createDisplayVideo360AdvertiserLinkProposalTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -976,36 +1187,36 @@ public function createMeasurementProtocolSecretTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name = 'name3373707';
- $displayName = 'displayName1615086568';
- $secretValue = 'secretValue1322942242';
- $expectedResponse = new MeasurementProtocolSecret();
+ $advertiserId = 'advertiserId-127926097';
+ $advertiserDisplayName = 'advertiserDisplayName-674771332';
+ $validationEmail = 'validationEmail2105669718';
+ $expectedResponse = new DisplayVideo360AdvertiserLinkProposal();
$expectedResponse->setName($name);
- $expectedResponse->setDisplayName($displayName);
- $expectedResponse->setSecretValue($secretValue);
+ $expectedResponse->setAdvertiserId($advertiserId);
+ $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName);
+ $expectedResponse->setValidationEmail($validationEmail);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]');
- $measurementProtocolSecret = new MeasurementProtocolSecret();
- $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681';
- $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName);
- $response = $client->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret);
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal();
+ $response = $client->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal', $actualFuncCall);
$actualValue = $actualRequestObject->getParent();
$this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getMeasurementProtocolSecret();
- $this->assertProtobufEquals($measurementProtocolSecret, $actualValue);
+ $actualValue = $actualRequestObject->getDisplayVideo360AdvertiserLinkProposal();
+ $this->assertProtobufEquals($displayVideo360AdvertiserLinkProposal, $actualValue);
$this->assertTrue($transport->isExhausted());
}
/**
* @test
*/
- public function createMeasurementProtocolSecretExceptionTest()
+ public function createDisplayVideo360AdvertiserLinkProposalExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1023,12 +1234,10 @@ public function createMeasurementProtocolSecretExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]');
- $measurementProtocolSecret = new MeasurementProtocolSecret();
- $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681';
- $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName);
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal();
try {
- $client->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret);
+ $client->createDisplayVideo360AdvertiserLinkProposal($formattedParent, $displayVideo360AdvertiserLinkProposal);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -1043,7 +1252,7 @@ public function createMeasurementProtocolSecretExceptionTest()
/**
* @test
*/
- public function createPropertyTest()
+ public function createFirebaseLinkTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1052,39 +1261,32 @@ public function createPropertyTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name = 'name3373707';
- $parent = 'parent-995424086';
- $displayName = 'displayName1615086568';
- $timeZone = 'timeZone36848094';
- $currencyCode = 'currencyCode1108728155';
- $expectedResponse = new Property();
+ $project = 'project-309310695';
+ $expectedResponse = new FirebaseLink();
$expectedResponse->setName($name);
- $expectedResponse->setParent($parent);
- $expectedResponse->setDisplayName($displayName);
- $expectedResponse->setTimeZone($timeZone);
- $expectedResponse->setCurrencyCode($currencyCode);
+ $expectedResponse->setProject($project);
$transport->addResponse($expectedResponse);
// Mock request
- $property = new Property();
- $propertyDisplayName = 'propertyDisplayName-1254483624';
- $property->setDisplayName($propertyDisplayName);
- $propertyTimeZone = 'propertyTimeZone-1600366322';
- $property->setTimeZone($propertyTimeZone);
- $response = $client->createProperty($property);
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ $firebaseLink = new FirebaseLink();
+ $response = $client->createFirebaseLink($formattedParent, $firebaseLink);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty', $actualFuncCall);
- $actualValue = $actualRequestObject->getProperty();
- $this->assertProtobufEquals($property, $actualValue);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $actualValue = $actualRequestObject->getFirebaseLink();
+ $this->assertProtobufEquals($firebaseLink, $actualValue);
$this->assertTrue($transport->isExhausted());
}
/**
* @test
*/
- public function createPropertyExceptionTest()
+ public function createFirebaseLinkExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1102,12 +1304,241 @@ public function createPropertyExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $property = new Property();
- $propertyDisplayName = 'propertyDisplayName-1254483624';
- $property->setDisplayName($propertyDisplayName);
- $propertyTimeZone = 'propertyTimeZone-1600366322';
- $property->setTimeZone($propertyTimeZone);
- try {
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ $firebaseLink = new FirebaseLink();
+ try {
+ $client->createFirebaseLink($formattedParent, $firebaseLink);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function createGoogleAdsLinkTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $customerId = 'customerId-1772061412';
+ $canManageClients = false;
+ $creatorEmailAddress = 'creatorEmailAddress-1491810434';
+ $expectedResponse = new GoogleAdsLink();
+ $expectedResponse->setName($name);
+ $expectedResponse->setCustomerId($customerId);
+ $expectedResponse->setCanManageClients($canManageClients);
+ $expectedResponse->setCreatorEmailAddress($creatorEmailAddress);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ $googleAdsLink = new GoogleAdsLink();
+ $response = $client->createGoogleAdsLink($formattedParent, $googleAdsLink);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $actualValue = $actualRequestObject->getGoogleAdsLink();
+ $this->assertProtobufEquals($googleAdsLink, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function createGoogleAdsLinkExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ $googleAdsLink = new GoogleAdsLink();
+ try {
+ $client->createGoogleAdsLink($formattedParent, $googleAdsLink);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function createMeasurementProtocolSecretTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $displayName = 'displayName1615086568';
+ $secretValue = 'secretValue1322942242';
+ $expectedResponse = new MeasurementProtocolSecret();
+ $expectedResponse->setName($name);
+ $expectedResponse->setDisplayName($displayName);
+ $expectedResponse->setSecretValue($secretValue);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]');
+ $measurementProtocolSecret = new MeasurementProtocolSecret();
+ $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681';
+ $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName);
+ $response = $client->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $actualValue = $actualRequestObject->getMeasurementProtocolSecret();
+ $this->assertProtobufEquals($measurementProtocolSecret, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function createMeasurementProtocolSecretExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $client->webDataStreamName('[PROPERTY]', '[WEB_DATA_STREAM]');
+ $measurementProtocolSecret = new MeasurementProtocolSecret();
+ $measurementProtocolSecretDisplayName = 'measurementProtocolSecretDisplayName1279116681';
+ $measurementProtocolSecret->setDisplayName($measurementProtocolSecretDisplayName);
+ try {
+ $client->createMeasurementProtocolSecret($formattedParent, $measurementProtocolSecret);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function createPropertyTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $parent = 'parent-995424086';
+ $displayName = 'displayName1615086568';
+ $timeZone = 'timeZone36848094';
+ $currencyCode = 'currencyCode1108728155';
+ $account = 'account-1177318867';
+ $expectedResponse = new Property();
+ $expectedResponse->setName($name);
+ $expectedResponse->setParent($parent);
+ $expectedResponse->setDisplayName($displayName);
+ $expectedResponse->setTimeZone($timeZone);
+ $expectedResponse->setCurrencyCode($currencyCode);
+ $expectedResponse->setAccount($account);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $property = new Property();
+ $propertyDisplayName = 'propertyDisplayName-1254483624';
+ $property->setDisplayName($propertyDisplayName);
+ $propertyTimeZone = 'propertyTimeZone-1600366322';
+ $property->setTimeZone($propertyTimeZone);
+ $response = $client->createProperty($property);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty', $actualFuncCall);
+ $actualValue = $actualRequestObject->getProperty();
+ $this->assertProtobufEquals($property, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function createPropertyExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $property = new Property();
+ $propertyDisplayName = 'propertyDisplayName-1254483624';
+ $property->setDisplayName($propertyDisplayName);
+ $propertyTimeZone = 'propertyTimeZone-1600366322';
+ $property->setTimeZone($propertyTimeZone);
+ try {
$client->createProperty($property);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
@@ -1138,26 +1569,229 @@ public function createUserLinkTest()
$expectedResponse->setEmailAddress($emailAddress);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->accountName('[ACCOUNT]');
- $userLink = new UserLink();
- $response = $client->createUserLink($formattedParent, $userLink);
- $this->assertEquals($expectedResponse, $response);
+ $formattedParent = $client->accountName('[ACCOUNT]');
+ $userLink = new UserLink();
+ $response = $client->createUserLink($formattedParent, $userLink);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateUserLink', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $actualValue = $actualRequestObject->getUserLink();
+ $this->assertProtobufEquals($userLink, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function createUserLinkExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $client->accountName('[ACCOUNT]');
+ $userLink = new UserLink();
+ try {
+ $client->createUserLink($formattedParent, $userLink);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function createWebDataStreamTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $measurementId = 'measurementId-223204226';
+ $firebaseAppId = 'firebaseAppId605863217';
+ $defaultUri = 'defaultUri-436616594';
+ $displayName = 'displayName1615086568';
+ $expectedResponse = new WebDataStream();
+ $expectedResponse->setName($name);
+ $expectedResponse->setMeasurementId($measurementId);
+ $expectedResponse->setFirebaseAppId($firebaseAppId);
+ $expectedResponse->setDefaultUri($defaultUri);
+ $expectedResponse->setDisplayName($displayName);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $webDataStream = new WebDataStream();
+ $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169';
+ $webDataStream->setDisplayName($webDataStreamDisplayName);
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ $response = $client->createWebDataStream($webDataStream, $formattedParent);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateWebDataStream', $actualFuncCall);
+ $actualValue = $actualRequestObject->getWebDataStream();
+ $this->assertProtobufEquals($webDataStream, $actualValue);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function createWebDataStreamExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $webDataStream = new WebDataStream();
+ $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169';
+ $webDataStream->setDisplayName($webDataStreamDisplayName);
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ try {
+ $client->createWebDataStream($webDataStream, $formattedParent);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function deleteAccountTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new GPBEmpty();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $client->accountName('[ACCOUNT]');
+ $client->deleteAccount($formattedName);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function deleteAccountExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $client->accountName('[ACCOUNT]');
+ try {
+ $client->deleteAccount($formattedName);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function deleteAndroidAppDataStreamTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new GPBEmpty();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]');
+ $client->deleteAndroidAppDataStream($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateUserLink', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getUserLink();
- $this->assertProtobufEquals($userLink, $actualValue);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAndroidAppDataStream', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
}
/**
* @test
*/
- public function createUserLinkExceptionTest()
+ public function deleteAndroidAppDataStreamExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1175,10 +1809,9 @@ public function createUserLinkExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->accountName('[ACCOUNT]');
- $userLink = new UserLink();
+ $formattedName = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]');
try {
- $client->createUserLink($formattedParent, $userLink);
+ $client->deleteAndroidAppDataStream($formattedName);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -1193,7 +1826,7 @@ public function createUserLinkExceptionTest()
/**
* @test
*/
- public function createWebDataStreamTest()
+ public function deleteConversionEventTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1201,41 +1834,25 @@ public function createWebDataStreamTest()
]);
$this->assertTrue($transport->isExhausted());
// Mock response
- $name = 'name3373707';
- $measurementId = 'measurementId-223204226';
- $firebaseAppId = 'firebaseAppId605863217';
- $defaultUri = 'defaultUri-436616594';
- $displayName = 'displayName1615086568';
- $expectedResponse = new WebDataStream();
- $expectedResponse->setName($name);
- $expectedResponse->setMeasurementId($measurementId);
- $expectedResponse->setFirebaseAppId($firebaseAppId);
- $expectedResponse->setDefaultUri($defaultUri);
- $expectedResponse->setDisplayName($displayName);
+ $expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $webDataStream = new WebDataStream();
- $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169';
- $webDataStream->setDisplayName($webDataStreamDisplayName);
- $formattedParent = $client->propertyName('[PROPERTY]');
- $response = $client->createWebDataStream($webDataStream, $formattedParent);
- $this->assertEquals($expectedResponse, $response);
+ $formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]');
+ $client->deleteConversionEvent($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateWebDataStream', $actualFuncCall);
- $actualValue = $actualRequestObject->getWebDataStream();
- $this->assertProtobufEquals($webDataStream, $actualValue);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
}
/**
* @test
*/
- public function createWebDataStreamExceptionTest()
+ public function deleteConversionEventExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1253,12 +1870,9 @@ public function createWebDataStreamExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $webDataStream = new WebDataStream();
- $webDataStreamDisplayName = 'webDataStreamDisplayName-1607829169';
- $webDataStream->setDisplayName($webDataStreamDisplayName);
- $formattedParent = $client->propertyName('[PROPERTY]');
+ $formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]');
try {
- $client->createWebDataStream($webDataStream, $formattedParent);
+ $client->deleteConversionEvent($formattedName);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -1273,7 +1887,7 @@ public function createWebDataStreamExceptionTest()
/**
* @test
*/
- public function deleteAccountTest()
+ public function deleteDataStreamTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1284,13 +1898,13 @@ public function deleteAccountTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->accountName('[ACCOUNT]');
- $client->deleteAccount($formattedName);
+ $formattedName = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $client->deleteDataStream($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream', $actualFuncCall);
$actualValue = $actualRequestObject->getName();
$this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
@@ -1299,7 +1913,7 @@ public function deleteAccountTest()
/**
* @test
*/
- public function deleteAccountExceptionTest()
+ public function deleteDataStreamExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1317,9 +1931,9 @@ public function deleteAccountExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->accountName('[ACCOUNT]');
+ $formattedName = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
try {
- $client->deleteAccount($formattedName);
+ $client->deleteDataStream($formattedName);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -1334,7 +1948,7 @@ public function deleteAccountExceptionTest()
/**
* @test
*/
- public function deleteAndroidAppDataStreamTest()
+ public function deleteDisplayVideo360AdvertiserLinkTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1345,13 +1959,13 @@ public function deleteAndroidAppDataStreamTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]');
- $client->deleteAndroidAppDataStream($formattedName);
+ $formattedName = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]');
+ $client->deleteDisplayVideo360AdvertiserLink($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAndroidAppDataStream', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink', $actualFuncCall);
$actualValue = $actualRequestObject->getName();
$this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
@@ -1360,7 +1974,7 @@ public function deleteAndroidAppDataStreamTest()
/**
* @test
*/
- public function deleteAndroidAppDataStreamExceptionTest()
+ public function deleteDisplayVideo360AdvertiserLinkExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1378,9 +1992,9 @@ public function deleteAndroidAppDataStreamExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->androidAppDataStreamName('[PROPERTY]', '[ANDROID_APP_DATA_STREAM]');
+ $formattedName = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]');
try {
- $client->deleteAndroidAppDataStream($formattedName);
+ $client->deleteDisplayVideo360AdvertiserLink($formattedName);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -1395,7 +2009,7 @@ public function deleteAndroidAppDataStreamExceptionTest()
/**
* @test
*/
- public function deleteConversionEventTest()
+ public function deleteDisplayVideo360AdvertiserLinkProposalTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1406,13 +2020,13 @@ public function deleteConversionEventTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]');
- $client->deleteConversionEvent($formattedName);
+ $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
+ $client->deleteDisplayVideo360AdvertiserLinkProposal($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal', $actualFuncCall);
$actualValue = $actualRequestObject->getName();
$this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
@@ -1421,7 +2035,7 @@ public function deleteConversionEventTest()
/**
* @test
*/
- public function deleteConversionEventExceptionTest()
+ public function deleteDisplayVideo360AdvertiserLinkProposalExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -1439,9 +2053,9 @@ public function deleteConversionEventExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]');
+ $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
try {
- $client->deleteConversionEvent($formattedName);
+ $client->deleteDisplayVideo360AdvertiserLinkProposal($formattedName);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -1713,12 +2327,14 @@ public function deletePropertyTest()
$displayName = 'displayName1615086568';
$timeZone = 'timeZone36848094';
$currencyCode = 'currencyCode1108728155';
+ $account = 'account-1177318867';
$expectedResponse = new Property();
$expectedResponse->setName($name2);
$expectedResponse->setParent($parent);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setTimeZone($timeZone);
$expectedResponse->setCurrencyCode($currencyCode);
+ $expectedResponse->setAccount($account);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $client->propertyName('[PROPERTY]');
@@ -2044,11 +2660,13 @@ public function getConversionEventTest()
// Mock response
$name2 = 'name2-1052831874';
$eventName = 'eventName984174864';
- $isDeletable = false;
+ $deletable = true;
+ $custom = false;
$expectedResponse = new ConversionEvent();
$expectedResponse->setName($name2);
$expectedResponse->setEventName($eventName);
- $expectedResponse->setIsDeletable($isDeletable);
+ $expectedResponse->setDeletable($deletable);
+ $expectedResponse->setCustom($custom);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $client->conversionEventName('[PROPERTY]', '[CONVERSION_EVENT]');
@@ -2241,6 +2859,72 @@ public function getCustomMetricExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /**
+ * @test
+ */
+ public function getDataRetentionSettingsTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name2 = 'name2-1052831874';
+ $resetUserDataOnNewActivity = false;
+ $expectedResponse = new DataRetentionSettings();
+ $expectedResponse->setName($name2);
+ $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $client->dataRetentionSettingsName('[PROPERTY]');
+ $response = $client->getDataRetentionSettings($formattedName);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function getDataRetentionSettingsExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $client->dataRetentionSettingsName('[PROPERTY]');
+ try {
+ $client->getDataRetentionSettings($formattedName);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/**
* @test
*/
@@ -2274,7 +2958,141 @@ public function getDataSharingSettingsTest()
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function getDataSharingSettingsExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $client->dataSharingSettingsName('[ACCOUNT]');
+ try {
+ $client->getDataSharingSettings($formattedName);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function getDataStreamTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name2 = 'name2-1052831874';
+ $displayName = 'displayName1615086568';
+ $expectedResponse = new DataStream();
+ $expectedResponse->setName($name2);
+ $expectedResponse->setDisplayName($displayName);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $response = $client->getDataStream($formattedName);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function getDataStreamExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $client->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ try {
+ $client->getDataStream($formattedName);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function getDisplayVideo360AdvertiserLinkTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name2 = 'name2-1052831874';
+ $advertiserId = 'advertiserId-127926097';
+ $advertiserDisplayName = 'advertiserDisplayName-674771332';
+ $expectedResponse = new DisplayVideo360AdvertiserLink();
+ $expectedResponse->setName($name2);
+ $expectedResponse->setAdvertiserId($advertiserId);
+ $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]');
+ $response = $client->getDisplayVideo360AdvertiserLink($formattedName);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink', $actualFuncCall);
$actualValue = $actualRequestObject->getName();
$this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
@@ -2283,7 +3101,7 @@ public function getDataSharingSettingsTest()
/**
* @test
*/
- public function getDataSharingSettingsExceptionTest()
+ public function getDisplayVideo360AdvertiserLinkExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -2301,9 +3119,9 @@ public function getDataSharingSettingsExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->dataSharingSettingsName('[ACCOUNT]');
+ $formattedName = $client->displayVideo360AdvertiserLinkName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK]');
try {
- $client->getDataSharingSettings($formattedName);
+ $client->getDisplayVideo360AdvertiserLink($formattedName);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -2318,7 +3136,7 @@ public function getDataSharingSettingsExceptionTest()
/**
* @test
*/
- public function getEnhancedMeasurementSettingsTest()
+ public function getDisplayVideo360AdvertiserLinkProposalTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -2327,40 +3145,24 @@ public function getEnhancedMeasurementSettingsTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name2 = 'name2-1052831874';
- $streamEnabled = true;
- $pageViewsEnabled = true;
- $scrollsEnabled = true;
- $outboundClicksEnabled = true;
- $siteSearchEnabled = true;
- $videoEngagementEnabled = false;
- $fileDownloadsEnabled = true;
- $pageLoadsEnabled = false;
- $pageChangesEnabled = false;
- $searchQueryParameter = 'searchQueryParameter638048347';
- $uriQueryParameter = 'uriQueryParameter964636703';
- $expectedResponse = new EnhancedMeasurementSettings();
+ $advertiserId = 'advertiserId-127926097';
+ $advertiserDisplayName = 'advertiserDisplayName-674771332';
+ $validationEmail = 'validationEmail2105669718';
+ $expectedResponse = new DisplayVideo360AdvertiserLinkProposal();
$expectedResponse->setName($name2);
- $expectedResponse->setStreamEnabled($streamEnabled);
- $expectedResponse->setPageViewsEnabled($pageViewsEnabled);
- $expectedResponse->setScrollsEnabled($scrollsEnabled);
- $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled);
- $expectedResponse->setSiteSearchEnabled($siteSearchEnabled);
- $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled);
- $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled);
- $expectedResponse->setPageLoadsEnabled($pageLoadsEnabled);
- $expectedResponse->setPageChangesEnabled($pageChangesEnabled);
- $expectedResponse->setSearchQueryParameter($searchQueryParameter);
- $expectedResponse->setUriQueryParameter($uriQueryParameter);
+ $expectedResponse->setAdvertiserId($advertiserId);
+ $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName);
+ $expectedResponse->setValidationEmail($validationEmail);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->enhancedMeasurementSettingsName('[PROPERTY]', '[WEB_DATA_STREAM]');
- $response = $client->getEnhancedMeasurementSettings($formattedName);
+ $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
+ $response = $client->getDisplayVideo360AdvertiserLinkProposal($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal', $actualFuncCall);
$actualValue = $actualRequestObject->getName();
$this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
@@ -2369,7 +3171,7 @@ public function getEnhancedMeasurementSettingsTest()
/**
* @test
*/
- public function getEnhancedMeasurementSettingsExceptionTest()
+ public function getDisplayVideo360AdvertiserLinkProposalExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -2387,9 +3189,9 @@ public function getEnhancedMeasurementSettingsExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->enhancedMeasurementSettingsName('[PROPERTY]', '[WEB_DATA_STREAM]');
+ $formattedName = $client->displayVideo360AdvertiserLinkProposalName('[PROPERTY]', '[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]');
try {
- $client->getEnhancedMeasurementSettings($formattedName);
+ $client->getDisplayVideo360AdvertiserLinkProposal($formattedName);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -2685,12 +3487,14 @@ public function getPropertyTest()
$displayName = 'displayName1615086568';
$timeZone = 'timeZone36848094';
$currencyCode = 'currencyCode1108728155';
+ $account = 'account-1177318867';
$expectedResponse = new Property();
$expectedResponse->setName($name2);
$expectedResponse->setParent($parent);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setTimeZone($timeZone);
$expectedResponse->setCurrencyCode($currencyCode);
+ $expectedResponse->setAccount($account);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $client->propertyName('[PROPERTY]');
@@ -3299,6 +4103,222 @@ public function listCustomMetricsExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /**
+ * @test
+ */
+ public function listDataStreamsTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $nextPageToken = '';
+ $dataStreamsElement = new DataStream();
+ $dataStreams = [
+ $dataStreamsElement,
+ ];
+ $expectedResponse = new ListDataStreamsResponse();
+ $expectedResponse->setNextPageToken($nextPageToken);
+ $expectedResponse->setDataStreams($dataStreams);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ $response = $client->listDataStreams($formattedParent);
+ $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
+ $resources = iterator_to_array($response->iterateAllElements());
+ $this->assertSame(1, count($resources));
+ $this->assertEquals($expectedResponse->getDataStreams()[0], $resources[0]);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function listDataStreamsExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ try {
+ $client->listDataStreams($formattedParent);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function listDisplayVideo360AdvertiserLinkProposalsTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $nextPageToken = '';
+ $displayVideo360AdvertiserLinkProposalsElement = new DisplayVideo360AdvertiserLinkProposal();
+ $displayVideo360AdvertiserLinkProposals = [
+ $displayVideo360AdvertiserLinkProposalsElement,
+ ];
+ $expectedResponse = new ListDisplayVideo360AdvertiserLinkProposalsResponse();
+ $expectedResponse->setNextPageToken($nextPageToken);
+ $expectedResponse->setDisplayVideo360AdvertiserLinkProposals($displayVideo360AdvertiserLinkProposals);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ $response = $client->listDisplayVideo360AdvertiserLinkProposals($formattedParent);
+ $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
+ $resources = iterator_to_array($response->iterateAllElements());
+ $this->assertSame(1, count($resources));
+ $this->assertEquals($expectedResponse->getDisplayVideo360AdvertiserLinkProposals()[0], $resources[0]);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function listDisplayVideo360AdvertiserLinkProposalsExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ try {
+ $client->listDisplayVideo360AdvertiserLinkProposals($formattedParent);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function listDisplayVideo360AdvertiserLinksTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $nextPageToken = '';
+ $displayVideo360AdvertiserLinksElement = new DisplayVideo360AdvertiserLink();
+ $displayVideo360AdvertiserLinks = [
+ $displayVideo360AdvertiserLinksElement,
+ ];
+ $expectedResponse = new ListDisplayVideo360AdvertiserLinksResponse();
+ $expectedResponse->setNextPageToken($nextPageToken);
+ $expectedResponse->setDisplayVideo360AdvertiserLinks($displayVideo360AdvertiserLinks);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ $response = $client->listDisplayVideo360AdvertiserLinks($formattedParent);
+ $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
+ $resources = iterator_to_array($response->iterateAllElements());
+ $this->assertSame(1, count($resources));
+ $this->assertEquals($expectedResponse->getDisplayVideo360AdvertiserLinks()[0], $resources[0]);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function listDisplayVideo360AdvertiserLinksExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $client->propertyName('[PROPERTY]');
+ try {
+ $client->listDisplayVideo360AdvertiserLinks($formattedParent);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/**
* @test
*/
@@ -4230,7 +5250,7 @@ public function updateCustomMetricExceptionTest()
/**
* @test
*/
- public function updateEnhancedMeasurementSettingsTest()
+ public function updateDataRetentionSettingsTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -4239,45 +5259,23 @@ public function updateEnhancedMeasurementSettingsTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name = 'name3373707';
- $streamEnabled = true;
- $pageViewsEnabled = true;
- $scrollsEnabled = true;
- $outboundClicksEnabled = true;
- $siteSearchEnabled = true;
- $videoEngagementEnabled = false;
- $fileDownloadsEnabled = true;
- $pageLoadsEnabled = false;
- $pageChangesEnabled = false;
- $searchQueryParameter = 'searchQueryParameter638048347';
- $uriQueryParameter = 'uriQueryParameter964636703';
- $expectedResponse = new EnhancedMeasurementSettings();
+ $resetUserDataOnNewActivity = false;
+ $expectedResponse = new DataRetentionSettings();
$expectedResponse->setName($name);
- $expectedResponse->setStreamEnabled($streamEnabled);
- $expectedResponse->setPageViewsEnabled($pageViewsEnabled);
- $expectedResponse->setScrollsEnabled($scrollsEnabled);
- $expectedResponse->setOutboundClicksEnabled($outboundClicksEnabled);
- $expectedResponse->setSiteSearchEnabled($siteSearchEnabled);
- $expectedResponse->setVideoEngagementEnabled($videoEngagementEnabled);
- $expectedResponse->setFileDownloadsEnabled($fileDownloadsEnabled);
- $expectedResponse->setPageLoadsEnabled($pageLoadsEnabled);
- $expectedResponse->setPageChangesEnabled($pageChangesEnabled);
- $expectedResponse->setSearchQueryParameter($searchQueryParameter);
- $expectedResponse->setUriQueryParameter($uriQueryParameter);
+ $expectedResponse->setResetUserDataOnNewActivity($resetUserDataOnNewActivity);
$transport->addResponse($expectedResponse);
// Mock request
- $enhancedMeasurementSettings = new EnhancedMeasurementSettings();
- $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938';
- $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter);
+ $dataRetentionSettings = new DataRetentionSettings();
$updateMask = new FieldMask();
- $response = $client->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask);
+ $response = $client->updateDataRetentionSettings($dataRetentionSettings, $updateMask);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings', $actualFuncCall);
- $actualValue = $actualRequestObject->getEnhancedMeasurementSettings();
- $this->assertProtobufEquals($enhancedMeasurementSettings, $actualValue);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings', $actualFuncCall);
+ $actualValue = $actualRequestObject->getDataRetentionSettings();
+ $this->assertProtobufEquals($dataRetentionSettings, $actualValue);
$actualValue = $actualRequestObject->getUpdateMask();
$this->assertProtobufEquals($updateMask, $actualValue);
$this->assertTrue($transport->isExhausted());
@@ -4286,7 +5284,7 @@ public function updateEnhancedMeasurementSettingsTest()
/**
* @test
*/
- public function updateEnhancedMeasurementSettingsExceptionTest()
+ public function updateDataRetentionSettingsExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -4304,12 +5302,10 @@ public function updateEnhancedMeasurementSettingsExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $enhancedMeasurementSettings = new EnhancedMeasurementSettings();
- $enhancedMeasurementSettingsSearchQueryParameter = 'enhancedMeasurementSettingsSearchQueryParameter1139945938';
- $enhancedMeasurementSettings->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter);
+ $dataRetentionSettings = new DataRetentionSettings();
$updateMask = new FieldMask();
try {
- $client->updateEnhancedMeasurementSettings($enhancedMeasurementSettings, $updateMask);
+ $client->updateDataRetentionSettings($dataRetentionSettings, $updateMask);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -4324,7 +5320,7 @@ public function updateEnhancedMeasurementSettingsExceptionTest()
/**
* @test
*/
- public function updateFirebaseLinkTest()
+ public function updateDataStreamTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -4333,23 +5329,20 @@ public function updateFirebaseLinkTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name = 'name3373707';
- $project = 'project-309310695';
- $expectedResponse = new FirebaseLink();
+ $displayName = 'displayName1615086568';
+ $expectedResponse = new DataStream();
$expectedResponse->setName($name);
- $expectedResponse->setProject($project);
+ $expectedResponse->setDisplayName($displayName);
$transport->addResponse($expectedResponse);
// Mock request
- $firebaseLink = new FirebaseLink();
$updateMask = new FieldMask();
- $response = $client->updateFirebaseLink($firebaseLink, $updateMask);
+ $response = $client->updateDataStream($updateMask);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateFirebaseLink', $actualFuncCall);
- $actualValue = $actualRequestObject->getFirebaseLink();
- $this->assertProtobufEquals($firebaseLink, $actualValue);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream', $actualFuncCall);
$actualValue = $actualRequestObject->getUpdateMask();
$this->assertProtobufEquals($updateMask, $actualValue);
$this->assertTrue($transport->isExhausted());
@@ -4358,7 +5351,75 @@ public function updateFirebaseLinkTest()
/**
* @test
*/
- public function updateFirebaseLinkExceptionTest()
+ public function updateDataStreamExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $updateMask = new FieldMask();
+ try {
+ $client->updateDataStream($updateMask);
+ // If the $client method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function updateDisplayVideo360AdvertiserLinkTest()
+ {
+ $transport = $this->createTransport();
+ $client = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $advertiserId = 'advertiserId-127926097';
+ $advertiserDisplayName = 'advertiserDisplayName-674771332';
+ $expectedResponse = new DisplayVideo360AdvertiserLink();
+ $expectedResponse->setName($name);
+ $expectedResponse->setAdvertiserId($advertiserId);
+ $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $updateMask = new FieldMask();
+ $response = $client->updateDisplayVideo360AdvertiserLink($updateMask);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink', $actualFuncCall);
+ $actualValue = $actualRequestObject->getUpdateMask();
+ $this->assertProtobufEquals($updateMask, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /**
+ * @test
+ */
+ public function updateDisplayVideo360AdvertiserLinkExceptionTest()
{
$transport = $this->createTransport();
$client = $this->createClient([
@@ -4376,10 +5437,9 @@ public function updateFirebaseLinkExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $firebaseLink = new FirebaseLink();
$updateMask = new FieldMask();
try {
- $client->updateFirebaseLink($firebaseLink, $updateMask);
+ $client->updateDisplayVideo360AdvertiserLink($updateMask);
// If the $client method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -4405,12 +5465,12 @@ public function updateGoogleAdsLinkTest()
$name = 'name3373707';
$customerId = 'customerId-1772061412';
$canManageClients = false;
- $emailAddress = 'emailAddress-769510831';
+ $creatorEmailAddress = 'creatorEmailAddress-1491810434';
$expectedResponse = new GoogleAdsLink();
$expectedResponse->setName($name);
$expectedResponse->setCustomerId($customerId);
$expectedResponse->setCanManageClients($canManageClients);
- $expectedResponse->setEmailAddress($emailAddress);
+ $expectedResponse->setCreatorEmailAddress($creatorEmailAddress);
$transport->addResponse($expectedResponse);
// Mock request
$updateMask = new FieldMask();
@@ -4695,12 +5755,14 @@ public function updatePropertyTest()
$displayName = 'displayName1615086568';
$timeZone = 'timeZone36848094';
$currencyCode = 'currencyCode1108728155';
+ $account = 'account-1177318867';
$expectedResponse = new Property();
$expectedResponse->setName($name);
$expectedResponse->setParent($parent);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setTimeZone($timeZone);
$expectedResponse->setCurrencyCode($currencyCode);
+ $expectedResponse->setAccount($account);
$transport->addResponse($expectedResponse);
// Mock request
$property = new Property();