Hello,
In AdWords API we had ability to search geo locations worldwide (without specifying country code).In GoogleAds country code is required parameter:
$response = $this->geoTargetConstantServiceClient->suggestGeoTargetConstants(
new StringValue(['value' => 'en']),
new StringValue(['value' => 'US']),
['locationNames' => new LocationNames(['names' => [$names]])]
);
Is there still an opportunity to search worldwide in GoogleAds?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 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
Hi Afsane,
Thank you for reaching out regarding your concern. Could you please try to get the geo target constant locations without passing country code using the code sample provided here? If you are still facing error, could you please share the complete request and response logs along with the client customer id for me to investigate this further on my end? Please use Reply privately to author option while sharing the details.
Regards,
Nikisha Patel, Google Ads API Team