Internal Errors for v200906 API

33 views
Skip to first unread message

AdWords API Advisor

unread,
Aug 13, 2009, 5:51:51 PM8/13/09
to AdWords API Forum
Many people have noticed that calls made to the the AdWords v2009 API
is returning internal errors for many requests made to it. The core
engineering team was notified of the issue this morning and they have
been looking into it. I will update this thread with new information
as I receive it.

Best,
- Eric Koleda, AdWords API Team

AdWords API Advisor

unread,
Aug 14, 2009, 9:47:47 AM8/14/09
to AdWords API Forum
This issue has been resolved and v200906 requests should be working
again. Let us know if you encounter any other errors.

Best,
- Eric

On Aug 13, 5:51 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:

knguyen

unread,
Aug 14, 2009, 11:54:03 AM8/14/09
to AdWords API Forum
I'm still getting this error in sandbox environment when getting the
campaigns from a client account.

On Aug 14, 6:47 am, AdWords API Advisor <adwordsapiadvi...@google.com>

AdWords API Advisor

unread,
Aug 14, 2009, 1:22:43 PM8/14/09
to AdWords API Forum
Hi,

Are you receiving the same fault code as reported earlier? Can you
post the response SOAP XML?

Thanks,
- Eric

knguyen

unread,
Aug 14, 2009, 2:34:34 PM8/14/09
to AdWords API Forum
Response 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/
v200906"><requestId>86db7870c60f40d427b70faa0761c80d</
requestId><operations>1</operations><responseTime>233</
responseTime><units>1</units></ResponseHeader></
soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@ </faultstring><detail><ApiExceptionFault xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </
message><ApplicationException.Type>ApiException</
ApplicationException.Type><errors xsi:type="InternalApiError"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><fieldPath/
><trigger/><ApiError.Type>InternalApiError</
ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></
ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

If you're interested, here is the code:
CampaignServiceInterface service = user.getService
(AdWordsService.V200906.CAMPAIGN_SERVICE);

CampaignPage page = service.get(new CampaignSelector());
for (Campaign campaign : page.getEntries()) {
System.out.println(campaign.getName() + " " + campaign.getId());
}

On Aug 14, 10:22 am, AdWords API Advisor

Mauro

unread,
Aug 14, 2009, 4:47:54 PM8/14/09
to AdWords API Forum
Yeap! I'm getting the same error.

Response XML:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Header><ResponseHeader xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><requestId>dde29a24c3b217361ada4cece21131b6</
requestId><operations>1</operations><responseTime>177</
responseTime><units>1</units></ResponseHeader></
soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@ </faultstring><detail><ApiExceptionFault xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </
message><ApplicationException.Type>ApiException</
ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xsi:type="InternalApiError"><fieldPath></
fieldPath><trigger></trigger><ApiError.Type>InternalApiError</
ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></
ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

AdWords API Advisor

unread,
Aug 14, 2009, 5:53:16 PM8/14/09
to AdWords API Forum
Hi,

Thanks for the information, I'll get in touch with the core
engineering team and let them that some users are still experiencing
issues. I'll update this thread when I have more information.

Best,
- Eric

ernnie

unread,
Aug 17, 2009, 2:51:43 AM8/17/09
to AdWords API Forum
same here: here's the soap request and response:

Request:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:ns1="https://adwords.goog
le.com/api/adwords/cm/v200906"><SOAP-ENV:Header><RequestHeader
xmlns="https://adwords.google.com/api/adwords/
cm/
v200906"><authToken>DQAAAH8AAAC6EmNlvQyf6FVkixpw6eEwJagOsOESaYigsZ1LkqVE4Up7guH4ej4-
WTsg2BEH_tIuBfzBSJQaCF
Cz0Bf4VGWy97g17I36uWL1RvrsL8SbXMybohR98r2hfwrOnBqQIaLkMkvNOySHeGnrVldMzngrqdS3GGK9oDsEbeTbSwceNA</
authToken><
clientEmail>client_1...@gmail.com</clientEmail><userAgent>Katana
Agent</userAgent><developerToken>***************</
developerToken><applicationToken>*****************</applicationToken></
RequestHeader>
</SOAP-ENV:Header><SOAP-ENV:Body><get xmlns="https://
adwords.google.com/api/adwords/cm/v200906"><selector></s
elector></get></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Header><ResponseHeader xmlns="htt
ps://adwords.google.com/api/adwords/cm/v200906"><requestId>0957b70f52f39887c81c8fc011fa1ba4</requestId><opera
tions>1</operations><responseTime>109</responseTime><units>1</units></
ResponseHeader></soap:Header><soap:Body
><soap:Fault><faultcode>soap:Server</faultcode><faultstring>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
</faultstring><detail><ApiExceptionFault xmlns="https://
adwords.google.com/api/adwords/cm/v200906"><message>I
nternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </
message><ApplicationException.Type>ApiException</Applicatio
nException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="InternalApiError"><fi
eldPath></fieldPath><trigger></
trigger><ApiError.Type>InternalApiError</
ApiError.Type><reason>UNEXPECTED_INTE
RNAL_API_ERROR</reason></errors></ApiExceptionFault></detail></
soap:Fault></soap:Body></soap:Envelope>

On Aug 15, 5:53 am, AdWords API Advisor <adwordsapiadvi...@google.com>

AdWords API Advisor

unread,
Aug 17, 2009, 10:11:01 AM8/17/09
to AdWords API Forum, ernnie
Hi Ernie,

When did that error occur? We are trying to locate it in the logs and
knowing the time of the error (and your timezone) would help.

Thanks,
- Eric

On Aug 17, 2:51 am, ernnie <ernn...@gmail.com> wrote:
> same here: here's the soap request and response:
>
> Request:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:ns1="https://adwords.goog
> le.com/api/adwords/cm/v200906"><SOAP-ENV:Header><RequestHeader
> xmlns="https://adwords.google.com/api/adwords/
> cm/
> v200906"><authToken>DQAAAH8AAAC6EmNlvQyf6FVkixpw6eEwJagOsOESaYigsZ1LkqVE4Up 7guH4ej4-
> WTsg2BEH_tIuBfzBSJQaCF
> Cz0Bf4VGWy97g17I36uWL1RvrsL8SbXMybohR98r2hfwrOnBqQIaLkMkvNOySHeGnrVldMzngrq dS3GGK9oDsEbeTbSwceNA</
> authToken><
> clientEmail>client_1...@gmail.com</clientEmail><userAgent>Katana
> Agent</userAgent><developerToken>***************</
> developerToken><applicationToken>*****************</applicationToken></
> RequestHeader>
> </SOAP-ENV:Header><SOAP-ENV:Body><get xmlns="https://
> adwords.google.com/api/adwords/cm/v200906"><selector></s
> elector></get></SOAP-ENV:Body></SOAP-ENV:Envelope>
>
> Response:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Header><ResponseHeader xmlns="htt
> ps://adwords.google.com/api/adwords/cm/v200906"><requestId>0957b70f52f39887 c81c8fc011fa1ba4</requestId><opera
> tions>1</operations><responseTime>109</responseTime><units>1</units></
> ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>InternalApiErro r.UNEXPECTED_INTERNAL_API_ERROR @

