soap:Server Fault occurred while processing.

527 views
Skip to first unread message

brendan...@skinwest.com

unread,
Nov 7, 2010, 3:11:34 PM11/7/10
to AdWords API Forum
I've been up and down all 20 sets of documentation and have pretty
much reached my wits end, is there any way to get the google API to
actually tell you more about the errors?

Here's the XML, exactly (sans password/login info):

<?xml version="1.0"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header>
<applicationToken>Dj-XXXXXXXXXXXXX-R2</applicationToken>
<password>xxxxx</password>
<email>X...@example.com</email>
<clientEmail>client...@example.com</clientEmail>
<useragent>none</useragent>
<developerToken>X...@example.com++USD</developerToken>
</env:Header>
<env:Body>
<estimateKeywordList>
<keywordRequests>
<maxCpc>100000</maxCpc>
<text>mars cruise</text>
<type>Broad</type>
</keywordRequests>
</estimateKeywordList>
</env:Body>
</env:Envelope>



curl --header "Content-Type: application/soap+xml" --data @data.xml
$URL

I'm posting it to:

https://adwords-sandbox.google.com/api/adwords/cm/v201008/CampaignService


Here is what I'm getting:

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


Thanks!

Jamie

AdWords API Advisor

unread,
Nov 9, 2010, 6:41:32 PM11/9/10
to AdWords API Forum
Hi Jamie,

The estimateKeywordList() method is part of the v13
TrafficEstimatorService, but you are sending the request to the
v201008 CampaignService URL. Additionally, your request is missing
the AdWords API namespaces that are required. I recommend that you
use the new v201008 TrafficEstimatorService, which provides a single
get() method:

http://code.google.com/apis/adwords/docs/reference/latest/TrafficEstimatorService.html

Additionally, using one our client libraries can be much easier then
writing the XML by hand:

http://code.google.com/apis/adwords/docs/clientlibraries.html

Best,
- Eric Koleda, AdWords API Team

On Nov 7, 3:11 pm, "brendangorm...@skinwest.com"
<brendangorm...@skinwest.com> wrote:
> I've been up and down all 20 sets of documentation and have pretty
> much reached my wits end, is there any way to get the google API to
> actually tell you more about the errors?
>
> Here's the XML, exactly (sans password/login info):
>
> <?xml version="1.0"?>
> <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>         xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>         <env:Header>
>                 <applicationToken>Dj-XXXXXXXXXXXXX-R2</applicationToken>
>                 <password>xxxxx</password>
>                 <email>X...@example.com</email>
>                 <clientEmail>client_1+...@example.com</clientEmail>
>                 <useragent>none</useragent>
>                 <developerToken>X...@example.com++USD</developerToken>
>         </env:Header>
>         <env:Body>
>                 <estimateKeywordList>
>                         <keywordRequests>
>                                 <maxCpc>100000</maxCpc>
>                                 <text>mars cruise</text>
>                                 <type>Broad</type>
>                         </keywordRequests>
>                 </estimateKeywordList>
>         </env:Body>
> </env:Envelope>
>
> curl --header "Content-Type: application/soap+xml" --data @data.xml
> $URL
>
> I'm posting it to:
>
> https://adwords-sandbox.google.com/api/adwords/cm/v201008/CampaignSer...
Reply all
Reply to author
Forward
0 new messages