Hi Maxim,

It looks like your SOAP headers aren't set correctly.  The SOAP
headers should look like this:

  <SOAP-ENV:Header>
    <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200909">
      <authToken>INSERT_AUTHENTICATION_TOKEN_HERE</authToken>
      <userAgent>INSERT_USERAGENT_HERE</userAgent>
      <developerToken>INSERT_DEVELOPER_TOKEN_HERE</developerToken>
      <applicationToken>INSERT_APPLICATION_TOKEN_HERE</
applicationToken>
      <clientEmail>INSERT_CLIENT_LOGIN_EMAIL_HERE</clientEmail>
    </RequestHeader>
  </SOAP-ENV:Header>

Best,
- Eric Koleda, AdWords API Team

On Jan 29, 1:54 am, Maxim <mse...@gmail.com> wrote:
> Here's a very basic API call:
>
> return campaignService.get(new CampaignSelector(new long[0], new
> CampaignStatus[0], null, null)).getEntries();
>
> results in:
> POST /api/adwords/cm/v200909/CampaignService HTTP/1.0
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related,
> text/*
> User-Agent: Axis/1.4
> Host: adwords.google.com
> Cache-Control: no-cache
> Pragma: no-cache
> SOAPAction: ""
> Content-Length: 1164
>
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Header><ns1:auth
> soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
> soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/
> adwords/cm/v200909">XXXXXXXXXXXXXXXXXXX</ns1:auth><ns2:useragent
> soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
> soapenv:mustUnderstand="0" xmlns:ns2="https://adwords.google.com/api/
> adwords/cm/v200909">XXXXXXXXXXXXXXXXX</
> ns2:useragent><ns3:developerToken soapenv:actor="http://
> schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"
> xmlns:ns3="https://adwords.google.com/api/adwords/cm/
> v200909">XXXXXXXXXXXXXX</ns3:developerToken></
> soapenv:Header><soapenv:Body><get xmlns="https://adwords.google.com/
> api/adwords/cm/v200909"><selector/></get></soapenv:Body></
> soapenv:Envelope>
>
> Response:
> HTTP/1.0 200 OK
> Content-Type text/xml; charset=UTF-8
> Date Fri, 29 Jan 2010 06:46:25 GMT
> Expires Fri, 29 Jan 2010 06:46:25 GMT
> Cache-Control private, max-age=0
> X-Content-Type-Options nosniff
> X-XSS-Protection 0
> X-Frame-Options SAMEORIGIN
> Server GFE/2.0
> no Content-Length
> -----------------------------------------------
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</
> faultcode><faultstring>Fault occurred while processing.</faultstring></
> soap:Fault></soap:Body></soap:Envelope>
>
> I get this error every time for all CampaignService calls.
>
>
>
> > Do you have the associated SOAP XML request and response for that error?

-- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to adwords-...@googlegroups.com.
To unsubscribe from this group, send email to 
adwords-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en.

Reply via email to