/// <summary> /// Returns a DraftPage that contains a list of Draft objects matching the query. /// /// @throws {#link com.google.ads.api.services.common.error.ApiException} if problems occurred /// while retrieving the results. /// </summary> public async Task <DraftPage> QueryAsync(string query) { var binding = new DraftServiceSoapBinding("https://adwords.google.com/api/adwords/cm/v201609/DraftService", _config.AccessToken, _config.Timeout, _config.EnableGzipCompression, _netUtil, _logger); var inData = new SoapData <DraftServiceRequestHeader, DraftServiceQuery>(); inData.Header = new DraftServiceRequestHeader(); AssignHeaderValues(inData.Header); inData.Body = new DraftServiceQuery(); inData.Body.Query = query; var outData = await binding.QueryAsync(inData).ConfigureAwait(false); return(outData.Body.Rval); }