The problem here was that I was creating CampaignCriterion objects and that
was the problem, although not explicitly stated anywhere, and not
intuitive, there is another type of object called NegativeCampaignCriterion and
that is the right object to exclude ContentLabel's and Placement's
foreach ($aModifiers as $modifier) {
if ($isNegative) {
$campaignCriterion = new NegativeCampaignCriterion($sCampaignId,
$isNegative, $modifier, $bidModifier);
} else {
$campaignCriterion = new CampaignCriterion($sCampaignId, $isNegative,
$modifier, $bidModifier);
}
$operation = new CampaignCriterionOperation();
$operation->setOperand($campaignCriterion);
$operation->setOperator($operator);
$operations[] = $operation;}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/058a8b75-d0ab-4bcb-b084-9010d065345d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.