Hello there,

I have the same problem. I tried to call the "suggestGeoTargetConstants" method 
without passing the country code but it didn't work. this is the request I 
passed to the method:

const suggestGeoTargetConstantsRequest = {
            geo_targets: ["geoTargetConstants/9060871"]
        };

and I got this error: "3 INVALID_ARGUMENT: The country code is invalid. 

even when I set the request with the country_code like the image below, the 
return result data is empty! 
could you help me, how should I set the request to receive suggestion 
around the world?


    const suggestGeoTargetConstantsRequest = {
            locale: "au",
            countryCode: "AU",
            geo_targets: [
                "geoTargetConstants/9056922"
            ]
        }



On Friday, June 28, 2019 at 5:44:00 AM UTC+10, adsapiforumadvisor wrote:
>
> Hi,
>
> Thank you for reaching support. With regards to your concern, the 
> equivalent for getting the geo_location worldwide in Google Ads API is to 
> use geo_target_constant 
> <https://developers.google.com/google-ads/api/fields/v2/geo_target_constant> 
> resource. You could search the geo_locations without specifying the country 
> code which will give you location name in all regions worldwide. Let us 
> know if you need additional information.
>
> Regards,
> Nikisha Patel, Google Ads API Team
>
>
> ref:_00D1U1174p._5001UCZmou:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/95438331-7a29-4f93-b53a-60280892dc44%40googlegroups.com.

Reply via email to