I just started working on AdWords API.

I am using the following SOAP request to retrieve all campaigns in
sand box environment.

<?xml version="1.0"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <env:Header>
    <applicationToken>XXXXXXXXXXXXXXXX</applicationToken>
   <password>XXXXXXXXX</password>
    <email>xxxxxxxxxx...@gmail.com</email>
    <clientEmail>client_1+xxxx...@gmail.com</clientEmail>
    <useragent>XXXXX</useragent>
    <developerToken>xxxxxx...@gmail.com++usd</developerToken>
  </env:Header>
  <env:Body>
    <getAllAdWordsCampaigns>
      <dummy>0</dummy>
    </getAllAdWordsCampaigns>
  </env:Body>
</env:Envelope>

The following are the headers that are being set before sending the
request in Visual Basic using XMLHttp object:

objHTTP.Open "POST", "https://sandbox.google.com/api/adwords/v13/
CampaignService", False

objHTTP.setRequestHeader "Content-Type", "text/xml"
objHTTP.setRequestHeader "Connection", "open"
objHTTP.setRequestHeader "SOAPAction", ""

objHTTP.send soap_request

I am getting the following response:

<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:Body>
  <soapenv:Fault>
   <faultcode xmlns:ns1="http://xml.apache.org/
axis/">ns1:Client.NoSOAPAction</faultcode>
   <faultstring>no SOAPAction header!</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

I did not find much help on groups regarding this error. I would
appreciate your help in figuring out what the problem is?


--~--~---------~--~----~------------~-------~--~----~
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-api@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