Hi Manuel, I think the problem is with the namespaces you are using. The RequestHeader element should be in the info namespace, while it's children (applicationToken, etc) should be in the cm namespace.
Best, - Eric Koleda, AdWords API Team On Nov 4, 1:17 pm, manuel <[email protected]> wrote: > Using this to get API usage, but getting "ServerFault occurred while > processing" error. > Do I need to set the DateRange? Can you help me correct the xml below? > Thanks. > > <?xml version="1.0" encoding="UTF-8"?> > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/ > envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/info/ > v201008" xmlns:ns2="https://adwords.google.com/api/adwords/o/v201008" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <SOAP-ENV:Header> > <ns2:RequestHeader xsi:type="ns2:RequestHeader"> > <ns2:applicationToken>xxxxxxx</ns2:applicationToken> > <ns2:authToken>xxxxxxx</ns2:authToken> > <ns2:developerToken>xxxxxxxxx</ > ns2:developerToken> > <ns2:userAgent>xxxxxxxxxx</ns2:userAgent> > <ns2:clientEmail>xxxxxxxxxx</ns2:clientEmail> > </ns2:RequestHeader> > </SOAP-ENV:Header> > <SOAP-ENV:Body> > <ns1:get xsi:type="get"> > <ns1:selector xsi:type="ns1:InfoSelector"> > <ns1:apiUsageType>TOTAL_USAGE_API_UNITS_PER_MONTH</ > ns1:apiUsageType> > </ns1:selector> > </ns1:get> > </SOAP-ENV:Body> > </SOAP-ENV: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
