LocationCriterionService does not return Country Code

126 views
Skip to first unread message

armin....@netekspert.com

unread,
Jun 16, 2016, 1:05:00 PM6/16/16
to AdWords API Forum
It appears that the field name "CountryCode" is valid, but the LocationCriterionService does not return any value. It's aways nothing..
All other fields return values correctly.

I'm helpful for any hints!

selector.fields = New String() {"Id", "LocationName", "CanonicalName", "CountryCode", "DisplayType", "ParentLocations", "Reach"}

Thanet Knack Praneenararat (AdWords API Team)

unread,
Jun 16, 2016, 11:24:02 PM6/16/16
to AdWords API Forum
Hello Armin,

Thanks for reporting.
I'll check with the engineering team and get back to you when having any updates.

Best,
Thanet, AdWords API Team

Thanet Knack Praneenararat (AdWords API Team)

unread,
Jun 23, 2016, 12:48:44 AM6/23/16
to AdWords API Forum
Hello Armin,

In fact, CountryCode is not selectable, so even if you specify that in the Selector, it will not be returned.
(If a field can be selected, it will be explained explicitly in a reference page.
For example, you can see countryCode is said to be filterable, whereas canonicalName is said to be selectable)

You can instead suggest country codes via predicates.

Cheers,
Thanet, AdWords API Team

On Friday, June 17, 2016 at 2:05:00 AM UTC+9, armin....@netekspert.com wrote:
Reply all
Reply to author
Forward
0 new messages