Hi, You can request either the TARGETED_MONTHLY_SEARCHES or AVERAGE_TARGETED_MONTHLY_SEARCHES attributes to get this information.
Best, - Eric Koleda, AdWords API Team On Jun 20, 12:18 pm, parviz <parvi...@gmail.com> wrote: > I am using this api code for getting the keyword variation. > > Now my goal is to get for each keyword variation the number of monthly > local searches. > > AdWordsUser user = new AdWordsUser(); > TargetingIdeaService targetingIdeaService = > > (TargetingIdeaService)user.GetService(AdWordsService.v201003.TargetingIdeaS > ervice); > > string keywordText = "buy something"; > > Keyword keyword = new Keyword(); > keyword.text = keywordText; > keyword.matchTypeSpecified = true; > keyword.matchType = KeywordMatchType.BROAD; > > RelatedToKeywordSearchParameter searchParameter = new > RelatedToKeywordSearchParameter(); > searchParameter.keywords = new Keyword[] { keyword }; > > TargetingIdeaSelector selector = new TargetingIdeaSelector(); > selector.searchParameters = new SearchParameter[] > { searchParameter }; > selector.ideaTypeSpecified = true; > selector.ideaType = IdeaType.KEYWORD; > selector.requestTypeSpecified = true; > selector.requestType = RequestType.IDEAS; > > Paging paging = new Paging(); > paging.startIndex = 0; > paging.startIndexSpecified = true; > paging.numberResults = 20; > paging.numberResultsSpecified = true; > > selector.paging = paging; > > try > { > TargetingIdeaPage page = > targetingIdeaService.get(selector); > > if (page != null && page.entries != null) > { > Response.Write(page.totalNumEntries + keywordText + > page.entries.Length); > > foreach (TargetingIdea idea in page.entries) > { > foreach (Type_AttributeMapEntry entry in > idea.data) > { > if (entry.key == AttributeType.KEYWORD) > { > KeywordAttribute kwdAttribute = > entry.value as KeywordAttribute; > > Response.Write(kwdAttribute.value.text > +"<br />"); > > } > } > } > } > else > { > Response.Write("No related keywords were found for > your keyword."); > } > } > catch (Exception ex) > { > Response.Write(ex.Message); > } > > Any help please?? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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