Hello guys,

Thanks for your answers, but I still can't make it work :/
I also tried with $operator = 'SET'; but it does nothing too.

I've changed :
$adGroupCriterion = new \NegativeAdGroupCriterion();
$adGroupCriterion->adGroupId = $criterion['adGroupId'];
$adGroupCriterion->criterion = new \Criterion($criterion['id']);
$operator = 'ADD';

to :
$negativePlacement      = new \Placement();
$negativePlacement->url = 'supersite.com';
$adGroupCriterion            = new \NegativeAdGroupCriterion();
$adGroupCriterion->adGroupId = $criterion['adGroupId'];
$adGroupCriterion->criterion = $negativePlacement;
$operator = 'ADD';

I really don't understand, because this code works well :
$adGroupCriterion             = new \BiddableAdGroupCriterion();
$adGroupCriterion->adGroupId  = $criterion['adGroupId'];
$adGroupCriterion->criterion  = new \Criterion($criterion['id']);
$adGroupCriterion->userStatus = 'PAUSED';
$operator = 'SET';



Anothers infos if it helps :
- using v201702
- application logs says no error
- AdWords interface "ChangeHistory" has nothing when trying to add 
Negative, but has logs when updating status to "PAUSED"



Thx

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4e976e4e-94d8-459e-b387-1eefa104dc98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to