Hi,

The problem appears to be that their header isn't set correctly. I'm
not sure how clearly we document it right now, but unlike v13 instead
of setting each header directly you need to set one header called
"RequestHeader" which then has a field for each of the header values:

<SOAP-ENV:Header>
  <RequestHeader xmlns=" https://adwords.google.com/api/adwords/cm/v200906";>
    <authToken>INSERT_AUTHENTICATION_TOKEN_HERE</authToken>
    <userAgent>INSERT_USERAGENT_HERE</userAgent>
    <developerToken>INSERT_DEVELOPER_TOKEN_HERE</developerToken>
    <applicationToken>INSERT_APPLICATION_TOKEN_HERE</applicationToken>
    <clientEmail>INSERT_CLIENT_LOGIN_EMAIL_HERE</clientEmail>
  </RequestHeader>
</SOAP-ENV:Header>

Best,
- Eric

On Jan 29, 1:57 pm, shriny <shr...@gmail.com> wrote:
> Hi Eric,
>
> I am using this url
>
> https://adwords.google.com/api/adwords/cm/v200909/CampaignService
>
> hope this is the correct one
>
> -Shriny
>
> On Jan 29, 8:08 am, AdWords API Advisor <adwordsapiadvi...@google.com>
> wrote:
>
>
>
> > Hi,
>
> > Which URL are you using to create your service?  I think you may be
> > sending a v2009 request to a v13 endpoint.
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Jan 28, 2:03 pm, shriny <shr...@gmail.com> wrote:
>
> > > I just tried a simple add campaigns and got this error,
> > > "Fault occurred while processing"
>
> > > Out Soap Message says
> > > <soap:Body><soap:Fault>
> > > <faultcode>soap:Server</faultcode>
> > > <faultstring>Fault occurred while processing.</faultstring>
> > > </soap:Fault>
> > > </soap:Body>
>
> > > Here is my soap resquest and response.
>
> > > =======================================================
> > > = Elapsed: 274 milliseconds
> > > = In message: <?xml version="1.0" encoding="UTF-8"?>
> > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
> > > envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> > > <soapenv:Header>
> > > <ns1:email soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
> > > soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/
> > > adwords/cm/v200909">emailid</ns1:email>
> > > <ns2:authToken soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
> > > next" soapenv:mustUnderstand="0" xmlns:ns2="https://adwords.google.com/
> > > api/adwords/cm/v200909">authtoken</ns2:authToken>
> > > <ns3:useragent soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
> > > next" soapenv:mustUnderstand="0" xmlns:ns3="https://adwords.google.com/
> > > api/adwords/cm/v200909">AdWords API Java Sample Code</ns3:useragent>
> > > <ns4:developerToken soapenv:actor="http://schemas.xmlsoap.org/soap/
> > > actor/next" soapenv:mustUnderstand="0" xmlns:ns4="https://
> > > adwords.google.com/api/adwords/cm/v200909">xxx</ns4:developerToken>
> > > <ns5:applicationToken soapenv:actor="http://schemas.xmlsoap.org/soap/
> > > actor/next" soapenv:mustUnderstand="0" xmlns:ns5="https://
> > > adwords.google.com/api/adwords/cm/v200909">xxx-xxx</
> > > ns5:applicationToken>
> > > </soapenv:Header>
> > > <soapenv:Body>
> > > <mutate xmlns="https://adwords.google.com/api/adwords/cm/v200909";>
> > > <operations>
> > > <operator>ADD</operator>
> > > <operand>
> > > <name>Sample Campaign</name>
> > > <status>ACTIVE</status>
> > > <budget>
> > > <period>DAILY</period>
> > > <amount>
> > > <ComparableValue.Type>USD</ComparableValue.Type>
> > > <microAmount>50000000</microAmount></amount>
> > > <deliveryMethod>STANDARD</deliveryMethod>
> > > </budget>
> > > <biddingStrategy xsi:type="ns6:ManualCPC" xmlns:ns6="https://
> > > adwords.google.com/api/adwords/cm/v200909"/>
> > > </operand>
> > > </operations>
> > > </mutate>
> > > </soapenv:Body>
> > > </soapenv:Envelope>
> > > = Out message: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/
> > > soap/envelope/">
> > > <soap:Body><soap:Fault>
> > > <faultcode>soap:Server</faultcode>
> > > <faultstring>Fault occurred while processing.</faultstring>
> > > </soap:Fault>
> > > </soap:Body></soap:Envelope>
> > > =======================================================

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