/// <summary> /// Returns the list of FeedMappings that match the query. /// /// @param query The SQL-like AWQL query string /// @returns The list of FeedMappings /// @throws ApiException when the query is invalid or there are errors processing the request. /// </summary> public async Task <FeedMappingPage> QueryAsync(string query) { var binding = new FeedMappingServiceSoapBinding("https://adwords.google.com/api/adwords/cm/v201609/FeedMappingService", _config.AccessToken, _config.Timeout, _config.EnableGzipCompression, _netUtil, _logger); var inData = new SoapData <FeedMappingServiceRequestHeader, FeedMappingServiceQuery>(); inData.Header = new FeedMappingServiceRequestHeader(); AssignHeaderValues(inData.Header); inData.Body = new FeedMappingServiceQuery(); inData.Body.Query = query; var outData = await binding.QueryAsync(inData).ConfigureAwait(false); return(outData.Body.Rval); }
/// <summary> /// Add and remove FeedMappings. /// The following {@link Operator}s are supported: ADD, REMOVE. /// /// @param operations The operations to apply. /// @return The resulting FeedMappings. /// @throws ApiException indicates a problem with the request. /// </summary> public async Task <FeedMappingReturnValue> MutateAsync(IEnumerable <FeedMappingOperation> operations) { var binding = new FeedMappingServiceSoapBinding("https://adwords.google.com/api/adwords/cm/v201609/FeedMappingService", _config.AccessToken, _config.Timeout, _config.EnableGzipCompression, _netUtil, _logger); var inData = new SoapData <FeedMappingServiceRequestHeader, FeedMappingServiceMutate>(); inData.Header = new FeedMappingServiceRequestHeader(); AssignHeaderValues(inData.Header); inData.Body = new FeedMappingServiceMutate(); inData.Body.Operations = new List <FeedMappingOperation>(operations); var outData = await binding.MutateAsync(inData).ConfigureAwait(false); return(outData.Body.Rval); }