Just a hunch, but does the xmlns for the sandbox differ? Your request XML has
xmlns="https://adwords.google.com/api/adwords/cm/v200909";

Perhaps it should be adwords-sandbox.google.com ?


--
Rohan


On Wednesday 02 June 2010 08:56 PM, JohnW2G wrote:
I see that this problem has been posted before and an Issue ticket was
made for it:

http://code.google.com/p/google-api-adwords-perl/issues/detail?id=12

But there has been no traction on it for over two months.  Is there
any ETA for a fix on this?

On Jun 2, 9:30 am, JohnW2G<[email protected]>  wrote:
I have set up the v200909 of the API libraries for Perl and tried to
run the sample display_stats.pl file.  I am able to send a request to
the sandbox environment just fine but I am getting back an error
response, here are the xmls:

Outgoing Request:
<SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/";>
         <SOAP-ENV:Header>
                 <RequestHeader 
xmlns="https://adwords.google.com/api/adwords/cm/
v200909">
                         <authToken>REDACTED</authToken>
                         <developerToken>xxx</developerToken>
                         <userAgent>Perl Google::AdWords::Client 1.3.2: 
xxx</userAgent>
                         <validateOnly>false</validateOnly>
                 </RequestHeader>
         </SOAP-ENV:Header>
         <SOAP-ENV:Body>
                 <get xmlns="https://adwords.google.com/api/adwords/cm/v200909";>
                         <selector>
                                 <statsSelector xmlns="">
                                         <dateRange>
                                                 <min>20090602</min>
                                                 <max>20100602</max>
                                         </dateRange>
                                 </statsSelector>
                         </selector>
                 </get>
         </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Incoming Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
         <soap:Body>
                 <soap:Fault>
                         <faultcode>soap:Server</faultcode>
                         <faultstring>Unmarshalling Error: 
cvc-complex-type.2.4.a: Invalid
content was found starting with element 'statsSelector'. One of
'{"https://adwords.google.com/api/adwords/cm/v200909":campaignIds,
"https://adwords.google.com/api/adwords/cm/v200909":adGroupIds,
"https://adwords.google.com/api/adwords/cm/v200909":adIds, "https://
adwords.google.com/api/adwords/cm/v200909":statsSelector, "https://
adwords.google.com/api/adwords/cm/v200909":paging}' is expected.</
faultstring>
                 </soap:Fault>
         </soap:Body>
</soap:Envelope>

Error deserializing message: Unmarshalling Error: cvc-complex-type.
2.4.a: Invalid content was found starting with element
'statsSelector'. One of '{"https://adwords.google.com/api/adwords/cm/
v200909":campaignIds, "https://adwords.google.com/api/adwords/cm/
v200909":adGroupIds, "https://adwords.google.com/api/adwords/cm/
v200909":adIds, "https://adwords.google.com/api/adwords/cm/
v200909":statsSelector, "https://adwords.google.com/api/adwords/cm/
v200909":paging}' is expected.
.
Message was:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
         <soap:Body>
                 <soap:Fault>
                         <faultcode>soap:Server</faultcode>
                         <faultstring>Unmarshalling Error: 
cvc-complex-type.2.4.a: Invalid
content was found starting with element 'statsSelector'. One of
'{"https://adwords.google.com/api/adwords/cm/v200909":campaignIds,
"https://adwords.google.com/api/adwords/cm/v200909":adGroupIds,
"https://adwords.google.com/api/adwords/cm/v200909":adIds, "https://
adwords.google.com/api/adwords/cm/v200909":statsSelector, "https://
adwords.google.com/api/adwords/cm/v200909":paging}' is expected.</
faultstring>
                 </soap:Fault>
         </soap:Body>
</soap:Envelope>


--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to