Re: 'ReflectionException' while using ReportUtils in Adwords API v201605

2018-04-18 Thread 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
Hi Ray, Please refer highlighted section of this code sample to check out how to set includeZeroImpressions. If not

Re: 'ReflectionException' while using ReportUtils in Adwords API v201605

2018-04-18 Thread Ray Chang
how to set includeZeroImpressions header ? 在 2016年8月17日星期三 UTC+8上午1:06:27,Shwetha Vastrad (AdWords API Team)写道: > > Hi, > > Search Query Performance Report > > doesn't > support zero impressions.

Re: 'ReflectionException' while using ReportUtils in Adwords API v201605

2016-08-16 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Foluso, Are you using the examples provided in the PHP client library ? The report download example has try-catch block to handle errors or exceptions that occur while executing the requests. The ReflectionException maybe due to something

Re: 'ReflectionException' while using ReportUtils in Adwords API v201605

2016-08-16 Thread Foluso Ogunlana
Oh wow okay. That's great, thank you very much! It's great that it gives a helpful error, maybe it could be improved if the message could bubble up enough to be in the stack trace? I say this because I spent a lot of time hunting it down, and if I had seen a single

Re: 'ReflectionException' while using ReportUtils in Adwords API v201605

2016-08-16 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, Search Query Performance Report doesn't support zero impressions. Setting the includeZeroImpressions header to true will result in ReportDownloadError.ZERO_IMPRESSIONS_REQUEST_NOT_SUPPORTED

Re: 'ReflectionException' while using ReportUtils in Adwords API v201605

2016-08-16 Thread foluso
I've found the problem that caused this. It was the include zero impressions flag. Not setting it gets rid of the bug. Why is that? On Tuesday, August 16, 2016 at 1:40:31 PM UTC+1, fol...@brainlabsdigital.com wrote: > > Hi, > > I am trying to use the Adwords PHP API ReportUtils object. > >

'ReflectionException' while using ReportUtils in Adwords API v201605

2016-08-16 Thread foluso
Hi, I am trying to use the Adwords PHP API ReportUtils object. Here is the code: $util = new ReportUtils(); // Download report. $report = $util->DownloadReport($reportDefinition, null, $this->adwordsClient, $options); The same code works perfectly on the CAMPAIGN_PERFORMANCE_REPORT and on