/// <summary>Snippet for GetConversionCustomVariable</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetConversionCustomVariable()
 {
     // Create client
     ConversionCustomVariableServiceClient conversionCustomVariableServiceClient = ConversionCustomVariableServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER_ID]/conversionCustomVariables/[CONVERSION_CUSTOM_VARIABLE_ID]";
     // Make the request
     ConversionCustomVariable response = conversionCustomVariableServiceClient.GetConversionCustomVariable(resourceName);
 }
 /// <summary>Snippet for GetConversionCustomVariable</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetConversionCustomVariableResourceNames()
 {
     // Create client
     ConversionCustomVariableServiceClient conversionCustomVariableServiceClient = ConversionCustomVariableServiceClient.Create();
     // Initialize request argument(s)
     ConversionCustomVariableName resourceName = ConversionCustomVariableName.FromCustomerConversionCustomVariable("[CUSTOMER_ID]", "[CONVERSION_CUSTOM_VARIABLE_ID]");
     // Make the request
     ConversionCustomVariable response = conversionCustomVariableServiceClient.GetConversionCustomVariable(resourceName);
 }
 /// <summary>Snippet for MutateConversionCustomVariables</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateConversionCustomVariables()
 {
     // Create client
     ConversionCustomVariableServiceClient conversionCustomVariableServiceClient = ConversionCustomVariableServiceClient.Create();
     // Initialize request argument(s)
     string customerId = "";
     IEnumerable <ConversionCustomVariableOperation> operations = new ConversionCustomVariableOperation[]
     {
         new ConversionCustomVariableOperation(),
     };
     // Make the request
     MutateConversionCustomVariablesResponse response = conversionCustomVariableServiceClient.MutateConversionCustomVariables(customerId, operations);
 }
Ejemplo n.º 4
0
        /// <summary>Snippet for GetConversionCustomVariableAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetConversionCustomVariableRequestObjectAsync()
        {
            // Create client
            ConversionCustomVariableServiceClient conversionCustomVariableServiceClient = await ConversionCustomVariableServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetConversionCustomVariableRequest request = new GetConversionCustomVariableRequest
            {
                ResourceNameAsConversionCustomVariableName = ConversionCustomVariableName.FromCustomerConversionCustomVariable("[CUSTOMER_ID]", "[CONVERSION_CUSTOM_VARIABLE_ID]"),
            };
            // Make the request
            ConversionCustomVariable response = await conversionCustomVariableServiceClient.GetConversionCustomVariableAsync(request);
        }
        /// <summary>Snippet for GetConversionCustomVariableAsync</summary>
        public async Task GetConversionCustomVariableAsync()
        {
            // Snippet: GetConversionCustomVariableAsync(string, CallSettings)
            // Additional: GetConversionCustomVariableAsync(string, CancellationToken)
            // Create client
            ConversionCustomVariableServiceClient conversionCustomVariableServiceClient = await ConversionCustomVariableServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/conversionCustomVariables/[CONVERSION_CUSTOM_VARIABLE_ID]";
            // Make the request
            ConversionCustomVariable response = await conversionCustomVariableServiceClient.GetConversionCustomVariableAsync(resourceName);

            // End snippet
        }
 /// <summary>Snippet for GetConversionCustomVariable</summary>
 public void GetConversionCustomVariableRequestObject()
 {
     // Snippet: GetConversionCustomVariable(GetConversionCustomVariableRequest, CallSettings)
     // Create client
     ConversionCustomVariableServiceClient conversionCustomVariableServiceClient = ConversionCustomVariableServiceClient.Create();
     // Initialize request argument(s)
     GetConversionCustomVariableRequest request = new GetConversionCustomVariableRequest
     {
         ResourceNameAsConversionCustomVariableName = ConversionCustomVariableName.FromCustomerConversionCustomVariable("[CUSTOMER_ID]", "[CONVERSION_CUSTOM_VARIABLE_ID]"),
     };
     // Make the request
     ConversionCustomVariable response = conversionCustomVariableServiceClient.GetConversionCustomVariable(request);
     // End snippet
 }
        /// <summary>Snippet for GetConversionCustomVariableAsync</summary>
        public async Task GetConversionCustomVariableRequestObjectAsync()
        {
            // Snippet: GetConversionCustomVariableAsync(GetConversionCustomVariableRequest, CallSettings)
            // Additional: GetConversionCustomVariableAsync(GetConversionCustomVariableRequest, CancellationToken)
            // Create client
            ConversionCustomVariableServiceClient conversionCustomVariableServiceClient = await ConversionCustomVariableServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetConversionCustomVariableRequest request = new GetConversionCustomVariableRequest
            {
                ResourceNameAsConversionCustomVariableName = ConversionCustomVariableName.FromCustomerConversionCustomVariable("[CUSTOMER_ID]", "[CONVERSION_CUSTOM_VARIABLE_ID]"),
            };
            // Make the request
            ConversionCustomVariable response = await conversionCustomVariableServiceClient.GetConversionCustomVariableAsync(request);

            // End snippet
        }
        /// <summary>Snippet for MutateConversionCustomVariablesAsync</summary>
        public async Task MutateConversionCustomVariablesAsync()
        {
            // Snippet: MutateConversionCustomVariablesAsync(string, IEnumerable<ConversionCustomVariableOperation>, CallSettings)
            // Additional: MutateConversionCustomVariablesAsync(string, IEnumerable<ConversionCustomVariableOperation>, CancellationToken)
            // Create client
            ConversionCustomVariableServiceClient conversionCustomVariableServiceClient = await ConversionCustomVariableServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <ConversionCustomVariableOperation> operations = new ConversionCustomVariableOperation[]
            {
                new ConversionCustomVariableOperation(),
            };
            // Make the request
            MutateConversionCustomVariablesResponse response = await conversionCustomVariableServiceClient.MutateConversionCustomVariablesAsync(customerId, operations);

            // End snippet
        }
 /// <summary>Snippet for MutateConversionCustomVariables</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateConversionCustomVariablesRequestObject()
 {
     // Create client
     ConversionCustomVariableServiceClient conversionCustomVariableServiceClient = ConversionCustomVariableServiceClient.Create();
     // Initialize request argument(s)
     MutateConversionCustomVariablesRequest request = new MutateConversionCustomVariablesRequest
     {
         CustomerId = "",
         Operations =
         {
             new ConversionCustomVariableOperation(),
         },
         PartialFailure      = false,
         ValidateOnly        = false,
         ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified,
     };
     // Make the request
     MutateConversionCustomVariablesResponse response = conversionCustomVariableServiceClient.MutateConversionCustomVariables(request);
 }
        /// <summary>Snippet for MutateConversionCustomVariablesAsync</summary>
        public async Task MutateConversionCustomVariablesRequestObjectAsync()
        {
            // Snippet: MutateConversionCustomVariablesAsync(MutateConversionCustomVariablesRequest, CallSettings)
            // Additional: MutateConversionCustomVariablesAsync(MutateConversionCustomVariablesRequest, CancellationToken)
            // Create client
            ConversionCustomVariableServiceClient conversionCustomVariableServiceClient = await ConversionCustomVariableServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateConversionCustomVariablesRequest request = new MutateConversionCustomVariablesRequest
            {
                CustomerId = "",
                Operations =
                {
                    new ConversionCustomVariableOperation(),
                },
                PartialFailure      = false,
                ValidateOnly        = false,
                ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified,
            };
            // Make the request
            MutateConversionCustomVariablesResponse response = await conversionCustomVariableServiceClient.MutateConversionCustomVariablesAsync(request);

            // End snippet
        }