/// <summary>Snippet for CreateMeasurementProtocolSecret</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateMeasurementProtocolSecretResourceNames()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     WebDataStreamName         parent = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]");
     MeasurementProtocolSecret measurementProtocolSecret = new MeasurementProtocolSecret();
     // Make the request
     MeasurementProtocolSecret response = analyticsAdminServiceClient.CreateMeasurementProtocolSecret(parent, measurementProtocolSecret);
 }
Exemplo n.º 2
0
 /// <summary>Snippet for CreateMeasurementProtocolSecret</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateMeasurementProtocolSecret()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     string parent = "properties/[PROPERTY]/webDataStreams/[WEB_DATA_STREAM]";
     MeasurementProtocolSecret measurementProtocolSecret = new MeasurementProtocolSecret();
     // Make the request
     MeasurementProtocolSecret response = analyticsAdminServiceClient.CreateMeasurementProtocolSecret(parent, measurementProtocolSecret);
 }
Exemplo n.º 3
0
 /// <summary>Snippet for CreateMeasurementProtocolSecret</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateMeasurementProtocolSecretRequestObject()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     CreateMeasurementProtocolSecretRequest request = new CreateMeasurementProtocolSecretRequest
     {
         ParentAsWebDataStreamName = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]"),
         MeasurementProtocolSecret = new MeasurementProtocolSecret(),
     };
     // Make the request
     MeasurementProtocolSecret response = analyticsAdminServiceClient.CreateMeasurementProtocolSecret(request);
 }