Tam

unread,
Aug 17, 2009, 10:58:20 AM8/17/09
to AdWords API Forum
Hi Eric
If it's any help, note that I got the same result when trying to
access the campaign service a couple of minutes before writing this

Regards

Tam

On Aug 17, 3:11 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> Hi Ernie,
>
> When did that error occur?  We are trying to locate it in the logs and
> knowing the time of the error (and your timezone) would help.
>
> Thanks,
> - Eric
>
> On Aug 17, 2:51 am, ernnie <ernni...@gmail.com> wrote:
>
> > same here: here's the soap request and response:
>
> > Request:
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> > envelope/" xmlns:ns1="https://adwords.goog
> > le.com/api/adwords/cm/v200906"><SOAP-ENV:Header><RequestHeader
> > xmlns="https://adwords.google.com/api/adwords/
> > cm/
> > v200906"><authToken>DQAAAH8AAAC6EmNlvQyf6FVkixpw6eEwJagOsOESaYigsZ1LkqVE4Up 7guH4ej4-
> > WTsg2BEH_tIuBfzBSJQaCF
> > Cz0Bf4VGWy97g17I36uWL1RvrsL8SbXMybohR98r2hfwrOnBqQIaLkMkvNOySHeGnrVldMzngrq dS3GGK9oDsEbeTbSwceNA</
> > authToken><
> > clientEmail>client_1+ernni...@gmail.com</clientEmail><userAgent>Katana

ernnie

unread,
Aug 18, 2009, 1:09:00 AM8/18/09
to AdWords API Forum
It seems ok now.. the error occurred yesterday.. I'll post again if
the problem persists.
btw GMT+8 is my timezone.

Thanks
--Ernnie

On Aug 17, 10:11 pm, AdWords API Advisor
> On Aug 17, 2:51 am, ernnie <ernni...@gmail.com> wrote:
>
> > same here: here's the soap request and response:
>
> > Request:
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> > envelope/" xmlns:ns1="https://adwords.goog
> > le.com/api/adwords/cm/v200906"><SOAP-ENV:Header><RequestHeader
> > xmlns="https://adwords.google.com/api/adwords/
> > cm/
> > v200906"><authToken>DQAAAH8AAAC6EmNlvQyf6FVkixpw6eEwJagOsOESaYigsZ1LkqVE4Up 7guH4ej4-
> > WTsg2BEH_tIuBfzBSJQaCF
> > Cz0Bf4VGWy97g17I36uWL1RvrsL8SbXMybohR98r2hfwrOnBqQIaLkMkvNOySHeGnrVldMzngrq dS3GGK9oDsEbeTbSwceNA</
> > authToken><
> > clientEmail>client_1+ernni...@gmail.com</clientEmail><userAgent>Katana

AdWords API Advisor

unread,
Aug 18, 2009, 9:29:19 AM8/18/09
to AdWords API Forum
Although it returned the same SOAP fault, the errors yesterday were
actually caused by another problem. That problem has now been
resolved, so let us know if you still are receiving exceptions.

Best,
- Eric

Mauro Spivak

unread,
Aug 18, 2009, 9:59:28 AM8/18/09
to adwordsa...@google.com, AdWords API Forum
Hi,

Still getting the error. Do you think I might be doing something wrong? Or does the "internal" thing tells the error is in the API server?

This is the XML response I just got:
Date: Tue, 18 Aug 2009 13:49:22 GMT
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v200906"><requestId>b35a146a232d6526ff8ac99cb07a8b34</requestId><operations>1</operations><responseTime>279</responseTime><units>1</units></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v200906"><message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="InternalApiError"><fieldPath></fieldPath><trigger></trigger><ApiError.Type>InternalApiError</ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
Cheers,

Mauro

Mauro

unread,
Aug 18, 2009, 10:56:01 AM8/18/09
to AdWords API Forum
I'll post the request as well.

<?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/" xmlns:ns2057="http://
tempuri.org">
<SOAP-ENV:Header>
<RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200906">

<authToken>DQAAAHwAAACMWmX77qL1nk4o7qti1M9RqqkTPDEboquSKCmEIqM5cC9vf0upGw34KtnQ3U40zORn2NgFo3VUxTRNBU_M2J7ubn8mMAZygR-
T5N5X0RQ0v5O32uMO4rk_iaRT6wsJEukRQzA7aDxrBHvlEgjmn0qVsQcTfL8fLRULrYlg7-9dbQ</
authToken>
<userAgent>Me</userAgent>
<developerToken>jo...@doe.com++USD</developerToken>
<applicationToken/>
</RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<mutate xmlns="https://adwords.google.com/api/adwords/cm/v200906">
<operations>
<operation>
<name>Test</name>
<status>Active</status>
<startDate>20091001</startDate>
<endDate>20091225</endDate>
<budget>
<period>Daily</period>
<deliveryMethod>STANDARD</deliveryMethod>
<amount>
<currencyCode>USD</currencyCode>
<microAmount>1000000</microAmount>
</amount>
</budget>
</operation>
</operations>
</mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


On Aug 18, 10:59 am, Mauro Spivak <mau...@gmail.com> wrote:
> Hi,
> Still getting the error. Do you think I might be doing something wrong? Or
> does the "internal" thing tells the error is in the API server?
>
> This is the XML response I just got:
>
> Date: Tue, 18 Aug 2009 13:49:22 GMT
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader
> xmlns="https://adwords.google.com/api/adwords/cm/v200906"><requestId>b35a146a232d6526ff8ac99cb07a8b34</requestId><operations>1</ope rations><responseTime>279</responseTime><units>1</units></ResponseHeader></ soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><fault string>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
> @ </faultstring><detail><ApiExceptionFault
> xmlns="https://adwords.google.com/api/adwords/cm/v200906"><message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
> @ </message><ApplicationException.Type>ApiException</ApplicationException.Typ e><errors
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="InternalApiError"><fieldPath></fieldPath><trigger></trigger><ApiE rror.Type>InternalApiError</ApiError.Type><reason>UNEXPECTED_INTERNAL_API_E RROR</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body ></soap:Envelope>
> > > > > clientEmail>client_1+ernni...@gmail.com<client_1%2Bernni...@gmail.com>

