Hi Ven,

A few points:

1) If you are building a new application you should definitely be
using the v2009 API.  The v13 API is set to be sunset in April, so it
doesn't make sense to build a new application on this version of the
API only to have to migrate it within a few months.

2) The client libraries are a great way to get started with the API.
Also, since they are released as Open Source you can build your own
version with exactly the features you desire.

3) I'm not sure if it is responsible for the error, but the main
problem I see with your request is you are using a campaign name in
place of a campaign ID.  The campaignID field should be the numerical
id of the campaign.

Best,
- Eric Koleda, AdWords API Tea,

On Dec 14, 8:15 am, ComputerPsi <vilme...@gmail.com> wrote:
> 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 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