Re: how to get exact keyword search results
Hi, For services that do not use generic selectors, you need to sort them in the application code. - Kevin Winter AdWords API Team -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
how to get exact keyword search results
Hello Guys, I hope you can help me with the following problem. What I need is a function as provided in google´s keyword tool. When I search for a keyword (for example: domain) and check only the exact box on the left, I get the exact search results for domain and around 200 more keyword ideas with their respective exact hits displayed. I have the following script working but it only displays a few keyword ideas. Not as much as displayed in the keyword tool. The displayed keyword ideas are different too. Here is my script: $user = new AdWordsUser(); // Log SOAP XML request and response. $user-LogDefaults(); // Get the TargetingIdeaService. $targetingIdeaService = $user-GetTargetingIdeaService('v201008'); $countryTarget = new CountryTarget($country,false); $countryTargetSearchParameter = new CountryTargetSearchParameter(); $countryTargetSearchParameter-countryTargets = array($countryTarget); // Take look here ! $monthSearchVolume = new GlobalMonthlySearchesSearchParameter(new LongComparisonOperation('1000')); // Create seed keyword. $keyword = new Keyword(); $keyword-text = $key; $keyword-matchType = 'EXACT'; // Create selector. $selector = new TargetingIdeaSelector(); $selector-requestType = 'IDEAS'; $selector-ideaType = 'KEYWORD'; $selector-requestedAttributeTypes = array('KEYWORD', 'AVERAGE_TARGETED_MONTHLY_SEARCHES'); // Set selector paging (required for targeting idea service). $paging = new Paging(); $paging-startIndex = 0; $paging-numberResults = 30; $selector-paging = $paging; // Create related to keyword search parameter. $relatedToKeywordSearchParameter = new RelatedToKeywordSearchParameter(); $relatedToKeywordSearchParameter-keywords = array($keyword); // Create keyword match type search parameter to ensure unique results. $keywordMatchTypeSearchParameter = new KeywordMatchTypeSearchParameter(); $keywordMatchTypeSearchParameter-keywordMatchTypes = array('EXACT'); // And here ! $selector-searchParameters = array($relatedToKeywordSearchParameter,$keywordMatchTypeSearchParameter, $countryTargetSearchParameter, $monthSearchVolume); $results=$targetingIdeaService-get($selector); print_r($results); Thanky you for your help. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: how to get exact keyword search results
Here is another example: my scripts shows only the following 19 keywords with their exact hits when I search for tassen lederwaren tassen online shop handtassen pip tassen leren tassen draagtassen schoudertassen tassen online oilily tassen handtas vintage tassen groothandel tassen laptoptassen leren tas goedkope tassen damestassen converse tassen handtassen online tassen groothandel When I search for tassen in google´s keyword tool with the search options: exact country: germany language: germany I got 800 keyword ideas. This is what my script should do. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: how to get exact keyword search results
Hmm, it seems I solved the problem, the Parameter GlobalMonthlySearchesSearchParameter(new LongComparisonOperation('1000')); simply cut the response :-) But how can I sort the api response by the exact hits (greates value first) ? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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