/// <summary>Snippet for MutateBatchJob</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateBatchJob()
 {
     // Create client
     BatchJobServiceClient batchJobServiceClient = BatchJobServiceClient.Create();
     // Initialize request argument(s)
     string            customerId = "";
     BatchJobOperation operation  = new BatchJobOperation();
     // Make the request
     MutateBatchJobResponse response = batchJobServiceClient.MutateBatchJob(customerId, operation);
 }
 /// <summary>Snippet for MutateBatchJob</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateBatchJobRequestObject()
 {
     // Create client
     BatchJobServiceClient batchJobServiceClient = BatchJobServiceClient.Create();
     // Initialize request argument(s)
     MutateBatchJobRequest request = new MutateBatchJobRequest
     {
         CustomerId = "",
         Operation  = new BatchJobOperation(),
     };
     // Make the request
     MutateBatchJobResponse response = batchJobServiceClient.MutateBatchJob(request);
 }
        /// <summary>
        /// Creates the batch job.
        /// </summary>
        /// <param name="batchJobService">The batch job service.</param>
        /// <param name="customerId">The Google Ads customer ID for which the call is made.</param>
        /// <returns>The resource name of the created batch job.</returns>
        private static string CreateBatchJob(BatchJobServiceClient batchJobService,
                                             long customerId)
        {
            BatchJobOperation operation = new BatchJobOperation()
            {
                Create = new BatchJob()
                {
                }
            };
            string batchJobResourceName =
                batchJobService.MutateBatchJob(customerId.ToString(), operation).Result.ResourceName;

            Console.WriteLine($"Created a batch job with resource name: " +
                              $"'{batchJobResourceName}'.");

            return(batchJobResourceName);
        }