Hi Majid,

It is expected that the value for countryCode will be blank when you 
retrieve it as this field is generally used for filters. According to the 
documentation 
<https://developers.google.com/adwords/api/docs/reference/v201806/LocationCriterionService.LocationCriterion#countrycode>,
 
it is used as a hint or suggestion when you are doing your filtering. For 
example, you specified *CountryCode** EQUALS 'US' *when calling the API. 
This means that the results returned by the API is filtered by the 
countryCode, specifically if it is equal to 'US'.

Hope this helps.

Regards,
Dannison
AdWords API Team

On Thursday, November 15, 2018 at 2:05:42 AM UTC+8, Majid Khosravi wrote:
>
> I have recently started an open source project called Chartramp which 
> pulls data from different ad networks including Google Adwords API for 
> analysis purposes, In case might be useful:
>
> https://github.com/Chartramp/Chartramp
>
> Currently I have an issue regarding fetching the country code 
> from LocationCriterionService to map daily GEO records per country.
>
> Here is the code:
>
>
> https://github.com/Chartramp/Chartramp/blob/master/application/src/Service/Network/Google/GoogleAds.php
>  
> using getCountryCodes function.
>
> Can you guys have a look and let me know if there is a way to get the 
> countryCode from LocationCriterionService? It always returns as null.
>
> Thanks!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/bc614390-c1dd-4dd1-9413-4eb451a8a50c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Majid Khosravi
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Majid Khosravi
        • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
          • ... Majid Khosravi
            • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
              • ... Majid Khosravi
                • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
                • ... Majid Khosravi

Reply via email to