Hello Ian,

'CountryCode' is not a valid selector field according to the documentation:

  
https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201209-LocationCriterionService


-Danial, AdWords API Team.


On Thursday, November 1, 2012 4:54:50 AM UTC+4, Ian Knox wrote:
>
> It's handy but currently the country code attribute seems broken (or at 
> least with the PHP client)
>
>
>   $selector->fields = array('Id', 'LocationName', 
> 'CanonicalName','DisplayType',  'ParentLocations', 'Reach', 
> 'TargetingStatus', 'CountryCode');
>   $selector->predicates[] = new Predicate('ID', 'EQUALS', 2084);
>
> Yields: 
>
> Array
> (
>     [0] => LocationCriterion Object
>         (
>             [location] => Location Object
>                 (
>                     [locationName] => Ukraine
>                     [displayType] => Country
>                     [targetingStatus] => ACTIVE
>                     [parentLocations] =>
>                     [id] => 2804
>                     [type] =>
>                     [CriterionType] => Location
>                     [_parameterMap:Criterion:private] => Array
>                         (
>                             [Criterion.Type] => CriterionType
>                         )
>
>                 )
>
>             [canonicalName] => Ukraine
>             [reach] => 4100000
>             [locale] =>
>             [searchTerm] =>
>             [countryCode] =>
>         )
>
> )
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to