Fault occurred while processing

228 views
Skip to first unread message

Simon

unread,
Apr 6, 2010, 1:09:36 AM4/6/10
to AdWords API Forum
I tried to run some code that worked last week, and it is now failing
against the sandbox.

The error message is rather unhelpful: "Fault occurred while
processing.".

Any ideas?

The operation was ADD a campaign.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Header><ResponseHeader xmlns="https://
adwords.google.com/api/adwords/cm/
v200909"><requestId>a5e2ba5c266feaf64868ab4e4fe3856c</
requestId><operations>1</operations><responseTime>127</
responseTime><units>1</units></ResponseHeader></
soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>Fault occurred while processing.</faultstring></
soap:Fault></soap:Body></soap:Envelope>


Regards,
Simon

AdWords API Advisor

unread,
Apr 6, 2010, 11:57:13 AM4/6/10
to AdWords API Forum
Hi Simon,

The sandbox was reset last Friday, so this could be just a temporary
glitch while trying to re-create your account. Can you try this
request again?

Best,
- Eric Koleda, AdWords API Team

Simon

unread,
Apr 6, 2010, 5:35:29 PM4/6/10
to AdWords API Forum

On Apr 7, 3:57 am, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:


> Hi Simon,
>
> The sandbox was reset last Friday, so this could be just a temporary
> glitch while trying to re-create your account.  Can you try this
> request again?

Still same problem today.

When using the v200909 API, there isn't any need to create a sandbox
account is there?
With the account I'm using, I can log into google adwords production
without problems.
As you can see below, I'm passing
clientEmail=client_1+production_account_id
developerToken=production_account_id++NZD
As I understand it, a sandbox account then gets created automatically.

I'm using the Java API, adwords-api-7.1.0-v2009.jar.

Here's the full logging from today (with userid and authtoken replaced
with #, and some linefeeds added).

Note that this code *did* work last week...