Tam

unread,
Aug 18, 2009, 11:02:55 AM8/18/09
to AdWords API Forum
Hi There

We're also still getting similar error messages, (i.e.
'UNEXPECTED_INTERNAL_API_ERROR ') to what Mauro's getting above. Can
you please clarify whether this message could conceivably be generated
in response to a problem at our end or something we are doing wrong,
(for example, due to the soap or xml being incorrectly formatted) or
is it always / usually going to be indicative of a problem with the
actual web service?

Regards

Tam Laniado

On Aug 18, 3:56 pm, Mauro <mau...@gmail.com> wrote:
> I'll post the request as well.
>
> <?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/" xmlns:ns2057="http://
> tempuri.org">
>         <SOAP-ENV:Header>
>                 <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
> v200906">
>
> <authToken>DQAAAHwAAACMWmX77qL1nk4o7qti1M9RqqkTPDEboquSKCmEIqM5cC9vf0upGw34KtnQ3U40zORn2NgFo3VUxTRNBU_M2J7ubn8mMAZygR-
> T5N5X0RQ0v5O32uMO4rk_iaRT6wsJEukRQzA7aDxrBHvlEgjmn0qVsQcTfL8fLRULrYlg7-9dbQ</
> authToken>
>                         <userAgent>Me</userAgent>
>                         <developerToken>j...@doe.com++USD</developerToken>
> ...
>
> read more »

AdWords API Advisor

unread,
Aug 18, 2009, 2:27:43 PM8/18/09
to AdWords API Forum
Mauro,

In your example request above, the error is due to a mistake in your
request XML. You are missing the <operator> element and include the
non-existent <operation>. Please see the sample XML for adding a
campaign:
http://code.google.com/p/adwords-api-xml-samples/source/browse/trunk/src/v200906/add_campaign.xml

Best,
- Eric

On Aug 18, 10:56 am, Mauro <mau...@gmail.com> wrote:
> I'll post the request as well.
>
> <?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/" xmlns:ns2057="http://
> tempuri.org">
>         <SOAP-ENV:Header>
>                 <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
> v200906">
>
> <authToken>DQAAAHwAAACMWmX77qL1nk4o7qti1M9RqqkTPDEboquSKCmEIqM5cC9vf0upGw34 KtnQ3U40zORn2NgFo3VUxTRNBU_M2J7ubn8mMAZygR-
> T5N5X0RQ0v5O32uMO4rk_iaRT6wsJEukRQzA7aDxrBHvlEgjmn0qVsQcTfL8fLRULrYlg7-9dbQ </
> authToken>
>                         <userAgent>Me</userAgent>
>                         <developerToken>j...@doe.com++USD</developerToken>
> ...
>
> read more »

AdWords API Advisor

unread,
Aug 18, 2009, 2:31:08 PM8/18/09
to AdWords API Forum
Hi Tam,

It is possible that your errors are caused by malformed requests. Can
you please post the request id of the request that failed?

Thanks,
- Eric
> ...
>
> read more »

Tam

unread,
Aug 19, 2009, 11:24:46 AM8/19/09
to AdWords API Forum
Hi Eric

I'm still getting UNEXPECTED_INTERNAL_API_ERROR @ responses to my
soap calls. I have generated this using your add_campaign.php script
although I slightly moved the position of the <endDate> tag and
removed the <currencyCode> from your code so it exactly matches what
you showed in the example, (the one in the link below) just in case
this matters. I'm assuming the order of these fields doesn't matter
anyway, but swapped it to be on the safe side.

http://code.google.com/p/adwords-api-xml-samples/source/browse/trunk/src/v200906/add_campaign.xml

So here is our header with the tags the order suggested in the link
above (authToken, userAgent,developerToken, applicationToken,
clientEmail)

