Hi, For reasons to lenghty to go into, I'm not using any client libraries, instead I manually post XML to the Google API service, from a Unix prompt using curl. However no matter what I try I always get the following returned:
HTTP/1.1 500 Internal Server Error <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <soap:Fault> <faultcode>soap:Client</faultcode> <faultstring>XML_STREAM_EXC</faultstring> </soap:Fault> </soap:Body> </soap:Envelope> This is the XML I am posting: <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/ envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header> <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/ v200909"> <authToken>xxx</authToken> <userAgent>XML V200909</userAgent> <developerToken>xxx</developerToken> <applicationToken>xxx</applicationToken> <clientEmail>[email protected]</clientEmail> </RequestHeader> </SOAP-ENV:Header> <SOAP-ENV:Body> <mutate xmlns="https://adwords.google.com/api/adwords/cm/v200909"> <operations> <operator>ADD</operator> <operand> <campaignId>1234</campaignId> <name>Vauxhall Insignia (175220)</name> <status>ENABLED</status> <bids xsi:type="ManualCPCAdGroupBids"> <keywordMaxCpc> <amount> <microAmount>240000</microAmount> </amount> </keywordMaxCpc> </bids> </operand> </operations> </mutate> </SOAP-ENV:Body> </SOAP-ENV:Envelope> This is posted to https://adwords.google.com/api/adwords/cm/v200909/AdGroupService using curl: curl -d xml_file_to_post.xml -H SOAPAction: https://adwords.google.com/api/adwords/cm/v200909/AdGroupService Can anyone help with this? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. 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 To unsubscribe from this group, send email to adwords-api+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
