AdWords API Re: Related Keywords by choosing language
Hi Huggy, Unfortunately there isn't a search parameter that places limits on the number of words returned in the keyword ideas. Best, - Eric On Feb 6, 2:49 pm, "adwo...@seo-news.at" wrote: > Thanks, Advisor! > > I've managed getting all the informations I need - perfect. > For saving some money I'd like to only get back results with a maxium > of 2 words - so I'd like to get "money" as well as "win money", but if > it contains three or more words ("win money online") it's to > "longtail" ;-) > Any possibility of doing so? > > Thanks! > > On 6 Feb., 00:28, AdWords API Advisor > wrote: > > > > > Hi Huggy, > > > To remove the extra match types you should use the > > KeywordMatchTypeSearchParameter: > > > http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIde... > > > Best, > > - Eric Koleda, AdWords API Team > > > On Feb 5, 3:12 pm, "adwo...@seo-news.at" wrote: > > > > Hi! > > > > I've managed getting the language stuff (Even if it sometimes returns > > > non-german (I'd guess its dutch)) keywords. > > > But it still returns BROAD, PHRASE and Exact - So I'd have to pay > > > three Credits for one keyword... > > > Would you tell me how to solve that? :-) > > > > On 5 Feb., 12:51, "adwo...@seo-news.at" wrote: > > > > > Hi there! > > > > > I'm new to the Adwords API but I'm trying to get related keywords (as > > > > well as the monthly search volume) for german language , searches from > > > > Austria. > > > > > I'm using your basic code mixed with snippets found at the Adwords API > > > > Forum. > > > > > When I run the code I do only get english results...Do you find my > > > > mistake? > > > > > ### > > > > > > > > > error_reporting(E_STRICT | E_ALL); > > > > $path = dirname(__FILE__) . '/../../src'; > > > > set_include_path(get_include_path() . PATH_SEPARATOR . $path); > > > > require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; > > > > try { > > > > $user = new AdWordsUser(); > > > > > // Log SOAP XML request and response. > > > > $user->LogDefaults(); > > > > > $keywordService = $user- > > > > > >GetTargetingIdeaService(); > > > > > $keyword = new Keyword(); > > > > $keyword->text = "auto"; > > > > $keyword->matchType = "BROAD"; > > > > > $languageService= new LanguageTarget(); > > > > $languageService->languageCode='de'; > > > > $languageService->TargetType='de'; > > > > > $countryService= new > > > > CountryTargetSearchParameter(); > > > > $countryService->countryTargets='AT'; > > > > > $keyword_array = array($keyword); > > > > $relatedToKeywordSearchParameter = new > > > > RelatedToKeywordSearchParameter($keyword_array, $languageService, > > > > $countryService); > > > > > $targetingIdeaSelector = new > > > > TargetingIdeaSelector(); > > > > $targetingIdeaSelector->searchParameters = > > > > array( > > > > > $relatedToKeywordSearchParameter > > > > ); > > > > > $targetingIdeaSelector->ideaType = 'KEYWORD'; > > > > $targetingIdeaSelector->requestType = 'IDEAS'; > > > > > > > > > $targetingIdeaSelector->requestedAttributeTypes=array > > > > > ( 'KEYWORD','GLOBAL_MONTHLY_SEARCHES' ); > > > > $targetingIdeaSelector->paging = new > > > > Paging(0,5); > > > > > $page = $keywordService- > > > > > >get($targetingIdeaSelector); > > > > > print_r($page); > > > > > } catch (Exception $e) { > > > > print_r($e); > > > > } > > > > > ?> > > > > > # > > > > > Whatever I try, it ends up in american (or english?) results. > > > > Thanks for your help, > > > > > Huggy -- 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-...@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.
AdWords API Re: Related Keywords by choosing language
Thanks, Advisor! I've managed getting all the informations I need - perfect. For saving some money I'd like to only get back results with a maxium of 2 words - so I'd like to get "money" as well as "win money", but if it contains three or more words ("win money online") it's to "longtail" ;-) Any possibility of doing so? Thanks! On 6 Feb., 00:28, AdWords API Advisor wrote: > Hi Huggy, > > To remove the extra match types you should use the > KeywordMatchTypeSearchParameter: > > http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIde... > > Best, > - Eric Koleda, AdWords API Team > > On Feb 5, 3:12 pm, "adwo...@seo-news.at" wrote: > > > Hi! > > > I've managed getting the language stuff (Even if it sometimes returns > > non-german (I'd guess its dutch)) keywords. > > But it still returns BROAD, PHRASE and Exact - So I'd have to pay > > three Credits for one keyword... > > Would you tell me how to solve that? :-) > > > On 5 Feb., 12:51, "adwo...@seo-news.at" wrote: > > > > Hi there! > > > > I'm new to the Adwords API but I'm trying to get related keywords (as > > > well as the monthly search volume) for german language , searches from > > > Austria. > > > > I'm using your basic code mixed with snippets found at the Adwords API > > > Forum. > > > > When I run the code I do only get english results...Do you find my > > > mistake? > > > > ### > > > > > > > error_reporting(E_STRICT | E_ALL); > > > $path = dirname(__FILE__) . '/../../src'; > > > set_include_path(get_include_path() . PATH_SEPARATOR . $path); > > > require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; > > > try { > > > $user = new AdWordsUser(); > > > > // Log SOAP XML request and response. > > > $user->LogDefaults(); > > > > $keywordService = $user- > > > > >GetTargetingIdeaService(); > > > > $keyword = new Keyword(); > > > $keyword->text = "auto"; > > > $keyword->matchType = "BROAD"; > > > > $languageService= new LanguageTarget(); > > > $languageService->languageCode='de'; > > > $languageService->TargetType='de'; > > > > $countryService= new > > > CountryTargetSearchParameter(); > > > $countryService->countryTargets='AT'; > > > > $keyword_array = array($keyword); > > > $relatedToKeywordSearchParameter = new > > > RelatedToKeywordSearchParameter($keyword_array, $languageService, > > > $countryService); > > > > $targetingIdeaSelector = new > > > TargetingIdeaSelector(); > > > $targetingIdeaSelector->searchParameters = > > > array( > > > > $relatedToKeywordSearchParameter > > > ); > > > > $targetingIdeaSelector->ideaType = 'KEYWORD'; > > > $targetingIdeaSelector->requestType = 'IDEAS'; > > > > > > > $targetingIdeaSelector->requestedAttributeTypes=array > > > > ( 'KEYWORD','GLOBAL_MONTHLY_SEARCHES' ); > > > $targetingIdeaSelector->paging = new > > > Paging(0,5); > > > > $page = $keywordService- > > > > >get($targetingIdeaSelector); > > > > print_r($page); > > > > } catch (Exception $e) { > > > print_r($e); > > > } > > > > ?> > > > > # > > > > Whatever I try, it ends up in american (or english?) results. > > > Thanks for your help, > > > > Huggy -- 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-...@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.
AdWords API Re: Related Keywords by choosing language
Hi Huggy, To remove the extra match types you should use the KeywordMatchTypeSearchParameter: http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIdeaService.KeywordMatchTypeSearchParameter.html Best, - Eric Koleda, AdWords API Team On Feb 5, 3:12 pm, "adwo...@seo-news.at" wrote: > Hi! > > I've managed getting the language stuff (Even if it sometimes returns > non-german (I'd guess its dutch)) keywords. > But it still returns BROAD, PHRASE and Exact - So I'd have to pay > three Credits for one keyword... > Would you tell me how to solve that? :-) > > On 5 Feb., 12:51, "adwo...@seo-news.at" wrote: > > > > > Hi there! > > > I'm new to the Adwords API but I'm trying to get related keywords (as > > well as the monthly search volume) for german language , searches from > > Austria. > > > I'm using your basic code mixed with snippets found at the Adwords API > > Forum. > > > When I run the code I do only get english results...Do you find my > > mistake? > > > ### > > > > > error_reporting(E_STRICT | E_ALL); > > $path = dirname(__FILE__) . '/../../src'; > > set_include_path(get_include_path() . PATH_SEPARATOR . $path); > > require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; > > try { > > $user = new AdWordsUser(); > > > // Log SOAP XML request and response. > > $user->LogDefaults(); > > > $keywordService = $user- > > > >GetTargetingIdeaService(); > > > $keyword = new Keyword(); > > $keyword->text = "auto"; > > $keyword->matchType = "BROAD"; > > > $languageService= new LanguageTarget(); > > $languageService->languageCode='de'; > > $languageService->TargetType='de'; > > > $countryService= new > > CountryTargetSearchParameter(); > > $countryService->countryTargets='AT'; > > > $keyword_array = array($keyword); > > $relatedToKeywordSearchParameter = new > > RelatedToKeywordSearchParameter($keyword_array, $languageService, > > $countryService); > > > $targetingIdeaSelector = new > > TargetingIdeaSelector(); > > $targetingIdeaSelector->searchParameters = > > array( > > > $relatedToKeywordSearchParameter > > ); > > > $targetingIdeaSelector->ideaType = 'KEYWORD'; > > $targetingIdeaSelector->requestType = 'IDEAS'; > > > > > $targetingIdeaSelector->requestedAttributeTypes=array > > > ( 'KEYWORD','GLOBAL_MONTHLY_SEARCHES' ); > > $targetingIdeaSelector->paging = new > > Paging(0,5); > > > $page = $keywordService- > > > >get($targetingIdeaSelector); > > > print_r($page); > > > } catch (Exception $e) { > > print_r($e); > > } > > > ?> > > > # > > > Whatever I try, it ends up in american (or english?) results. > > Thanks for your help, > > > Huggy -- 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-...@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.
AdWords API Re: Related Keywords by choosing language
Hi! I've managed getting the language stuff (Even if it sometimes returns non-german (I'd guess its dutch)) keywords. But it still returns BROAD, PHRASE and Exact - So I'd have to pay three Credits for one keyword... Would you tell me how to solve that? :-) On 5 Feb., 12:51, "adwo...@seo-news.at" wrote: > Hi there! > > I'm new to the Adwords API but I'm trying to get related keywords (as > well as the monthly search volume) for german language , searches from > Austria. > > I'm using your basic code mixed with snippets found at the Adwords API > Forum. > > When I run the code I do only get english results...Do you find my > mistake? > > ### > > > error_reporting(E_STRICT | E_ALL); > $path = dirname(__FILE__) . '/../../src'; > set_include_path(get_include_path() . PATH_SEPARATOR . $path); > require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; > try { > $user = new AdWordsUser(); > > // Log SOAP XML request and response. > $user->LogDefaults(); > > $keywordService = $user- > > >GetTargetingIdeaService(); > > $keyword = new Keyword(); > $keyword->text = "auto"; > $keyword->matchType = "BROAD"; > > $languageService= new LanguageTarget(); > $languageService->languageCode='de'; > $languageService->TargetType='de'; > > $countryService= new > CountryTargetSearchParameter(); > $countryService->countryTargets='AT'; > > $keyword_array = array($keyword); > $relatedToKeywordSearchParameter = new > RelatedToKeywordSearchParameter($keyword_array, $languageService, > $countryService); > > $targetingIdeaSelector = new > TargetingIdeaSelector(); > $targetingIdeaSelector->searchParameters = > array( > > $relatedToKeywordSearchParameter > ); > > $targetingIdeaSelector->ideaType = 'KEYWORD'; > $targetingIdeaSelector->requestType = 'IDEAS'; > > $targetingIdeaSelector->requestedAttributeTypes=array > > ( 'KEYWORD','GLOBAL_MONTHLY_SEARCHES' ); > $targetingIdeaSelector->paging = new > Paging(0,5); > > $page = $keywordService- > > >get($targetingIdeaSelector); > > print_r($page); > > > > } catch (Exception $e) { > print_r($e); > } > > ?> > > # > > Whatever I try, it ends up in american (or english?) results. > Thanks for your help, > > Huggy -- 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-...@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.