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>[email protected]</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 [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