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. :(

El martes, 3 de septiembre de 2019, 15:50:52 (UTC+2), Marcos Gil Fuertes 
escribió:
>
> 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?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/34069bb0-c9a0-432b-9242-4455d02d5cba%40googlegroups.com.

Reply via email to