Thank you Anthony.
I have tried to use the GetCampaignCriterion of CampaignCriterionService to
get the targeted locations, I got this response:
Service: CampaignCriterionService, Action: get, Response time: 213ms,
Request ID: 0005bfeb47f5c2030a7b1c0db9026dab, Operations: 1, Is fault: false
Campaign ID xxx has 0 criteria.
Does this mean that there is no targeted location for that campaign?
Does GetCampaignCriterion of CampaignCriterionService only works with
targets that were set using MutateCampaignCriteria of
CampaignCriterionService?
On Tuesday, April 13, 2021 at 11:03:29 PM UTC+3 adsapiforumadvisor wrote:
> Hi Samir,
>
> You can target and exclude locations using the CampaignCriterionService
> <https://developers.google.com/google-ads/api/reference/rpc/v6/CampaignCriterionService>
> and
> provide one of the location Ids found here
> <https://developers.google.com/adwords/api/docs/appendix/geotargeting>.
> You'll be able to use different locations types such as cities, zip codes
> or countries. The field negative
> <https://developers.google.com/google-ads/api/reference/rpc/v6/CampaignCriterion#negative>
>
> determines whether to target or exclude the location. Here is a
> comprehensive guide
> <https://developers.google.com/google-ads/api/docs/targeting/location-targeting>
>
> that provides details and samples on how to target locations.
>
> Cheers,
> Anthony
>
> [image: Google Logo]
> Anthony
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2FY5gE: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 [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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/91ae6248-f685-4d97-96e1-91065d979aben%40googlegroups.com.