What I need: Get Search volume and Competition value of keyword "Hochzeitskleid" for country "Germany", language 'German" and EXACT match. I tried to do it in Keyword Tool and recieved right result (search volume = 8100), but with API I can't apply SearchParameters at all. Looks like they doesn't work :(
I tried to do it with follow code: ==== BEGIN ==== $adwords_user = new AdWordsUser(); $keyword_service = $adwords_user- >GetTargetingIdeaService('v201003'); $keyword = new Keyword(); $keyword->text = "Hochzeitskleid"; $keyword->matchType = 'EXACT'; $targeting_idea_selector = new TargetingIdeaSelector(); $targeting_idea_selector->ideaType = 'KEYWORD'; $targeting_idea_selector->requestType = 'STATS'; $targeting_idea_selector->localeCode = 'de_DE'; $targeting_idea_selector->paging = new Paging(0,800); $attribute_type = array(); $attribute_type[] = "AVERAGE_TARGETED_MONTHLY_SEARCHES"; //$attribute_type[] = "TARGETED_MONTHLY_SEARCHES"; $attribute_type[] = "COMPETITION"; $attribute_type[] = "KEYWORD"; $targeting_idea_selector->requestedAttributeTypes = $attribute_type; $targeting_idea_selector->searchParameters = array(); $related_to_keyword_search_parameter = new RelatedToKeywordSearchParameter(array($keyword)); $targeting_idea_selector->searchParameters[] = $related_to_keyword_search_parameter; $keyword_match_type_search_parameter = new KeywordMatchTypeSearchParameter(); $keyword_match_type_search_parameter->keywordMatchTypes = array("EXACT"); $targeting_idea_selector->searchParameters[] = $keyword_match_type_search_parameter; $lang_target = new LanguageTarget(); $lang_target->languageCode = 'de'; $lang_target->excluded = false; $langauge_target_search_parameter = new LanguageTargetSearchParameter(array($lang_target)); $targeting_idea_selector->searchParameters[] = $langauge_target_search_parameter; $country_target = new CountryTarget(); $country_target->countryCode = 'DE'; $country_target->excluded = false; $country_target_search_parameter = new CountryTargetSearchParameter(array($country_target)); $targeting_idea_selector->searchParameters[] = $country_target_search_parameter; $keyword_page = $keyword_service- >get($targeting_idea_selector); ==== END ==== Any ideas where is the mistake? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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