Hi Keith,

An XML_STREAM_EXC error means that your SOAP request is not valid
XML.  In this case the error stems from the fact that you are using
the v20 namespace prefix in your header without defining it.

Best,
- Eric

On Jun 28, 6:38 pm, RedZoneGlobal <ke...@redzoneglobal.com> wrote:
> Eric,
>
> Sending:
>
> <?xml version="1.0" encoding="utf-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/
> encoding/">
> <SOAP-ENV:Header>
> <v20:RequestHeader>
> <v20:applicationToken xsi:type="xsd:string">xxxxxxxxxxxxxxxxxx</
> v20:applicationToken>
> <v20:authToken xsi:type="xsd:string">xxxxxxxxxxxxxxxxxxxxxxxxx</
> v20:authToken>
> <v20:clientEmail xsi:type="xsd:string">xxxxxxxxxxxxxxxx</
> v20:clientEmail>
> <v20:developerToken xsi:type="xsd:string">xxxxxxxxxxxxxxx</
> v20:developerToken>
> <v20:userAgent xsi:type="xsd:string">RedZoneGlobal</v20:userAgent>
> </v20:RequestHeader>
> </SOAP-ENV:Header>
>
> <SOAP-ENV:Body>
> <mutate xmlns="https://adwords.google.com/api/adwords/cm/v200909";>
> <operations>
>         <operator>SET</operator>
>         <operand xsi:type="AdScheduleTargetList">
>                 <campaignId>7028371</campaignId>
>                 <targets xsi:type="AdScheduleTarget">
>                         <dayOfWeek>MONDAY</dayOfWeek>
>                         <startHour>0</startHour>
>                         <startMinute>ZERO</startMinute>
>                         <endHour>0</endHour>
>                         <endMinute>ZERO</endMinute>
>                         <bidMultiplier>1</bidMultiplier>
>                 </targets>
>                 <targets xsi:type="AdScheduleTarget">
>                         <dayOfWeek>TUESDAY</dayOfWeek>
>                         <startHour>0</startHour>
>                         <startMinute>ZERO</startMinute>
>                         <endHour>0</endHour>
>                         <endMinute>ZERO</endMinute>
>                         <bidMultiplier>1</bidMultiplier>
>                 </targets>
>                 <targets xsi:type="AdScheduleTarget">
>                         <dayOfWeek>WEDNESDAY</dayOfWeek>
>                         <startHour>0</startHour>
>                         <startMinute>ZERO</startMinute>
>                         <endHour>0</endHour>
>                         <endMinute>ZERO</endMinute>
>                         <bidMultiplier>1</bidMultiplier>
>                 </targets>
>                 <targets xsi:type="AdScheduleTarget">
>                         <dayOfWeek>THURSDAY</dayOfWeek>
>                         <startHour>0</startHour>
>                         <startMinute>ZERO</startMinute>
>                         <endHour>0</endHour>
>                         <endMinute>ZERO</endMinute>
>                         <bidMultiplier>1</bidMultiplier>
>                 </targets>
>                 <targets xsi:type="AdScheduleTarget">
>                         <dayOfWeek>FRIDAY</dayOfWeek>
>                         <startHour>0</startHour>
>                         <startMinute>ZERO</startMinute>
>                         <endHour>0</endHour>
>                         <endMinute>ZERO</endMinute>
>                         <bidMultiplier>1</bidMultiplier>
>                 </targets>
>         </operand>
> </operations>
> </mutate>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> To:https://adwords.google.com/api/adwords/cm/v200909/CampaignTargetService
>
> Receiving a XML_STREAM_EXC error
> Complete Soap Packet: <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>
>
> I removed the validateOnly element from the header, as your example
> does not include it.
>
> The above API Mutate is intending to schedule the campaign to be live
> Weekdays (Mon-Fri) Midnight to Midnight (All 24 hours)...
>
> Regards,
>
> Keith
>
> On Jun 25, 3:32 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
> wrote:
>
>
>
> > Hi,
>
> > Unfortunately we don't have any v200909SOAPXMLsamples available at
> > the moment.  Here is a brief sample I just created that sets the
> > schedule of a campaign, so that it only shows on Mondays from 12-6 and
> > on Tuesday from 8-8:30.
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
> > envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/
> > v200909" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> >    <soapenv:Header>
> >       <v20:RequestHeader>
> >          <v20:authToken>...</v20:authToken>
> >          <v20:clientEmail>...</v20:clientEmail>
> >          <v20:developerToken>...</v20:developerToken>
> >          <v20:userAgent>...</v20:userAgent>
> >       </v20:RequestHeader>
> >    </soapenv:Header>
> >    <soapenv:Body>
> >       <mutate xmlns="https://adwords.google.com/api/adwords/cm/
> > v200909">
> >          <operations>
> >             <operator>SET</operator>
> >             <operand xsi:type="AdScheduleTargetList">
> >                <campaignId>...</campaignId>
> >                <targets xsi:type="AdScheduleTarget">
> >                   <dayOfWeek>MONDAY</dayOfWeek>
> >                   <startHour>12</startHour>
> >                   <startMinute>ZERO</startMinute>
> >                   <endHour>18</endHour>
> >                   <endMinute>THIRTY</endMinute>
> >                   <bidMultiplier>1</bidMultiplier>
> >                </targets>
> >                <targets xsi:type="AdScheduleTarget">
> >                   <dayOfWeek>TUESDAY</dayOfWeek>
> >                   <startHour>8</startHour>
> >                   <startMinute>ZERO</startMinute>
> >                   <endHour>8</endHour>
> >                   <endMinute>THIRTY</endMinute>
> >                   <bidMultiplier>1</bidMultiplier>
> >                </targets>
> >             </operand>
> >          </operations>
> >       </mutate>
> >    </soapenv:Body>
> > </soapenv:Envelope>
>
> > On Jun 24, 5:04 pm, RedZoneGlobal <ke...@redzoneglobal.com> wrote:
>
> > > Can someone post a workingXMLSample, so we can change our processes
> > > from V13 -> V200909?
> > > I searched the Adwords API Forums, but couldn't find any sample input
> > >XMLto the API.
> > > We use aSOAPcontrol, so we have to build the packet (semi
> > > manually).
>
> > > We only set the schedule for a single campaign at a time through the
> > > API.
>
> > > Thanks in advance!

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