What's the use of localeCode in TargetingIdeaSelector

31 views
Skip to first unread message

onel...@gmail.com

unread,
Oct 9, 2015, 8:31:14 AM10/9/15
to AdWords API Forum
Hi,

I am new to AdWords API. It seems localeCode in TargetingIdeaSelecotr is somewhat useless. The description says

The locale code (for example "en_US") used for localizing strings, controlling numeric formatting, and the like.

But that causes confusions.  It looks to me that the locale code can be totally replaced by LanguageSearchParameter + LocationSearchParamerter.

Also, in the tutorial, it says local code is mapping to language targeting. But that seems not the case.

So my question is, what is the use of localeCode? Is it just for historical compatibility? Thanks.




Auto Generated Inline Image 1

onel...@gmail.com

unread,
Oct 9, 2015, 8:31:18 AM10/9/15
to AdWords API Forum
Hi,

It looks localeCode in TargetingIdeaSelector can be totally replaced by LanguageSearchParameter + LocationSearchParameter.

In the API tutorial, it says that localeCode is mapping to Targeting-Lanuage in keyword planner, but actually it is not.

I wonder why the localeCode stays in API? Any suggestions? Thanks!


Auto Generated Inline Image 1

Josh Radcliff (AdWords API Team)

unread,
Oct 12, 2015, 3:45:21 PM10/12/15
to AdWords API Forum
Hi,

Our guide is incorrect here -- thanks for pointing that out. To mirror the user interface's language selection, you would want to use a LanguageSearchParameter, as you suggested.

The localeCode is still useful, however, as it controls how returned values are formatted (for example, numbers).

I'll update our guide to reflect these points. Thanks again!

Cheers,
Josh, AdWords API Team 
Reply all
Reply to author
Forward
0 new messages