Hi,

I want to create *buildTargetLocationCriterion *for the campaign. Is there 
any method to get location Ids using latitude and longitudes in Google Ads 
API?? 

Here is my code...










*private static CampaignCriterion buildTargetLocationCriterion( long 
locationId, String campaignResourceName, boolean target) { 
CampaignCriterion.Builder builder = 
CampaignCriterion.newBuilder().setCampaign(campaignResourceName).setNegative(target);
 
builder.getLocationBuilder().setGeoTargetConstant(ResourceNames.geoTargetConstant(locationId));
 
return builder.build();}*


Thanks & Best Regards,
Kushani Hansika

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/056dc860-6433-4a50-b85e-e5c00113f05an%40googlegroups.com.

Reply via email to