Good Afternoon,
I'm trying to filter campaigns by location but I haven't made it work. I
require is that you bring me all the campaigns of (Spain By example) I
currently have the following code:
// Create a selector
$selector = new Selector();
// instance Adwords Service
$adwServices = new AdWordsServices();
// create Array Predicates
$arrPredicates = array(
new Predicate('CriteriaType', PredicateOperator::IN,
['LOCATION']),
// new Predicate('LocationName', PredicateOperator::IN,
$arrLocations),
// new Predicate('KeywordText', PredicateOperator::IN,
$arrLocations)
);
// call Campaigns Service
$campaignService = $adwServices->get($session,
CampaignCriterionService::class);
// set Selector Values
$selector->setFields(['Id',
'CriteriaType','LocationName','ParentLocations']);
$selector->setPredicates($arrPredicates);
$selector->setPaging(new Paging(0, $this->itmByPage));
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/62ffe277-2d8c-4cd9-b405-560a63ea8e0e%40googlegroups.com.