Hello in my app there is 2 list box, one for language and one for country, which i coded in select parameter as follows
//Create Target language for search stats LanguageTarget lt = new LanguageTarget(); lt.languageCode = "en"; foreach (ListItem itemLanguage in listLanguages.Items) { if (itemLanguage.Selected) { lt.languageCode = itemLanguage.Value; } } //Create LanguageTargetSearchParameter LanguageTargetSearchParameter oLTSP = new LanguageTargetSearchParameter(); oLTSP.languageTargets = new LanguageTarget[] { lt }; oLTSP.SearchParameterType = null; //this may need to be null // Create related to keyword search parameter. RelatedToKeywordSearchParameter relatedToKeywordSearchParameter = new RelatedToKeywordSearchParameter(); relatedToKeywordSearchParameter.keywords = kwa; CountryTarget ct = new CountryTarget(); ct.countryCode = "US"; foreach (ListItem itemCountry in listCountry.Items) { if (itemCountry.Selected) { ct.countryCode = itemCountry.Value; } } //Create CountryTargetSearchParameter CountryTargetSearchParameter oCTSP = new CountryTargetSearchParameter(); oCTSP.countryTargets = new CountryTarget[] { ct }; oCTSP.SearchParameterType = null; //this may need to be null selector.searchParameters = new SearchParameter[] { relatedToKeywordSearchParameter, oLTSP, oCTSP }; my question is what became with the oCTSP parameter when the user want to search all countries. should i ignore it? thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en