Hi,
In order to restrict to your locale you need to use the
LanguageSearchParameter<https://developers.google.com/adwords/api/docs/reference/v201309/TargetingIdeaService.LanguageSearchParameter>and
LocationSearchParameter<https://developers.google.com/adwords/api/docs/reference/v201309/TargetingIdeaService.LocationSearchParameter>.
We have examples on how to use the language parameter in our library (e.g.
Java<https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201309/optimization/GetKeywordIdeas.java>),
using the location parameter is similar.
Best,
- David Torres - AdWords API Team
On Monday, October 21, 2013 6:19:59 AM UTC-4, Kven Chou wrote:
>
> I changing localcode return the same result.
>
> se_list=['country']
> if list_keyword:
> se_list.append({'xsi_type': 'RelatedToQuerySearchParameter',
> 'queries':list_keyword,
> })
> if list_url:
> se_list.append({'xsi_type': 'RelatedToUrlSearchParameter',
> 'urls': list_url,
> 'includeSubUrls': 'false',
> })
>
> selector = {
> 'searchParameters':se_list,
> 'ideaType': 'KEYWORD',
> 'requestType': 'STATS',
> #'requestType': 'IDEAS',
>
> 'requestedAttributeTypes':['COMPETITION','KEYWORD_TEXT','TARGETED_MONTHLY_SEARCHES','SEARCH_VOLUME'],
> #'localeCode': 'zh_CN',
> 'localeCode': 'en_US',
> 'paging': {
> 'startIndex': '0',
> 'numberResults': '50'
> }
> }
> page = targeting_idea_service.Get(selector)[0]
>
>
> page
> {'totalNumEntries': '1', 'entries': [{'data': [{'key': 'KEYWORD_TEXT',
> 'value': {'Attribute_Type': 'StringAttribute', 'value':
> '\xe4\xba\xac\xe4\xb8\x9c'}}, {'key': 'TARGETED_MONTHLY_SEARCHES', 'value':
> {'Attribute_Type': 'MonthlySearchVolumeAttribute', 'value': [{'count':
> '673000', 'month': '9', 'year': '2013'}, {'count': '550000', 'month': '8',
> 'year': '2013'}, {'count': '550000', 'month': '7', 'year': '2013'},
> {'count': '673000', 'month': '6', 'year': '2013'}, {'count': '673000',
> 'month': '5', 'year': '2013'}, {'count': '673000', 'month': '4', 'year':
> '2013'}, {'count': '673000', 'month': '3', 'year': '2013'}, {'count':
> '550000', 'month': '2', 'year': '2013'}, {'count': '673000', 'month': '1',
> 'year': '2013'}, {'count': '550000', 'month': '12', 'year': '2012'},
> {'count': '550000', 'month': '11', 'year': '2012'}, {'count': '50',
> 'month': '10', 'year': '2012'}]}}, {'key': 'SEARCH_VOLUME', 'value':
> {'Attribute_Type': 'LongAttribute', 'value': '550000'}}, {'key':
> 'COMPETITION', 'value':
> {'Attribute_Type': 'DoubleAttribute', 'value': '0.16018111006552177'}}]}]}
> page
> {'totalNumEntries': '1', 'entries': [{'data': [{'key': 'KEYWORD_TEXT',
> 'value': {'Attribute_Type': 'StringAttribute', 'value':
> '\xe4\xba\xac\xe4\xb8\x9c'}}, {'key': 'TARGETED_MONTHLY_SEARCHES', 'value':
> {'Attribute_Type': 'MonthlySearchVolumeAttribute', 'value': [{'count':
> '673000', 'month': '9', 'year': '2013'}, {'count': '550000', 'month': '8',
> 'year': '2013'}, {'count': '550000', 'month': '7', 'year': '2013'},
> {'count': '673000', 'month': '6', 'year': '2013'}, {'count': '673000',
> 'month': '5', 'year': '2013'}, {'count': '673000', 'month': '4', 'year':
> '2013'}, {'count': '673000', 'month': '3', 'year': '2013'}, {'count':
> '550000', 'month': '2', 'year': '2013'}, {'count': '673000', 'month': '1',
> 'year': '2013'}, {'count': '550000', 'month': '12', 'year': '2012'},
> {'count': '550000', 'month': '11', 'year': '2012'}, {'count': '50',
> 'month': '10', 'year': '2012'}]}}, {'key': 'SEARCH_VOLUME', 'value':
> {'Attribute_Type': 'LongAttribute', 'value': '550000'}}, {'key':
> 'COMPETITION', 'value':
> {'Attribute_Type': 'DoubleAttribute', 'value': '0.16018111006552177'}}]}]}
>
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.