Thank you for your suggestion as it is also a correct example of how to
exclude a placement criterion at the campaign level.
As for your example, it appears that you are trying to exclude the
placement at the ad group level. This said, you may refer to the AddKeywords
in PHP and *just replace the Keyword Criterion with the Placement criterion*
you set it as a negativeAdGroupCriterion as seen in the sample below :
// Create negative ad group criterion.
$negativeAdGroupCriterion = new NegativeAdGroupCriterion();
Let me know if this helps.
AdWords API Team
Also find us on our blog and Google+:
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@example.com
To unsubscribe from this group, send email to
For more options, visit this group at
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
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.