== 09:16:47,090 DEBUG [HTTPSender] Enter: HTTPSender::invoke
== 09:16:48,715 DEBUG [HTTPSender] XML sent:
== 09:16:48,715 DEBUG [HTTPSender]
---------------------------------------------------
== 09:16:48,715 DEBUG [HTTPSender] POST /api/adwords/cm/v200909/
CampaignService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related,
text/*
User-Agent: Axis/1.4
Host: adwords-sandbox.google.com
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 1373

<?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:RequestHeader soapenv:actor="http://schemas.xmlsoap.org/soap/
actor/next" soapenv:mustUnderstand="0" xmlns:ns1="https://
adwords.google.com/api/adwords/cm/v200909">
<ns1:authToken>###########################</ns1:authToken>
<ns1:clientEmail>client_1+########@gmail.com</ns1:clientEmail>
<ns1:developerToken>#########@gmail.com++NZD</ns1:developerToken>
<ns1:userAgent>AdWords API Java Client Library - v - GAS</
ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
</ns1:RequestHeader>
</soapenv:Header>
<soapenv:Body>
<mutate xmlns="https://adwords.google.com/api/adwords/cm/v200909">
<operations>
<operator>ADD</operator>
<operand>
<status>ACTIVE</status>
<budget>
<period>MONTHLY</period>
<amount><microAmount>1000000</microAmount></amount>
<deliveryMethod>STANDARD</deliveryMethod>
</budget>
<biddingStrategy xsi:type="ns2:ManualCPC" xmlns:ns2="https://
adwords.google.com/api/adwords/cm/v200909"/>
</operand>
</operations>
</mutate>
</soapenv:Body>
</soapenv:Envelope>
== 09:16:50,949 DEBUG [HTTPSender] HTTP/1.0 500 Internal Server Error
== 09:16:50,949 DEBUG [HTTPSender] Content-Type text/xml;
charset=UTF-8
== 09:16:50,949 DEBUG [HTTPSender] Date Tue, 06 Apr 2010 21:16:15 GMT
== 09:16:50,949 DEBUG [HTTPSender] Expires Tue, 06 Apr 2010 21:16:15
GMT
== 09:16:50,949 DEBUG [HTTPSender] Cache-Control private, max-age=0
== 09:16:50,949 DEBUG [HTTPSender] X-Content-Type-Options nosniff
== 09:16:50,949 DEBUG [HTTPSender] X-Frame-Options SAMEORIGIN
== 09:16:50,949 DEBUG [HTTPSender] X-XSS-Protection 1; mode=block
== 09:16:50,949 DEBUG [HTTPSender] Server GSE
== 09:16:50,981 DEBUG [HTTPSender]
no Content-Length
== 09:16:50,981 DEBUG [HTTPSender]
XML received:
== 09:16:50,981 DEBUG [HTTPSender]
-----------------------------------------------
== 09:16:51,152 DEBUG [HTTPSender]


<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200909">

<requestId>7630c34e2b28c62aca799b0f83ff29a0</requestId>
<operations>1</operations>
<responseTime>371</responseTime>
<units>1</units>
</ResponseHeader>
</soap:Header>


<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Fault occurred while processing.</faultstring>

</soap:Fault>
</soap:Body>
</soap:Envelope>
== 09:16:51,152 DEBUG [HTTPSender] Exit: HTTPDispatchHandler::invoke
== 09:16:51,168 DEBUG [soap_xml]
<?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:RequestHeader soapenv:actor="http://schemas.xmlsoap.org/soap/
actor/next" soapenv:mustUnderstand="0" xmlns:ns1="https://
adwords.google.com/api/adwords/cm/v200909">
<ns1:authToken xmlns:ns1="https://adwords.google.com/api/adwords/cm/
v200909">******</
ns1:authToken><ns1:clientEmail>client_1+#########@gmail.com</
ns1:clientEmail>
<ns1:developerToken>#########@gmail.com++NZD</ns1:developerToken>
<ns1:userAgent>AdWords API Java Client Library - v - GAS</
ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
</ns1:RequestHeader>
</soapenv:Header>
<soapenv:Body>
<mutate xmlns="https://adwords.google.com/api/adwords/cm/v200909">
<operations>
<operator>ADD</operator>
<operand>
<status>ACTIVE</status>
<budget>
<period>MONTHLY</period>
<amount><microAmount>1000000</microAmount></amount>
<deliveryMethod>STANDARD</deliveryMethod>
</budget>
<biddingStrategy xsi:type="ns2:ManualCPC" xmlns:ns2="https://
adwords.google.com/api/adwords/cm/v200909"/>
</operand>
</operations>
</mutate>
</soapenv:Body>
</soapenv:Envelope>

== 09:16:51,168 DEBUG [request_info] email=#########@gmail.com
effectiveUser=client_1+########@gmail.com service=CampaignService
method=mutate operators={ADD: 1} responseTime=371 operations=1 units=1
requestId=7630c34e2b28c62aca799b0f83ff29a0 server=https://adwords-
sandbox.google.com isFault=true faultMessage=Fault occurred while
processing.

== 09:16:51,168 DEBUG [soap_xml]
<?xml version="1.0" encoding="UTF-8"?>


<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200909">

<requestId>7630c34e2b28c62aca799b0f83ff29a0</requestId>
<operations>1</operations>
<responseTime>371</responseTime>
<units>1</units>
</ResponseHeader>
</soap:Header>


<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Fault occurred while processing.</faultstring>

</soap:Fault>
</soap:Body>
</soap:Envelope>

Simon

unread,
Apr 6, 2010, 8:37:59 PM4/6/10
to AdWords API Forum
FYI, I've tested a GET campaigns request, and that works fine (returns
0). So authentication creds appear correctly configured here....

== request

<?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:RequestHeader soapenv:actor="http://schemas.xmlsoap.org/soap/
actor/next" soapenv:mustUnderstand="0" xmlns:ns1="https://
adwords.google.com/api/adwords/cm/v200909">

<ns1:authToken>#################</ns1:authToken>


<ns1:clientEmail>client_1+########@gmail.com</ns1:clientEmail>

<ns1:developerToken>###########@gmail.com++NZD</ns1:developerToken>


<ns1:userAgent>AdWords API Java Client Library - v - GAS</
ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
</ns1:RequestHeader>
</soapenv:Header>
<soapenv:Body>

<get xmlns="https://adwords.google.com/api/adwords/cm/
v200909"><selector/>
</get>
</soapenv:Body>
</soapenv:Envelope>

== response


<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200909">

<requestId>76c741d3e08da17322c0cf1b79719c60</requestId>
<operations>1</operations>
<responseTime>125</responseTime>


<units>1</units>
</ResponseHeader>
</soap:Header>
<soap:Body>

<getResponse xmlns="https://adwords.google.com/api/adwords/cm/
v200909">
<rval>
<totalNumEntries>0</totalNumEntries>
<Page.Type>CampaignPage</Page.Type>
<totalBudget>
<period>DAILY</period><amount>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>0</microAmount>
</amount>
<deliveryMethod>STANDARD</deliveryMethod>
</totalBudget>
</rval>
</getResponse>
</soap:Body>
</soap:Envelope>

AdWords API Advisor

unread,
Apr 7, 2010, 10:21:20 AM4/7/10
to AdWords API Forum
Hi Simon,

I ran some tests myself, and it looks like the problem is that you are
trying to create a campaign with a MONTHLY budget. The same request
with a DAILY budget works correctly. I'll follow up with the core
engineering team about this problem and let you know when I have more
information.

Best,
- Eric

On Apr 6, 8:37 pm, Simon <simon.kitch...@airnz.co.nz> wrote:
> FYI, I've tested a GET campaigns request, and that works fine (returns
> 0). So authentication creds appear correctly configured here....
>
> == request
>
> <?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:RequestHeader soapenv:actor="http://schemas.xmlsoap.org/soap/
> actor/next" soapenv:mustUnderstand="0" xmlns:ns1="https://
> adwords.google.com/api/adwords/cm/v200909">
> <ns1:authToken>#################</ns1:authToken>

> <ns1:clientEmail>client_1+#####...@gmail.com</ns1:clientEmail>
> <ns1:developerToken>########...@gmail.com++NZD</ns1:developerToken>

Simon

unread,
Apr 7, 2010, 7:54:37 PM4/7/10
to AdWords API Forum
On Apr 8, 2:21 am, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:

> I ran some tests myself, and it looks like the problem is that you are
> trying to create a campaign with a MONTHLY budget.  The same request
> with a DAILY budget works correctly.

Thanks very much Eric. I can confirm that switching to DAILY budget
works fine, and resolves this issue for me.

JosipK

unread,
Apr 9, 2010, 8:07:35 AM4/9/10
to AdWords API Forum
Hi,

I have the same problem.

Everything works fine for Daily budget, but it fails for Monthly
budget.

Regards,

--
Josip
GemBox.Ppc - http://www.GemBoxSoftware.com/Ppc/Overview.htm - Advanced
AdWords API for C# / VB.NET

AdWords API Advisor

unread,
Apr 12, 2010, 10:01:46 AM4/12/10
to AdWords API Forum
Hi,

I heard back from the core engineering team, and the error is being
returned because the use of MONTHLY budgets is restricted. The error
message for this problem will be improved in the next version of the
API.

Best,
- Eric Koleda, AdWords API Team

On Apr 9, 8:07 am, JosipK <gemtest...@gmail.com> wrote:
> Hi,
>
> I have the same problem.
>
> Everything works fine for Daily budget, but it fails for Monthly
> budget.
>
> Regards,
>
> --
> Josip

> GemBox.Ppc -http://www.GemBoxSoftware.com/Ppc/Overview.htm- Advanced

Reply all
Reply to author
Forward
0 new messages