Hi everyone, Actually I'm setting some BiddableAdGroupCriterion with userStatus = 'PAUSED', but I want "placements" to be "excluded". ; My code : private function createAdGroupCriterionOperation(array $criterion) { $adGroupCriterion = new \BiddableAdGroupCriterion(); $adGroupCriterion->adGroupId = $criterion['adGroupId']; $adGroupCriterion->criterion = new \Criterion($criterion['id']); $operator = 'SET';
if ('pause' == $criterion['type']) { $adGroupCriterion->userStatus = 'PAUSED'; if ($criterion['criterionType'] == "placement") { $adGroupCriterion = new \NegativeAdGroupCriterion(); $adGroupCriterion->adGroupId = $criterion['adGroupId']; $adGroupCriterion->criterion = new \Criterion($criterion['id']); $operator = 'ADD'; } } // Create operation. $operation = new \AdGroupCriterionOperation(); $operation->operand = $adGroupCriterion; $operation->operator = $operator; return $operation; } But this is not workind, it does anything :/ I've checked docs & examples but can't figure out what to do. I wish there would be an "EXCLUDED" status... 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. 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/f4ebcb64-0ac2-4770-92bf-7b7895a93e24%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.