Hi, The Placements criterion can only be targeted at an AdGroup level. At a campaign level, this can only be excluded. Please check here <https://developers.google.com/adwords/api/docs/appendix/criteria-usage> for more details about criteria usage. To add a negative campaign criterion, please refer to AddCampaignTargetingCriteria <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201802/Targeting/AddCampaignTargetingCriteria.php#L111-L123> sample. The sample adds a negative keyword. In your case, you will need to set the attributes of a placement <https://developers.google.com/adwords/api/docs/reference/v201802/CampaignCriterionService.Placement> instead. To retrieve the campaign level negative criterion, you could use the CampaignCriterionService.get() <https://developers.google.com/adwords/api/docs/reference/v201802/CampaignCriterionService#get> and filter by CriteriaType <https://developers.google.com/adwords/api/docs/reference/v201802/CampaignCriterionService.Criterion#type> "PLACEMENT". Please check the GetCampaignTargetingCriteria <https://developers.google.com/adwords/api/docs/samples/php/targeting#get-all-campaign-targeting-criteria> sample for reference. You will need to include PlacementUrl <https://developers.google.com/adwords/api/docs/reference/v201802/CampaignCriterionService.Placement#url> and any other fields <https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201802-CampaignCriterionService> of your choice in your selector.
If you are having trouble getting the results for CampaignCriterionService, could you please share the campaign ID which has the placement and not being returned? Please note that, if the placement is added at the AdGroup level, you will have to use the AdGroupCriterionService.get() <https://developers.google.com/adwords/api/docs/reference/v201802/AdGroupCriterionService#get> instead. If you need a sample for this, please check GetKeywords <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201802/BasicOperations/GetKeywords.php> which uses AdGroupCriterionService to get the keywords. Thanks, Sreelakshmi, 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/525f7e9b-db50-4c1c-82be-8b02a3bbbb48%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.