Missing Locations?

24 views
Skip to first unread message

Marcos Gil Fuertes

unread,
Sep 3, 2019, 9:50:52 AM9/3/19
to AdWords API and Google Ads API Forum
Hi,

I'm using the CampaignCriterionService to retrieve all the criterions from my campaigns but, apparently, some Locations are missing. 

See enclosed file for the configuration from website (in Spanish, sorry!).

API only returns one criterion:

Google\AdsApi\AdWords\v201809\cm\CampaignCriterion Object
(
   
[campaignId:protected] => 875073577
   
[isNegative:protected] =>
   
[criterion:protected] => Google\AdsApi\AdWords\v201809\cm\Location Object
       
(
           
[locationName:protected] => Turkey
           
[displayType:protected] => Country
           
[targetingStatus:protected] => ACTIVE
           
[parentLocations:protected] =>
           
[id:protected] => 2792
           
[type:protected] => LOCATION
           
[CriterionType:protected] => Location
           
[parameterMap:Google\AdsApi\AdWords\v201809\cm\Criterion:private] => Array
               
(
                   
[Criterion.Type] => CriterionType
               
)
       
)
   
[bidModifier:protected] => 0.9
   
[campaignCriterionStatus:protected] => ACTIVE
   
[baseCampaignId:protected] =>
   
[forwardCompatibilityMap:protected] =>
   
[CampaignCriterionType:protected] => CampaignCriterion
   
[parameterMap:Google\AdsApi\AdWords\v201809\cm\CampaignCriterion:private] => Array
       
(
           
[CampaignCriterion.Type] => CampaignCriterionType
       
)
)


Any help, please?

Marcos Gil Fuertes

unread,
Sep 3, 2019, 10:27:51 AM9/3/19
to AdWords API and Google Ads API Forum
OK, I got it. 

You need to filter by campaignID, can't get the criteria for ALL the campaigns. If you try it and a criterion (for ex. a Location) is used in several campaigns, it's only returned once. :(
Reply all
Reply to author
Forward
0 new messages