Re: Trying to run a script to remove multiple Adgroups

2017-03-09 Thread Dan Hai
Resolved, Here is the working code!! public static function runExample(AdWordsServices $adWordsServices, AdWordsSession $session) { $adGroupId = array(39345934486, 40389896837, 44185215527); $adGroupCount = count($adGroupId); for ($x = 0; $x < $adGroupCount; $x++) {

Re: Trying to run a script to remove multiple Adgroups

2017-03-07 Thread 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
Hi, The code that you shared looks similar to the RemoveAdGroup example available in the PHP client library. However, there might be issues with the way you are accessing

Trying to run a script to remove multiple Adgroups

2017-03-07 Thread Dan Hai
Not sure where I am messing up. Here is my code: public static function runExample(AdWordsServices $adWordsServices, AdWordsSession $session) { $adGroupId = array(3729748624, 37497486701); $adGroupCount = count($adGroupId); for ($x = 0; $x < $adGroupCount; $x++) {