Hi Bruno, In setting the LocationSearchParameter <https://developers.google.com/adwords/api/docs/reference/v201806/TargetingIdeaService.LocationSearchParameter>, the required field of the Location <https://developers.google.com/adwords/api/docs/reference/v201806/TargetingIdeaService.Location> object is the id <https://developers.google.com/adwords/api/docs/reference/v201806/TargetingIdeaService.Location#id>, therefore, you need to set this, and not the location name <https://developers.google.com/adwords/api/docs/reference/v201806/TargetingIdeaService.Location#locationname>. To get the location criterion ID that you can use, you can refer to the geo targets guide <https://developers.google.com/adwords/api/docs/appendix/geotargeting> on which you can open the geo targets table. For example, for South Africa, the criterion ID is 2710. With this, you can add the line of codes below in this Python example <https://developers.google.com/adwords/api/docs/samples/python/optimization#get-keyword-ideas> :
# Location setting (optional). selector['searchParameters'].append({ 'xsi_type': 'LocationSearchParameter', 'locations': [{'id': '2710'}] }) Let me know how it goes after trying this on your end. Thanks, Vincent AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/868d27e6-fb82-4d17-8d6e-b7d194f6a795%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.