Hi Eric,

Thanks for your advice and it works now. Thank you.

About authToken in my post, it is NOT a real authToken, it is fake, so
it is OK.

All the best,

David



On Feb 3, 1:43 am, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> Hi Dave,
>
> The first point is that you shouldn't post your authToken in public
> forum, as it can be used to access your account.  These tokens
> normally expire after two weeks, but if you want to revoke it sooner
> you need to change the password on your account.
>
> As for the error, it is caused by invalid XML being sent.  In your
> case the XML prefix "soap" is undefined when it is used in
> <soap:Header>.  You've defined the prefix as "SOAP-ENV" and used it
> correctly in the body, and need to use the same prefix in the header.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 2, 8:43 am, Dave L <googlecen...@apexpacific.com> wrote:
>
> > Hi, I received following error when try to get campaigns:
>
> > <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 is my request string:
>
> > -------------------
> > <?xml version="1.0" encoding="UTF-8"?><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:Header>
> > <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
> > v200909">
> > <authToken>DQAAAIgAAACGxds-vcXArSDyIQLCtp2BOPPcnSDU7S78Zg6qt74IjV</
> > authToken>
> > <useragent>xxxxxx</useragent>
> > <developerToken>xxxxxxx</developerToken>
> > <applicationToken>xxxxxxx</applicationToken>
> > </RequestHeader>
> > </soap:Header>
> > <SOAP-ENV:Body>
> > <get xmlns="https://adwords.google.com/api/adwords/cm/v200909";>
> > <selector/>
> > </get>
> > </SOAP-ENV:Body>
> > </SOAP-ENV:Envelope>
> > ---------------------------------
>
> > Could you please let me know what I am doing wrong? and what does
> > XML_STREAM_EXC mean?

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