madhabkirank / google-api-adwords-php

Automatically exported from code.google.com/p/google-api-adwords-php
0 stars 0 forks source link

AdGroupCriterionService GET query results in 'Fault Occurred While Processing' #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of the library are you using?
2.4.1 with patch from issue 50, API v201008

Which version of PHP are you using?
5.3.2-1ubuntu4.7, Ubuntu Lucid with Suhosin

What steps will reproduce the problem?
1) Construct an AdGroupCriterionService request, with a 
AdGroupCriterionSelector filtering by campaign ID(s) and date range
2) Execute query

What is the expected output? What do you see instead?

 - Expected output: A list of AdGroupCriteria, or an empty list with a successful return status
 - Output received: SOAP Fault from server, with an error of "Fault occurred while processing."

Please provide any additional information below.

Relevant entries from soap_xml.log are attached. The corresponding 
request_info.log entry reads thus:

[Feb 07 2011 13:07:26.000000 - INFO] email=mcc@akauk.com 
effectiveUser=client_1+mcc@akauk.com service=AdGroupCriterionService method=get 
operators={} responseTime= requestId= operations= units= 
server=adwords-sandbox.google.com isFault=true faultMessage=Fault occurred 
while processing.

The only possible factor I can see is that with PHP 5.3 the RequestHeader 
element is in namespace ns2, while its xsi:type is given as ns1:RequestHeader. 
The same code running under PHP 5.2.17 results in both the element namespace 
and xsi:type under ns1. I have no idea where to begin tracking this occurrence.

Original issue reported on code.google.com by mcegie...@gmail.com on 7 Feb 2011 at 1:34

GoogleCodeExporter commented 8 years ago
Adding attachment

Original comment by mcegie...@gmail.com on 7 Feb 2011 at 1:39

Attachments:

GoogleCodeExporter commented 8 years ago
I believe the error is due to having a the dateRange field inside a paging 
field.  The dateRange is part of the statsSelector, not the paging.

Original comment by api.ekol...@gmail.com on 7 Feb 2011 at 3:47