Hi Bill,

XML_STREAM_EXC error means that your xml is not well-formed. I'm not sure 
if this is a copy-paste error, but there should be a space after <?xml in 
the xml request you pasted.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Wednesday, 25 April 2012 02:13:35 UTC+5:30, Bill Jenkins wrote:
>
> Request: Can anyone suggest a solution to the XML_STREAM_EXC error I am 
> recieving?
>
>
> I'm learning the adwords API and tried implementing the Quick SOAP+XML 
> tutorial at  https://developers.google.com/adwords/api/docs/#soap
>
> After editing out the spaces used to indent the lines of XML code the 
> result passes validation at  http://validator.w3.org/check
>
> Here's the curl command I enter:  curl --header "Content-Type: 
> application/soap+xml" --data @hello_world.xml 
> https://adwords-sandbox.google.com/api/adwords/cm/v201109/CampaignService
>
> Here's the result:  <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>
>
> Here's the contents of hello_world.xml (with private info replaced by xxx)
>
> <?xmlversion ="1.0" encoding="UTF-8"?>
> <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns="https://adwords.google.com/api/adwords/cm/v201109";>
> <soap:Header>
> <RequestHeader>
> <authToken>xxx</authToken>
> <userAgent>curl-tutorial</userAgent>
> <developerToken>x...@gmail.com</developerToken>
> <clientCustomerId>xxx-xxx-xxxx</clientCustomerId>
> </RequestHeader>
> </soap:Header>
> <soap:Body>
> <mutate>
> <operations>
> <operator>ADD</operator>
> <operand>
> <name>HelloWorld!withcURL</name>
> <budget>
> <period>DAILY</period>
> <amount>
> <microAmount>1000000000</microAmount>
> </amount>
> <deliveryMethod>STANDARD</deliveryMethod>
> </budget>
> <biddingStrategy
> xmlns:cm="https://adwords.google.com/api/adwords/cm/v201109";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:type="cm:ManualCPC"/>
> </operand>
> </operations>
> </mutate>
> </soap:Body>
> </soap:Envelope>
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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