Hi, I am trying to exclude a location from a campaign. I am using php lib https://github.com/googleads/googleads-php-lib/tree/master/src/Google/Api/Ads/AdWords/v201607
I read * Ads canonly be negatively geotargeted if a positive geotargeting is also supplied, and * the negatively geotargeted region must be contained within the positive * region. I understood I should use : $geoTargetTypeSetting->positiveGeoTargetType = 'LOCATION_OF_PRESENCE'; //which should be USA $geoTargetTypeSetting->negativeGeoTargetType = 'LOCATION_OF_PRESENCE'; // which should be a list of locations I found the Criteria ID of the locations I want to exclude on https://developers.google.com/adwords/api/docs/appendix/geotargeting. Here is my code so far, $geoTargetTypeSetting = new GeoTargetTypeSetting(); $geoTargetTypeSetting->positiveGeoTargetType = 'LOCATION_OF_PRESENCE'; $geoTargetTypeSetting->negativeGeoTargetType = 'LOCATION_OF_PRESENCE'; $geoTargetTypeSetting->SettingType = ??? $campaign->settings[] = $geoTargetTypeSetting; How should I specify the Criteria IDs? Maybe SettingType? What is the Criteria ID for USA as a country? Thanks, -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/519c66f9-45f9-4bc6-a74a-8f8c14a3c30b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
