My code is running correctly
With the GeoTargetInfo:
https://developers.google.com/adwords/api/docs/appendix/geotargeting
And This Predicate:
$arrPredicates = array(
new Predicate('CriteriaType', PredicateOperator::IN,
['LOCATION']),
new Predicate('Id', PredicateOperator::IN,
$arrLocations)
);
Thank you, very much
On Thursday, July 25, 2019 at 2:50:25 AM UTC-5, adsapiforumadvisor wrote:
>
> Hi Snayder,
>
> Thank you for reaching out.
>
> Could you confirm if you wish to retrieve all campaigns that have a
> specific location criterion? If yes, as I was checking the code you
> provided, you could try adding the *CampaignId* field first in your
> selected fields to get the campaigns that have the criterion specified in
> your predicate.
>
> If you want to retrieve a country specific criteria, you may want to use
> the Id
> <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.Criterion#id>
>
> as a predicate instead and refer to this geotarget
> <https://developers.google.com/adwords/api/docs/appendix/geotargeting>
> table to get the value of the location you wish to use.
>
> Let me know if this helps.
>
> Regards,
> Dannison
> Google Ads API Team
>
> ref:_00D1U1174p._5001UEGLlW: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/2ad0cf42-0416-4e90-b8ee-543e848eb5bd%40googlegroups.com.