Esempio n. 1
0
        /// <summary>Snippet for UploadCallConversionsAsync</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 UploadCallConversionsAsync()
        {
            // Create client
            ConversionUploadServiceClient conversionUploadServiceClient = await ConversionUploadServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <CallConversion> conversions = new CallConversion[]
            {
                new CallConversion(),
            };
            bool partialFailure = false;
            // Make the request
            UploadCallConversionsResponse response = await conversionUploadServiceClient.UploadCallConversionsAsync(customerId, conversions, partialFailure);
        }
        /// <summary>Snippet for UploadCallConversionsAsync</summary>
        public async Task UploadCallConversionsAsync()
        {
            // Snippet: UploadCallConversionsAsync(string, IEnumerable<CallConversion>, bool, CallSettings)
            // Additional: UploadCallConversionsAsync(string, IEnumerable<CallConversion>, bool, CancellationToken)
            // Create client
            ConversionUploadServiceClient conversionUploadServiceClient = await ConversionUploadServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <CallConversion> conversions = new CallConversion[]
            {
                new CallConversion(),
            };
            bool partialFailure = false;
            // Make the request
            UploadCallConversionsResponse response = await conversionUploadServiceClient.UploadCallConversionsAsync(customerId, conversions, partialFailure);

            // End snippet
        }
Esempio n. 3
0
        /// <summary>Snippet for UploadCallConversionsAsync</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 UploadCallConversionsRequestObjectAsync()
        {
            // Create client
            ConversionUploadServiceClient conversionUploadServiceClient = await ConversionUploadServiceClient.CreateAsync();

            // Initialize request argument(s)
            UploadCallConversionsRequest request = new UploadCallConversionsRequest
            {
                CustomerId  = "",
                Conversions =
                {
                    new CallConversion(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            UploadCallConversionsResponse response = await conversionUploadServiceClient.UploadCallConversionsAsync(request);
        }
        /// <summary>Snippet for UploadCallConversionsAsync</summary>
        public async Task UploadCallConversionsRequestObjectAsync()
        {
            // Snippet: UploadCallConversionsAsync(UploadCallConversionsRequest, CallSettings)
            // Additional: UploadCallConversionsAsync(UploadCallConversionsRequest, CancellationToken)
            // Create client
            ConversionUploadServiceClient conversionUploadServiceClient = await ConversionUploadServiceClient.CreateAsync();

            // Initialize request argument(s)
            UploadCallConversionsRequest request = new UploadCallConversionsRequest
            {
                CustomerId  = "",
                Conversions =
                {
                    new CallConversion(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            UploadCallConversionsResponse response = await conversionUploadServiceClient.UploadCallConversionsAsync(request);

            // End snippet
        }