/// <summary>Snippet for CreateConversionEvent</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateConversionEventResourceNames() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create(); // Initialize request argument(s) PropertyName parent = PropertyName.FromProperty("[PROPERTY]"); ConversionEvent conversionEvent = new ConversionEvent(); // Make the request ConversionEvent response = analyticsAdminServiceClient.CreateConversionEvent(parent, conversionEvent); }
/// <summary>Snippet for CreateConversionEvent</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateConversionEvent() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create(); // Initialize request argument(s) string parent = "properties/[PROPERTY]"; ConversionEvent conversionEvent = new ConversionEvent(); // Make the request ConversionEvent response = analyticsAdminServiceClient.CreateConversionEvent(parent, conversionEvent); }
/// <summary>Snippet for CreateConversionEvent</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateConversionEventRequestObject() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create(); // Initialize request argument(s) CreateConversionEventRequest request = new CreateConversionEventRequest { ConversionEvent = new ConversionEvent(), ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"), }; // Make the request ConversionEvent response = analyticsAdminServiceClient.CreateConversionEvent(request); }