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 any 
other report. 

However it doesn't work on the SEARCH_QUERY_PERFORMANCE_REPORT

I had it working previously, but now every time I try to run this code I 
get the following stack trace:

PHP Notice:  Undefined index: type in 
/home/foluso/Documents/webProgramming/projects/sqrt/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Util/XmlDeserializer.php
 
on line 136
PHP Fatal error:  Uncaught exception 'ReflectionException' with message 
'Property  does not exist' in 
/home/foluso/Documents/webProgramming/projects/sqrt/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Util/XmlDeserializer.php:138
Stack trace:
#0 
/home/foluso/Documents/webProgramming/projects/sqrt/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Util/XmlDeserializer.php(138):
 
ReflectionClass->getProperty('')
#1 
/home/foluso/Documents/webProgramming/projects/sqrt/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Util/XmlDeserializer.php(92):
 
XmlDeserializer->ConvertElementToObject(Object(DOMElement), 'ApiError')
#2 
/home/foluso/Documents/webProgramming/projects/sqrt/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Util/XmlDeserializer.php(63):
 
XmlDeserializer->ConvertElementToObject(Object(DOMElement))
#3 
/home/foluso/Documents/webProgramming/projects/sqrt/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Util/v201605/ReportUtilsDelegate.php(194):
 
XmlDeserializer-> in 
/home/foluso/Documents/webProgramming/projects/sqrt/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Util/XmlDeserializer.php
 
on line 138

Does anyone know what I could be doing wrong please?

Like I said before, the only thing I change that produces the error, is the 
name of the report. 

Assume I am passing in no predicates, and only the 'AdGroupId' field into 
the selector. 

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d693ae9e-51b7-4ecb-9fd8-4bbcf750af23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • 'ReflectionExce... foluso
    • Re: 'Refle... foluso
      • Re: 'R... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
        • Re... Foluso Ogunlana
          • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to