Re: How to exclude placements with PHP APIs ?

2017-08-07 Thread 'Peter Oliquino' via AdWords API Forum
Hi Maferyt, Could you provide me your PHP code and the SOAP request and response and reply via *Reply privately to author* so I can further investigate? Also, if you haven't enabled SOAP logging at your end, you may refer to this guide

Re: How to exclude placements with PHP APIs ?

2017-08-07 Thread Maferyt Letakol
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

Re: How to exclude placements with PHP APIs ?

2017-08-06 Thread 'Peter Oliquino' via AdWords API Forum
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

Re: How to exclude placements with PHP APIs ?

2017-08-05 Thread Garik Tate
You're going to need to add a negative placement criterion. It's basically the same as adding a negative keyword. Here is basically what we did, hope that helps: get($session, CampaignCriterionService::class); $campaignCriteria = []; $operations = []; foreach ($campaignCriteria as