Re: Bug in googleads-php-lib class \XmlDeserializer

2016-12-25 Thread 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
Hi Sebastian, I'm afraid that you might use the utility in a wrong way so you're faced with the issue. The most likely cause would be that you've done *require_once* of many classes including those from services, e.g., *CampaignService.php*, which in turn includes ApiError

Re: Bug in googleads-php-lib class \XmlDeserializer

2016-12-23 Thread Sebastian Piskorski
If I add such line early in the script: require_once 'Google/Api/Ads/AdWords/Util/v201605/ReportUtilsDelegate.php'; the XML will be parsed properly and I get ReportDownloadException. But if I only define a version with: /** @var \AdWordsUser $this->client */ $this->client->GetService('ReportDe

Re: Bug in googleads-php-lib class \XmlDeserializer

2016-12-23 Thread Sebastian Piskorski
To be exact app crashes on 4th call of XmlDeserializer.php line 144. On Friday, December 23, 2016 at 3:21:20 PM UTC+1, Sebastian Piskorski wrote: > > If you run: > > (new \XmlDeserializer(\ReportUtilsDelegate::$CLASS_MAP))-> > ConvertXmlToObject($responseXml); > > with following XML: > > > > Aut

Bug in googleads-php-lib class \XmlDeserializer

2016-12-23 Thread Sebastian Piskorski
If you run: (new \XmlDeserializer(\ReportUtilsDelegate::$CLASS_MAP))->ConvertXmlToObject ($responseXml); with following XML: AuthenticationError.OAUTH_TOKEN_INVALID which is response from AdWords API endpoint. Then it will throw: ReflectionException('Porperty does not exist'); Code