I'm trying to implement Google adwords API. I am doing this without
downloading any extra SOAP libraries to keep off the extra load of
bloated features. So far I made the following request:

POST /api/adwords/v13/AdGroupService HTTP/1.0
Content-Type: application/xml; charset=UTF-8
Accept: application/xml; charset=UTF-8
Host: adwords.google.com
SOAPAction:
Content-Length: 719


<?xml version="1.0"?>
<soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
                    xmlns="https://adwords.google.com/api/adwords/v13";>

  <soap:Header>
    <email>MyEmail</email>
    <password>MyPassword</password>
    <useragent>MyUserAgent</useragent>
    <developerToken>MyDeveloperToken</developerToken>

    <applicationToken>MyApplicationToken</applicationToken>
    <clientEmail>MyClientEmail</clientEmail>
  </soap:Header>
        <soap:Body><!-- Creates a new ad group given an existing campaign. --
>
        <addAdGroup>
        <campaignID>Best Chinese Medicines</campaignID>
        <newData>

        <name>item93</name>
        <status>Enabled</status>
        </newData>
        </addAdGroup></soap:Body>
</soap:Envelope>


Unfortunately I receive the following response:

HTTP/1.0 500 Internal Server Error

Content-Type: text/xml; charset=utf-8

Date: Mon, 14 Dec 2009 12:52:02 GMT

Expires: Mon, 14 Dec 2009 12:52:02 GMT

Cache-Control: private, max-age=0

X-Content-Type-Options: nosniff

X-XSS-Protection: 0

X-Frame-Options: SAMEORIGIN

Server: GFE/2.0



<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>soapenv:Server.userException</faultcode>

   <faultstring>The request xml was invalid.</faultstring>

   <detail>

    <ns1:fault xmlns:ns1="https://adwords.google.com/api/adwords/v13";>

     <ns1:code>73</ns1:code>

     <ns1:message>The request xml was invalid.</ns1:message>

     <ns1:trigger>org.xml.sax.SAXParseException: The processing
instruction target matching &quot;[xX][mM][lL]&quot; is not allowed.</
ns1:trigger>

    </ns1:fault>

   </detail>

  </soapenv:Fault>

 </soapenv:Body>

</soapenv:Envelope>


Can you please tell me what is wrong?
(Note - I am choosing not to use v2009 for now..)

Thank you,
Ven

--

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