Re: Create Text Label - Adwords API 201708 php - Cannot access empty property in Google/AdsApi/AdWords/v201708/cm/Label.php on line 172

2017-10-06 Thread Zac Hillier
Excellent, thank you :) On Thursday, 5 October 2017 20:10:03 UTC+1, Zac Hillier wrote: > > Hi > > I'm migrating to the new Adwords API and trying to create a text label. At > the bottom my code, but this gives an error > > *Fatal error*: Cannot access empty property in > *[..]/Google/AdsApi/AdWo

Re: Create Text Label - Adwords API 201708 php - Cannot access empty property in Google/AdsApi/AdWords/v201708/cm/Label.php on line 172

2017-10-05 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Zac, Could you try using the code snippet provided below: public function createLabel($name){ $service = $this->adWordsServices->get($this->session, LabelService:: class); $operations = []; $txt = new TextLabel(); $txt->setName($name); $operation = new La

Create Text Label - Adwords API 201708 php - Cannot access empty property in Google/AdsApi/AdWords/v201708/cm/Label.php on line 172

2017-10-05 Thread Zac Hillier
Hi I'm migrating to the new Adwords API and trying to create a text label. At the bottom my code, but this gives an error *Fatal error*: Cannot access empty property in *[..]/Google/AdsApi/AdWords/v201708/cm/Label.php* on line *172* Which relates to: public function __set($var, $value) {