(note that I've changed the email but everything else is the same)

<RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200906">
<authToken>DQAAAHUAAABmo4KIjOHn-
ytmhAg_j_ZqLtKnXUUOvvt6Sy3KIxamrvRPlQrOtP9L_ueEryLHmicXwe3KhSQ8gXw0hxqWR_6zdDdjuo-
TSnVW53RZV8LwudeRIRveU4dJK1BbM6mW5d4L08bVplDBpaH7MaKK_B9GMMOIAFL6b6MncgOkWiFgOg</
authToken>
<userAgent>blah</userAgent>
<developerToken>j_...@google.com++GBP</
developerToken><applicationToken>blah</applicationToken>
<clientEmail>j_...@google.com</clientEmail>
</RequestHeader>


I've also tried several different versions of the header, ordering it
in several ways in case the problem is with my header. I've tried the
following arrangements but none have worked. These include :

-the order you hard coded in your example code (authToken,
clientEmail, userAgent, developerToken, applicationToken)

- the order Mauro used in this thread above (authToken, userAgent,
developerToken, applicationToken)

Can you please clarify, does it matter which of the above formats we
ought to be using? Or do they all work?


and the request is :
<operator>ADD</operator>
<operand>
<name>Test Campaign - 1250690230</name>
<status>PAUSED</status>
<endDate>20101001</endDate>
<biddingStrategy xsi:type="ManualCPC"/>
<budget>
<period>DAILY</period>
<amount>
<microAmount>1000000</microAmount>
</amount>
<deliveryMethod>STANDARD</deliveryMethod>
</budget>
</operand>
</operations>
</mutate>

Have you any thoughts why this API call might still be failing
please? Apologies if this is something stupid but I'm baffled!

Kind Regards

Tam

On Aug 18, 7:31 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
> ...
>
> read more »

AdWords API Advisor

unread,
Aug 20, 2009, 11:32:12 AM8/20/09
to AdWords API Forum, Tam
Hi Tam,

I've found your entries in the log, and the cause of your error is
that you are setting the clientEmail header to your MCC account, not
an AdWords client account. MCC accounts cannot run campaigns, and
that was causing the error. In your example for instance, the
clientEmail header should be something like
client_...@google.com. You can read more about the headers
required in the sandbox here:
http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbox.html#requestheaders.

Best,
- Eric

On Aug 19, 11:24 am, Tam <Tam.L...@tradedoubler.com> wrote:
> Hi Eric
>
> I'm still getting UNEXPECTED_INTERNAL_API_ERROR @  responses to my
> soap calls.  I have generated this using your add_campaign.php script
> although I slightly moved the position of the <endDate> tag and
> removed the <currencyCode> from your code so it exactly matches what
> you showed in the example, (the one in the link below) just in case
> this matters. I'm assuming the order of these fields doesn't matter
> anyway, but swapped it to be on the safe side.
>
> http://code.google.com/p/adwords-api-xml-samples/source/browse/trunk/...
>
> So here is our header with the tags the order suggested in the link
> above (authToken, userAgent,developerToken, applicationToken,
> clientEmail)
>
> (note that I've changed the email but everything else is the same)
>
> <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
> v200906">
> <authToken>DQAAAHUAAABmo4KIjOHn-
> ytmhAg_j_ZqLtKnXUUOvvt6Sy3KIxamrvRPlQrOtP9L_ueEryLHmicXwe3KhSQ8gXw0hxqWR_6z dDdjuo-
> TSnVW53RZV8LwudeRIRveU4dJK1BbM6mW5d4L08bVplDBpaH7MaKK_B9GMMOIAFL6b6MncgOkWi FgOg</
> ...
>
> read more »

ernnie

unread,
Aug 26, 2009, 2:37:56 AM8/26/09
to AdWords API Forum
Eric,

I still receive the same error again today: Aug 26, 2009 14:38 GMT+8
time. Here's the soap request & response.


Request:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/
v200906"><SOAP-ENV:Header><RequestHeader xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><authToken>DQAAAH8AAADBdoSs3MVwq1ZupoTQ1C33LjvunegOCeIcsbdlsTNQLkaUqxlp0i2SdZQJcfZoYbgLArHVa6eIIyvHdZ7rgk1zFKGC5ZRoTOX1d5aIsRR0xpK6BH8XfDpYMm-
ZsJ0QDj5jE5NtUN3D3YcxtUe5qC7NVgChEJsN2-TZyB8KVcq3sQ</
authToken><clientEmail>client_1...@gmail.com</
clientEmail><userAgent>Katana Agent</
userAgent><developerToken>************</
developerToken><applicationToken>*************</applicationToken></
RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><get xmlns="https://
adwords.google.com/api/adwords/cm/v200906"><selector></selector></
get></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Header><ResponseHeader xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><requestId>111c50ca6a2b3fe2c8f799e16bfe5d78</
requestId><operations>1</operations><responseTime>2029</
responseTime><units>1</units></ResponseHeader></
soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@ </faultstring><detail><ApiExceptionFault xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </
message><ApplicationException.Type>ApiException</
ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xsi:type="InternalApiError"><fieldPath></
fieldPath><trigger></trigger><ApiError.Type>InternalApiError</
ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></
ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>


On Aug 18, 9:29 pm, AdWords API Advisor <adwordsapiadvi...@google.com>

ernnie

unread,
Aug 26, 2009, 2:42:52 AM8/26/09
to AdWords API Forum
Eric,

Again I'm experiencing the same error, Here's the soap request &
response btw. August 26, 2009 GMT+8 14:44

Request:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/
v200906"><SOAP-ENV:Header><RequestHeader xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><authToken>DQAAAH8AAADBdoSs3MVwq1ZupoTQ1C33LjvunegOCeIcsbdlsTNQLkaUqxlp0i2SdZQJcfZoYbgLArHVa6eIIyvHdZ7rgk1zFKGC5ZRoTOX1d5aIsRR0xpK6BH8XfDpYMm-
ZsJ0QDj5jE5NtUN3D3YcxtUe5qC7NVgChEJsN2-TZyB8KVcq3sQ</
authToken><clientEmail>client_1...@gmail.com</
clientEmail><userAgent>Katana Agent</
userAgent><developerToken>****************</
developerToken><applicationToken>***************applicationToken></
RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><get xmlns="https://
adwords.google.com/api/adwords/cm/v200906"><selector></selector></
get></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Header><ResponseHeader xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><requestId>111c50ca6a2b3fe2c8f799e16bfe5d78</
requestId><operations>1</operations><responseTime>2029</
responseTime><units>1</units></ResponseHeader></
soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@ </faultstring><detail><ApiExceptionFault xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </
message><ApplicationException.Type>ApiException</
ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xsi:type="InternalApiError"><fieldPath></
fieldPath><trigger></trigger><ApiError.Type>InternalApiError</
ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></
ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

Thanks
--Ernnie

On Aug 20, 11:32 pm, AdWords API Advisor
<adwordsapiadvi...@google.com> wrote:
> Hi Tam,
>
> I've found your entries in the log, and the cause of your error is
> that you are setting the clientEmail header to your MCC account, not
> an AdWords client account.  MCC accounts cannot run campaigns, and
> that was causing the error.  In your example for instance, the
> clientEmail header should be something like
> client_1+j_...@google.com.  You can read more about the headers
> required in the sandbox here:http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbo....
>
> Best,
> - Eric
> ...
>
> read more »

ernnie

unread,
Aug 26, 2009, 4:46:14 AM8/26/09
to AdWords API Forum
Eric,

Here's another call when retrieving active campaigns
August 26, 2009 16:46 GMT+8
btw i call this on sandbox.
Request:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v200906"><SOAP-
ENV:Header><RequestHeader xmlns="https://adwords.google.com/api/
adwords/cm/
v200906"><authToken>DQAAAH4AAACzSFjBeZjgMieNCfw12N0H8ePLGlTvgv3w94HLYEzMCXujH2m83s-
QtCseVOFY_szVJ8IZhYZ9b6otE2SPzCwMc6Cn1R88DoY9Bvz5BiqSW0dSD3CykLEBhkhI0EwQXX_4cT4PsxfEPajlGY42XxAZyfRt5vAfkGrcHlIkYoPScQ</
authToken><clientEmail>client_1...@gmail.com</
clientEmail><userAgent>Katana Agent</
userAgent><developerToken>******************</
developerToken><applicationToken>***************</applicationToken></
RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><get xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><selector><campaignStatuses>ACTIVE</campaignStatuses></
selector></get></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Header><ResponseHeader xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><requestId>94c3feebe08d9caea1de2956080dca00</
requestId><operations>1</operations><responseTime>951</
responseTime><units>1</units></ResponseHeader></
soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@ </faultstring><detail><ApiExceptionFault xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </
message><ApplicationException.Type>ApiException</
ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xsi:type="InternalApiError"><fieldPath></
fieldPath><trigger></trigger><ApiError.Type>InternalApiError</
ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></
ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

Thanks
--Ernnie
On Aug 26, 2:42 pm, ernnie <ernni...@gmail.com> wrote:
> Eric,
>
> Again I'm experiencing the same error, Here's the soap request &
> response btw. August 26, 2009 GMT+8 14:44
>
> Request:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/
> v200906"><SOAP-ENV:Header><RequestHeader xmlns="https://
> adwords.google.com/api/adwords/cm/
> v200906"><authToken>DQAAAH8AAADBdoSs3MVwq1ZupoTQ1C33LjvunegOCeIcsbdlsTNQLkaUqxlp0i2SdZQJcfZoYbgLArHVa6eIIyvHdZ7rgk1zFKGC5ZRoTOX1d5aIsRR0xpK6BH8XfDpYMm-
> ZsJ0QDj5jE5NtUN3D3YcxtUe5qC7NVgChEJsN2-TZyB8KVcq3sQ</
> authToken><clientEmail>client_1+ernni...@gmail.com</
> ...
>
> read more »

AdWords API Advisor

unread,
Aug 26, 2009, 11:36:35 AM8/26/09
to AdWords API Forum
Hi Ernnie,

This appears to be a new issue, even though the error code is the same
in the returned SOAP fault. The core engineering team is looking into
the issue now, and I'll let you know when I get more information.

Best,
- Eric

On Aug 26, 4:46 am, ernnie <ernni...@gmail.com> wrote:
> Eric,
>
> Here's another call when retrieving active campaigns
> August 26, 2009 16:46 GMT+8
> btw i call this on sandbox.
> Request:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v200906"><SOAP-
> ENV:Header><RequestHeader xmlns="https://adwords.google.com/api/
> adwords/cm/
> v200906"><authToken>DQAAAH4AAACzSFjBeZjgMieNCfw12N0H8ePLGlTvgv3w94HLYEzMCXu jH2m83s-
> QtCseVOFY_szVJ8IZhYZ9b6otE2SPzCwMc6Cn1R88DoY9Bvz5BiqSW0dSD3CykLEBhkhI0EwQXX _4cT4PsxfEPajlGY42XxAZyfRt5vAfkGrcHlIkYoPScQ</
> authToken><clientEmail>client_1+ernni...@gmail.com</
> clientEmail><userAgent>Katana Agent</
> > > > > > >                 </RequestHeader>...
>
> read more »

ernnie

unread,
Aug 27, 2009, 4:18:28 AM8/27/09
to AdWords API Forum
Also I'm having problems setting a campaign to a cityTarget.
Can you provide a list of values for cityName? or a valid xml request
for w/ cityTarget.
Btw this is on sandbox August 27. 2009 16:19 GMT+8
Here's the soap request and response

Request:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v200906"><SOAP-
ENV:Header><RequestHeader xmlns="https://adwords.google.com/api/
adwords/cm/
v200906"><authToken>DQAAAH4AAAAGenJjfkektXHsFcrUCJLBfiGknZ8T_DoMKUKplePkX-
gUSDHX40ZjYIlIPR-3Qwxq8mNkhn19VR0RgStnyaCYTMbjI33XZRkdRJr-
npFW96xWgwnTo3ae_33a_Tolekbs_nblgVVzqgkkFGc9aJjPjOg0x51jbYfVr8FDslcq5g</
authToken><clientEmail>client_1...@gmail.com</
clientEmail><userAgent>Katana Agent</
userAgent><developerToken>*********************</
developerToken><applicationToken>*****************</applicationToken></
RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><mutate xmlns="https://
adwords.google.com/api/adwords/cm/v200906"><operations><operator>SET</
operator><operand xsi:type="GeoTargetList"><campaignId>64446</
campaignId><targets xsi:type="CityTarget"><cityName>Bishop's</
cityName><provinceCode>Stortford</provinceCode><countryCode>ENG</
countryCode><excluded>false</excluded></targets><targets
xsi:type="CityTarget"><cityName>Dunstable</cityName><provinceCode>ENG</
provinceCode><countryCode>GB</countryCode><excluded>false</excluded></
targets><targets xsi:type="CityTarget"><cityName>Luton</
cityName><provinceCode>ENG</provinceCode><countryCode>GB</
countryCode><excluded>false</excluded></targets><targets
xsi:type="CityTarget"><cityName>Milton</cityName><provinceCode>Keynes</
provinceCode><countryCode>ENG</countryCode><excluded>false</excluded></
targets></operand></operations></mutate></SOAP-ENV:Body></SOAP-
ENV:Envelope>

Response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@ </faultstring><detail><ApiExceptionFault xmlns="https://
adwords.google.com/api/adwords/cm/
v200906"><message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </
message><ApplicationException.Type>ApiException</
ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xsi:type="InternalApiError"><fieldPath></
fieldPath><trigger></trigger><ApiError.Type>InternalApiError</
ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></
ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

Thanks
--Ernnie

On Aug 26, 11:36 pm, AdWords API Advisor
> ...
>
> read more »

ernnie

unread,
Aug 27, 2009, 4:40:04 AM8/27/09
to AdWords API Forum
I already solve my problem on cityTarget. But still previous call
should return proper error msg.

Thanks
--Ernnie
On Aug 27, 4:18 pm, ernnie <ernni...@gmail.com> wrote:
> Also I'm having problems setting a campaign to a cityTarget.
> Can you provide a list of values for cityName? or a valid xml request
> for w/ cityTarget.
> Btw this is on sandbox August 27. 2009 16:19 GMT+8
> Here's the soap request and response
>
> Request:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v200906"><SOAP-
> ENV:Header><RequestHeader xmlns="https://adwords.google.com/api/
> adwords/cm/
> v200906"><authToken>DQAAAH4AAAAGenJjfkektXHsFcrUCJLBfiGknZ8T_DoMKUKplePkX-
> gUSDHX40ZjYIlIPR-3Qwxq8mNkhn19VR0RgStnyaCYTMbjI33XZRkdRJr-
> npFW96xWgwnTo3ae_33a_Tolekbs_nblgVVzqgkkFGc9aJjPjOg0x51jbYfVr8FDslcq5g</
> ...
>
> read more »

AdWords API Advisor

unread,
Aug 27, 2009, 9:28:59 AM8/27/09
to AdWords API Forum
Hi Ernnie,

The problem causing the SOAP faults you saw during your
CampaignService.get() calls should now be resolved. Please test those
again to make sure they are working properly.

As for the cityTarget issue, I'll talk to the core engineering team to
see if we can improve some of the returned error messages.

Best,
- Eric
> > > > > > > (note that I've changed the email but everything else is the same)...
>
> read more »

allvin

unread,
Aug 27, 2009, 10:04:09 AM8/27/09
to AdWords API Forum
I start receive Internal Error Exception, when I post this request:

-----SoapRequest at 27.08.2009 16:52:41-----
POST /api/adwords/cm/v200906/AdGroupService HTTP/1.0
Host: adwords.google.com:443
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 2.0.50727.3074)
Content-type: text/xml; charset=utf-8
Content-length: 130581
SOAPAction: "mutate"
--------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200906">
<applicationToken>********FcMg</applicationToken>
<authToken>********</authToken>
<clientEmail>alexander...@gmail.com</clientEmail>
<developerToken>********WSzA</developerToken>
<userAgent>AWAPI DotNetLib 4.1.0 - Электровоз</userAgent>
</RequestHeader>
</soap:Header>
<soap:Body>
<operator>SET</operator>
<operand>
<id>509084129</id>
<campaignId>19700129</campaignId>
<campaignName>Электровоз</campaignName>
<name>ноутбуки</name>
<status>DELETED</status>
<bids xsi:type="ManualCPCAdGroupBids">
<AdGroupBids.Type>ManualCPCAdGroupBids</AdGroupBids.Type>
<siteMaxCpc>
<amount>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>10000</microAmount>
</amount>
</siteMaxCpc>
</bids>
<stats>
<network>ALL</network>
<Stats.Type>Stats</Stats.Type>
</stats>
</operand>
</operations>
<operations>
<operator>SET</operator>
<operand>
<id>1021823365</id>
<campaignId>19700129</campaignId>
<campaignName>Электровоз</campaignName>
<name>Garmin</name>
<status>DELETED</status>
<bids xsi:type="ManualCPCAdGroupBids">
<AdGroupBids.Type>ManualCPCAdGroupBids</AdGroupBids.Type>
<keywordMaxCpc>
<amount>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>10000</microAmount>
</amount>
</keywordMaxCpc>
<keywordContentMaxCpc>
<amount>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>10000</microAmount>
</amount>
</keywordContentMaxCpc>
<siteMaxCpc>
<amount>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>10000</microAmount>
</amount>
</siteMaxCpc>
</bids>
<stats>
<network>ALL</network>
<Stats.Type>Stats</Stats.Type>
</stats>
</operand>
</operations>
<operations>
<operator>SET</operator>
<operand>
<id>1433263495</id>
<campaignId>19700129</campaignId>
<campaignName>Электровоз</campaignName>
<name>Panasonic DMC-TZ4EE-К Black</name>
<status>DELETED</status>
<bids xsi:type="ManualCPCAdGroupBids">
<AdGroupBids.Type>ManualCPCAdGroupBids</AdGroupBids.Type>
<keywordMaxCpc>
<amount>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>10000</microAmount>
</amount>
</keywordMaxCpc>
<keywordContentMaxCpc>
<amount>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>10000</microAmount>
</amount>
</keywordContentMaxCpc>
<siteMaxCpc>
<amount>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>10000</microAmount>
</amount>
</siteMaxCpc>
</bids>
<stats>
<network>ALL</network>
<Stats.Type>Stats</Stats.Type>
</stats>
</operand>
</operations>
.....
.....
</mutate>
</soap:Body>
</soap:Envelope>
--------------------------------------------------

-----SoapResponse at 27.08.2009 16:52:45-----
Content-type: text/xml; charset=UTF-8
Content-length: 729
SOAPAction: "mutate"
--------------------------------------------------
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </
faultstring>
<detail>
<ApiExceptionFault xmlns="https://adwords.google.com/api/
adwords/cm/v200906">
<message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ </
message>
<ApplicationException.Type>ApiException</
ApplicationException.Type>
<errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="InternalApiError">
<fieldPath>
</fieldPath>
<trigger>
</trigger>
<ApiError.Type>InternalApiError</ApiError.Type>
<reason>UNEXPECTED_INTERNAL_API_ERROR</reason>
</errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
--------------------------------------------------

Could you help me with this error?

AdWords API Advisor

unread,
Aug 27, 2009, 1:41:39 PM8/27/09
to AdWords API Forum
Hi Allvin,

I am looking into this error with the core development team and I will
get you more information once it is available.

Best,
- Eric

On Aug 27, 10:04 am, allvin <alexander.vinnit...@gmail.com> wrote:
> I start receive Internal Error Exception, when I post this request:
>
> -----SoapRequest at 27.08.2009 16:52:41-----
> POST /api/adwords/cm/v200906/AdGroupService HTTP/1.0
> Host: adwords.google.com:443
> User-agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
> Protocol 2.0.50727.3074)
> Content-type: text/xml; charset=utf-8
> Content-length: 130581
> SOAPAction: "mutate"
> --------------------------------------------------
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <soap:Header>
>     <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
> v200906">
>       <applicationToken>********FcMg</applicationToken>
>       <authToken>********</authToken>

>       <clientEmail>alexander.vinnit...@gmail.com</clientEmail>

adw...@tmsoluciones.com

unread,
Sep 1, 2009, 10:07:28 AM9/1/09
to AdWords API Forum
Hi, I'm having this issue too

headers:

<h:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200906" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:h="https://
adwords.google.com/api/adwords/cm/v200906">
<authToken>DQAAAIwAAACF1GWD_50-nSe0HxcKlFR5Xb-pe2Hj7znqCDG_a-tgmIk2F-
Mp8QlOyQGwM422WskB2g-
dAAs4FqcGCvJjH7VlEMQ7iSBTdWB8Fy9skaI1c9U4bnlLgz3aB-
CmaReq3YIZzxOoTBs1sFE51AyKKb93NRlXcZS_FJlcJFZh4ujky4Wewc9vQ8UxqZxcSmlxfmE</
authToken>
<developerToken>te...@tmsoluciones.com++USD</developerToken>
<userAgent>Test Company</userAgent>
</h:RequestHeader>

request:


<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/
ws/2005/05/addressing/none" />
<h:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200906" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:h="https://
adwords.google.com/api/adwords/cm/v200906">
<authToken>DQAAAIwAAACF1GWD_50-nSe0HxcKlFR5Xb-pe2Hj7znqCDG_a-
tgmIk2F-Mp8QlOyQGwM422WskB2g-
dAAs4FqcGCvJjH7VlEMQ7iSBTdWB8Fy9skaI1c9U4bnlLgz3aB-
CmaReq3YIZzxOoTBs1sFE51AyKKb93NRlXcZS_FJlcJFZh4ujky4Wewc9vQ8UxqZxcSmlxfmE</
authToken>
<developerToken>te...@tmsoluciones.com++USD</developerToken>
<userAgent>Test Company</userAgent>
</h:RequestHeader>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<operand>
<name>Test campaign</name>
<status>PAUSED</status>
<endDate>20100101</endDate>
<budget>
<period>DAILY</period>
<amount>
<microAmount>1</microAmount>
</amount>
<deliveryMethod>STANDARD</deliveryMethod>
</budget>
<biddingStrategy xsi:type="ManualCPC" />
</operand>
</operations>
</mutate>
</s:Body>
</s:Envelope>

response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" />
thanks for any help!

AdWords API Advisor

unread,
Sep 1, 2009, 6:08:52 PM9/1/09
to AdWords API Forum
Hi Alvin,

The core engineering team has fixed this issue, can you please try
your request again?

Thanks,
- Eric

On Aug 27, 1:41 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:

AdWords API Advisor

unread,
Sep 1, 2009, 6:12:44 PM9/1/09
to AdWords API Forum
Hi TCM Soluciones,

Although the error message is the same, your error has a different
cause. When working with campaigns, ad groups, etc you must specify
which clienEmail header that specifies which client account to work
with, as MCC accounts cannot have their own campaigns. You can read
more about the required headers here:
http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbox.html#requestheaders.

Best,
- Eric Koleda, AdWords API Team

On Sep 1, 10:07 am, "adwo...@tmsoluciones.com"
<adwo...@tmsoluciones.com> wrote:
> Hi, I'm having this issue too
>
> headers:
>
> <h:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
> v200906" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:h="https://
> adwords.google.com/api/adwords/cm/v200906">
>   <authToken>DQAAAIwAAACF1GWD_50-nSe0HxcKlFR5Xb-pe2Hj7znqCDG_a-tgmIk2F-
> Mp8QlOyQGwM422WskB2g-
> dAAs4FqcGCvJjH7VlEMQ7iSBTdWB8Fy9skaI1c9U4bnlLgz3aB-
> CmaReq3YIZzxOoTBs1sFE51AyKKb93NRlXcZS_FJlcJFZh4ujky4Wewc9vQ8UxqZxcSmlxfmE</
> authToken>
>   <developerToken>t...@tmsoluciones.com++USD</developerToken>
>   <userAgent>Test Company</userAgent>
> </h:RequestHeader>
>
> request:
>
> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>   <s:Header>
>     <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/
> ws/2005/05/addressing/none" />
>     <h:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
> v200906" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:h="https://
> adwords.google.com/api/adwords/cm/v200906">
>       <authToken>DQAAAIwAAACF1GWD_50-nSe0HxcKlFR5Xb-pe2Hj7znqCDG_a-
> tgmIk2F-Mp8QlOyQGwM422WskB2g-
> dAAs4FqcGCvJjH7VlEMQ7iSBTdWB8Fy9skaI1c9U4bnlLgz3aB-
> CmaReq3YIZzxOoTBs1sFE51AyKKb93NRlXcZS_FJlcJFZh4ujky4Wewc9vQ8UxqZxcSmlxfmE</
> authToken>
>       <developerToken>t...@tmsoluciones.com++USD</developerToken>

adw...@tmsoluciones.com

unread,
Sep 1, 2009, 1:11:19 PM9/1/09
to AdWords API Forum
Hey!

my messages are beeing reviewed b/c I'm a new member... anyway, I made
my xml look like the one posted at
http://code.google.com/p/adwords-api-xml-samples/source/browse/trunk/src/v200906/add_campaign.xml

That's what I got:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/
ws/2005/05/addressing/none" />
<authToken>DQAAAIwAAABG-YBmiFKOs0g-
w0A6acKGtbpMzEJTSqwbKuXAViWgkyp5KXlLconNTntMGRO20uboNQAHudaWr2BVKddtxfHHwBQR-
PNGSLaEyRyYzdXkaMXUVmONGuyshnAWVZHFZEipVI6pIyIv88sSahIRhZZ7VEMOI8ivL9Wp7UBS1EfszS-4IF2WhJQyHhfUQg8IcaE</
authToken>
<developerToken>te...@tmsoluciones.com++USD</developerToken>
<userAgent>Test Company</userAgent>
</h:RequestHeader>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<operator>ADD</operator>
<operand>
<name>Test campaign</name>
<status>ACTIVE</status>
<endDate>20100101</endDate>
<budget>
<period>DAILY</period>
<amount>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>10000</microAmount>
</amount>
<deliveryMethod>STANDARD</deliveryMethod>
</budget>
<biddingStrategy xsi:type="ManualCPC" />
</operand>
</operations>
</mutate>
</s:Body>
</s:Envelope>

and the response I received is

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200906">
<requestId>70ac1b9b879d3380fa415c3053f1430d</requestId>
<operations>1</operations>
<responseTime>149</responseTime>
<units>1</units>
</ResponseHeader>
</soap:Header>
This was generated at 14:10 -3 GMT

Thanks!

Gervasio Marchand

unread,
Sep 1, 2009, 7:37:50 PM9/1/09
to AdWords API Forum
Hi Eric! Thanks for your reply.

I'm using the sandbox, should I call any method to create a client? or
just send any email different than the one I used to log in?

I've just done that and got the same error... here's the request


<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/
ws/2005/05/addressing/none" />
<h:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200906" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:h="https://
adwords.google.com/api/adwords/cm/v200906">

<authToken>DQAAAIwAAACCIFgI01KZFld1ga01jnXDgkc_8Udva9MyC_BIv4VTPchKY6axWUXAfcLuXI_lcIp8nh2QQKSg4fBWLS21FzyOl2u5uBHLVqEQvqxNzP5iVgJke_mTVu-
au13SQQgq3zdOdBbSWBhq7qbxtV0LRhCAqmxQZNE9yjS-dp5-
HcrJ_ukIN7NStoutO3VxrinLx74</authToken>
<clientEmail>te...@tmsoluciones.com</clientEmail>
<developerToken>te...@tmsoluciones.com++USD</developerToken>
<userAgent>Test Company</userAgent>
</h:RequestHeader>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<mutate xmlns="https://adwords.google.com/api/adwords/cm/v200906">
<operations>
<operator>ADD</operator>
<operand>
<name>Test campaign</name>
<status>ACTIVE</status>
<endDate>20100101</endDate>
<budget>
<period>DAILY</period>
<amount>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>10000</microAmount>
</amount>
<deliveryMethod>STANDARD</deliveryMethod>
</budget>
<biddingStrategy xsi:type="ManualCPC" />
</operand>
</operations>
</mutate>
</s:Body>
</s:Envelope>

and here's the response

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200906">
<requestId>0313169f6c4d6d0d071eb6098f7c1bed</requestId>
<operations>1</operations>
<responseTime>186</responseTime>
<units>1</units>
</ResponseHeader>
</soap:Header>
it was generated at 20:36 in -3 GMT

thanks!

On Sep 1, 7:12 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> Hi TCM Soluciones,
>
> Although the error message is the same, your error has a different
> cause.  When working with campaigns, ad groups, etc you must specify
> which clienEmail header that specifies which client account to work
> with, as MCC accounts cannot have their own campaigns.  You can read
> more about the required headers here:http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbo....

AdWords API Advisor

unread,
Sep 2, 2009, 12:48:50 PM9/2/09
to AdWords API Forum, Gervasio Marchand
Hi Gervasio,

The clientEmail you specified is not in a valid format for the
sandbox. As stated on the Using the Sandbox page (
http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbox.html#requestheaders
), the clientEmail header must be in the form "client_n+login_id".

Best,
- Eric

Gervasio Marchand

unread,
Sep 2, 2009, 12:54:33 PM9/2/09
to AdWords API Forum
Thanks Eric!

What's the meaning of n? just send a number between 1 and 5? can I use
always the same? does it affect something?

On Sep 2, 1:48 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> Hi Gervasio,
>
> The clientEmail you specified is not in a valid format for the
> sandbox.  As stated on the Using the Sandbox page (http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbo...
> ), the clientEmail header must be in the form "client_n+login_id".
>
> Best,
> - Eric
>
> On Sep 1, 7:37 pm, Gervasio Marchand <adwo...@tmsoluciones.com> wrote:
>
> > Hi Eric! Thanks for your reply.
>
> > I'm using the sandbox, should I call any method to create a client? or
> > just send any email different than the one I used to log in?
>
> > I've just done that and got the same error... here's the request
>
> > <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
> >   <s:Header>
> >     <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/
> > ws/2005/05/addressing/none" />
> >     <h:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
> > v200906" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:h="https://
> > adwords.google.com/api/adwords/cm/v200906">
>
> > <authToken>DQAAAIwAAACCIFgI01KZFld1ga01jnXDgkc_8Udva9MyC_BIv4VTPchKY6axWUXA fcLuXI_lcIp8nh2QQKSg4fBWLS21FzyOl2u5uBHLVqEQvqxNzP5iVgJke_mTVu-
> > au13SQQgq3zdOdBbSWBhq7qbxtV0LRhCAqmxQZNE9yjS-dp5-
> > HcrJ_ukIN7NStoutO3VxrinLx74</authToken>
> >       <clientEmail>te...@tmsoluciones.com</clientEmail>

Gervasio Marchand

unread,
Sep 2, 2009, 1:42:33 PM9/2/09
to AdWords API Forum
found my mistake... I should create the accounts prior to start using
the sandbox... had to spend 2 days though... I think you should really
improve the documentation on how to get started

thanks for your help!

Gervasio Marchand

unread,
Sep 2, 2009, 1:55:13 PM9/2/09
to AdWords API Forum
Here you can see I have clients

Request:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/
ws/2005/05/addressing/none" />
<h:developerToken xmlns="https://adwords.google.com/api/adwords/
v13" xmlns:h="https://adwords.google.com/api/adwords/
v13">te...@tmsoluciones.com++USD</h:developerToken>
<h:email xmlns="https://adwords.google.com/api/adwords/v13"
xmlns:h="https://adwords.google.com/api/adwords/
v13">te...@tmsoluciones.com</h:email>
<h:password xmlns="https://adwords.google.com/api/adwords/v13"
xmlns:h="https://adwords.google.com/api/adwords/v13">asdf1234</
h:password>
<h:useragent xmlns="https://adwords.google.com/api/adwords/v13"
xmlns:h="https://adwords.google.com/api/adwords/v13">test app</
h:useragent>
<getClientAccounts xmlns="https://adwords.google.com/api/adwords/
v13" />
</s:Body>
</s:Envelope>

Response:
<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>
<responseTime soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v13">12</responseTime>
<operations soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v13">5</operations>
<units soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v13">5</units>
<requestId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v13">00027475c935b822b41d3b42f18d6bc2</requestId>
</soapenv:Header>
<soapenv:Body>
<getClientAccountsResponse xmlns="https://adwords.google.com/api/
adwords/v13">
<getClientAccountsReturn>client...@tmsoluciones.com</
getClientAccountsReturn>
<getClientAccountsReturn>client...@tmsoluciones.com</
getClientAccountsReturn>
<getClientAccountsReturn>client...@tmsoluciones.com</
getClientAccountsReturn>
<getClientAccountsReturn>client...@tmsoluciones.com</
getClientAccountsReturn>
<getClientAccountsReturn>client...@tmsoluciones.com</
getClientAccountsReturn>
</getClientAccountsResponse>
</soapenv:Body>
</soapenv:Envelope>

But... when I try to use the account, here's what I get

Request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/
ws/2005/05/addressing/none" />
<h:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200906" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:h="https://
adwords.google.com/api/adwords/cm/v200906">

<authToken>DQAAAI0AAABNw88JUxd0coSdVNVz7Zxt5yVsx4Zbj2mYrCtDsVCTSlCc5_UZD5fmtlafVfOlx8-8uPG3Qk4q1vpYrc8gRAvZVYIPozAjo2zWrT5R4kx6xGqEmD4D4hOGcD6Mh_NlIHF27JFG9A6n29e_4JKEfAFfwfOPdeasmzJINNdQDAtMGds8j7STClu-
bv654GA68_Y</authToken>
<clientEmail>client...@tmsoluciones.com</clientEmail>
Response
can you please tell me what's wrong here and how to fix? it's becoming
really frustrating... made 20 different types of mistakes and all
return the same error message... unexpected internal api error

Mauro

unread,
Sep 3, 2009, 11:03:35 AM9/3/09
to AdWords API Forum, Gervasio Marchand
Hi Gervasio,

The first I can see is you didn't specify a required start date.

The API response is really fluent on some errors, and very annoying on
some others (InternalApiError) !

Saludos!

Mauro

Gervasio Marchand

unread,
Sep 3, 2009, 11:07:26 AM9/3/09
to AdWords API Forum
Hey Mauro!

Thanks for your reply... in my case, it was an authentication issue,
and Eric is looking into it.

I just had to change HOSTED_OR_GOOGLE to GOOGLE when calling the
ClientAPI and that made the trick

AdWords API Advisor

unread,
Sep 3, 2009, 3:11:04 PM9/3/09
to AdWords API Forum
Hi Gervasio,

I've updated the v2009 SOAP Headers page to recommend that GOOGLE be
used as the accountType when making requests to the ClientLogin API:
http://code.google.com/apis/adwords/v2009/docs/headers.html

Best,
- Eric

On Sep 3, 11:07 am, Gervasio Marchand <adwo...@tmsoluciones.com>
wrote:
Reply all
Reply to author
Forward
0 new messages