Hi Garik,

Thank you for your suggestion as it is also a correct example of how to 
exclude a placement criterion at the campaign level. 

Hi Maferyt,

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 
<https://developers.google.com/adwords/api/docs/samples/php/basic-operations#add-keywords>
 example 
in PHP and *just replace the Keyword Criterion with the Placement criterion* 
when 
you set it as a negativeAdGroupCriterion as seen in the sample below :

// Create negative ad group criterion. 
$negativeAdGroupCriterion = new NegativeAdGroupCriterion(); 
$negativeAdGroupCriterion->setAdGroupId($adGroupId); 
$negativeAdGroupCriterion->setCriterion($placement);


Let me know if this helps.

Best regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1fe8167a-154e-4854-a403-156f984da62c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to