/// <summary>
        /// Returns the list of SharedCriterion that match the query.
        ///
        /// @param query The SQL-like AWQL query string.
        /// @return A list of SharedCriterion.
        /// @throws ApiException
        /// </summary>
        public async Task <SharedCriterionPage> QueryAsync(string query)
        {
            var binding = new SharedCriterionServiceSoapBinding("https://adwords.google.com/api/adwords/cm/v201609/SharedCriterionService", _config.AccessToken, _config.Timeout, _config.EnableGzipCompression, _netUtil, _logger);
            var inData  = new SoapData <SharedCriterionServiceRequestHeader, SharedCriterionServiceQuery>();

            inData.Header = new SharedCriterionServiceRequestHeader();
            AssignHeaderValues(inData.Header);
            inData.Body       = new SharedCriterionServiceQuery();
            inData.Body.Query = query;
            var outData = await binding.QueryAsync(inData).ConfigureAwait(false);

            return(outData.Body.Rval);
        }
        /// <summary>
        /// Adds, removes criteria in a shared set.
        ///
        /// @param operations A list of unique operations
        /// @return The list of updated SharedCriterion, returned in the same order as the
        /// {@code operations} array.
        /// @throws ApiException
        /// </summary>
        public async Task <SharedCriterionReturnValue> MutateAsync(IEnumerable <SharedCriterionOperation> operations)
        {
            var binding = new SharedCriterionServiceSoapBinding("https://adwords.google.com/api/adwords/cm/v201609/SharedCriterionService", _config.AccessToken, _config.Timeout, _config.EnableGzipCompression, _netUtil, _logger);
            var inData  = new SoapData <SharedCriterionServiceRequestHeader, SharedCriterionServiceMutate>();

            inData.Header = new SharedCriterionServiceRequestHeader();
            AssignHeaderValues(inData.Header);
            inData.Body            = new SharedCriterionServiceMutate();
            inData.Body.Operations = new List <SharedCriterionOperation>(operations);
            var outData = await binding.MutateAsync(inData).ConfigureAwait(false);

            return(outData.Body.Rval);
        }