/// <summary> /// Returns a list of all language criteria. /// /// @return A list of languages. /// @throws ApiException when there is at least one error with the request. /// </summary> public async Task <IEnumerable <Language> > GetLanguageCriterionAsync() { var binding = new ConstantDataServiceSoapBinding("https://adwords.google.com/api/adwords/cm/v201609/ConstantDataService", _config.AccessToken, _config.Timeout, _config.EnableGzipCompression, _netUtil, _logger); var inData = new SoapData <ConstantDataServiceRequestHeader, ConstantDataServiceGetLanguageCriterion>(); inData.Header = new ConstantDataServiceRequestHeader(); AssignHeaderValues(inData.Header); inData.Body = new ConstantDataServiceGetLanguageCriterion(); var outData = await binding.GetLanguageCriterionAsync(inData).ConfigureAwait(false); return(outData.Body.Rval); }
/// <summary> /// Returns a list of shopping bidding categories. /// /// A country predicate must be included in the selector, only {@link Predicate.Operator#EQUALS} /// and {@link Predicate.Operator#IN} with a single value are supported in the country predicate. /// An empty parentDimensionType predicate will filter for root categories. /// /// @return A list of shopping bidding categories. /// @throws ApiException when there is at least one error with the request. /// </summary> public async Task <IEnumerable <ProductBiddingCategoryData> > GetProductBiddingCategoryDataAsync(Selector selector) { var binding = new ConstantDataServiceSoapBinding("https://adwords.google.com/api/adwords/cm/v201609/ConstantDataService", _config.AccessToken, _config.Timeout, _config.EnableGzipCompression, _netUtil, _logger); var inData = new SoapData <ConstantDataServiceRequestHeader, ConstantDataServiceGetProductBiddingCategoryData>(); inData.Header = new ConstantDataServiceRequestHeader(); AssignHeaderValues(inData.Header); inData.Body = new ConstantDataServiceGetProductBiddingCategoryData(); inData.Body.Selector = selector; var outData = await binding.GetProductBiddingCategoryDataAsync(inData).ConfigureAwait(false); return(outData.Body.Rval); }