Hi Ragib,
  Occasionally the sandbox does not properly create accounts, leading to a 
broken account structure which can cause errors like this.  Due to our 
limited lack of insight into the sandbox environment, the quickest way to 
resolve this is to provision a different google account for sandbox use.

- Kevin Winter
AdWords API Team

On Wednesday, January 18, 2012 2:41:59 PM UTC-5, Ragib Morshed wrote:
>
> Hi, 
>
> I am working on a python script using the adspygoogle lib for Google 
> ADX, and I am running into this issue while running an existing 
> example script. 
>
> The scripts are from adxbuyer_api_python_15.1.0/examples/adspygoogle/ 
> adwords/v201109 
>
> I have done a successful configuration and can run "add_campaign.py", 
> "get_all_paused_campaigns.py", "get_all_campaigns.py", and 
> "get_all_user_lists.py" 
>
> However, when I try to run "add_user_list.py", I get the following 
> error "InternalApiError", which doesn't really tell me much: 
>
> ************************************************************************ 
> *** Outgoing SOAP 
> ****************************************************** 
> <?xml version="1.0" encoding="UTF-8"?> 
> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/ 
> soap/encoding/ <http://schemas.xmlsoap.org/soap/encoding/>" 
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/ 
> encoding/ <http://schemas.xmlsoap.org/soap/encoding/>" xmlns:SOAP-ENV="
> http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsi3="http://www.w3.org/2001/XMLSchema-instance";> 
>  <SOAP-ENV:Header xmlns="https://adwords.google.com/api/adwords/cm/ 
> v201109 <https://adwords.google.com/api/adwords/cm/v201109>" xmlns:cm="
> https://adwords.google.com/api/adwords/cm/v201109";> 
>   <RequestHeader> 
>    <cm:developerToken>[email protected]++USD</cm:developerToken> 
>    <cm:userAgent>AwApi-Python-15.1.0|test</cm:userAgent> 
>   
> <cm:authToken>DQAAAJYBAAAP6DrCKArHy7evZcP9t_S_t6thHIreFo28h-5Z8P41SsUJvvW3BEfBAI6WOYvMZrWjjnfu2W2fi53ZSCYLEHXusyyUclBd0L6CvcrGrotKdQwwm1qvNJUV1rFYw07OHesiBuwxVpmXJZYyiNpGqlFJr05bw44ZkyuectwDy2FwFMXJoTkFepIhRZzhgO8_4BBzL7mDAre8lVIAqBc3nk7LV2roeE3KtJJvd_h33EDlSVWxk62qAr-18gnOTQXSyCaWDKgtdnWpFmDDhBpR_qtuChe6nU_VGNiuJpnifjNzNVxOgOxqnBWbjWXlMGzflDFX3KE09BCUpMXpruQ8VYcHJjAlPZjtlZEqpDwwQqr9XbprBwY2acBgoImz_Zyq8urEnmtvqe0Y2Hu9iPqogtdBtDrHLxX4t1gY6kl2VSYOYxJUxncBW3PniBYhhyLWqwfz8gUiZegmkVWNgybp1u6hyXwTOgbrLpCgg_1JbiyjNdZ9plV_ndF00xulJdu0pnVTUR4piM4jXrNV2q2mFCsv68vN3huFZ1bVCWApEggeKQ</
>  
>
> cm:authToken> 
>    <cm:clientCustomerId>6295339189</cm:clientCustomerId> 
>   </RequestHeader> 
>  </SOAP-ENV:Header> 
>  <SOAP-ENV:Body> 
>   <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201109"; 
> xmlns:cm="https://adwords.google.com/api/adwords/cm/v201109";> 
>    <operations xsi3:type="cm:UserListOperation"> 
>     <cm:operator>ADD</cm:operator> 
>     <cm:operand xsi3:type="cm:RemarketingUserList"> 
>      <cm:name>Mars cruise customers #124534821141812012</cm:name> 
>      <cm:description>A list of mars cruise customers in the last 
> year.</cm:description> 
>      <cm:membershipLifeSpan>365</cm:membershipLifeSpan> 
>      <cm:size>30000</cm:size> 
>      <cm:conversionTypes xsi3:type="cm:UserListConversionType"> 
>       <cm:name>Mars cruise customers #124724821141812012</cm:name> 
>      </cm:conversionTypes> 
>     </cm:operand> 
>    </operations> 
>   </mutate> 
>  </SOAP-ENV:Body> 
> </SOAP-ENV:Envelope> 
> ************************************************************************ 
> *** Incoming HTTP headers 
> ********************************************** 
> HTTP/1.? 500 Internal Server Error 
> Content-Type: text/xml; charset=UTF-8 
> Date: Wed, 18 Jan 2012 19:21:50 GMT 
> Expires: Wed, 18 Jan 2012 19:21:50 GMT 
> Cache-Control: private, max-age=0 
> X-Content-Type-Options: nosniff 
> X-Frame-Options: SAMEORIGIN 
> X-XSS-Protection: 1; mode=block 
> Server: GSE 
> ************************************************************************ 
> *** Incoming SOAP 
> ****************************************************** 
> <?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/ 
> v201109 <https://adwords.google.com/api/adwords/cm/v201109>"> 
>    <requestId>0004b6d25be8c3380a0d521100002314</requestId> 
>    <serviceName>UserListService</serviceName> 
>    <methodName>mutate</methodName> 
>    <operations>1</operations> 
>    <responseTime>2492</responseTime> 
>    <units>1</units> 
>   </ResponseHeader> 
>  </soap:Header> 
>  <soap:Body> 
>   <soap:Fault> 
>    <faultcode>soap:Server</faultcode> 
>    <faultstring>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.&lt;init&gt; 
> (InternalApiErro]</faultstring> 
>    <detail> 
>     <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/ 
> cm/v201109 <https://adwords.google.com/api/adwords/cm/v201109>"> 
>      <message>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.&lt;init&gt; 
> (InternalApiErro]</message> 
>      <ApplicationException.Type>ApiException</ 
> ApplicationException.Type> 
>      <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="InternalApiError"> 
>       <fieldPath/> 
>       <trigger/> 
>       <errorString>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR</ 
> errorString> 
>       <ApiError.Type>InternalApiError</ApiError.Type> 
>       <reason>UNEXPECTED_INTERNAL_API_ERROR</reason> 
>      </errors> 
>     </ApiExceptionFault> 
>    </detail> 
>   </soap:Fault> 
>  </soap:Body> 
> </soap:Envelope> 
> ************************************************************************ 
> EndTime: 2012-01-18 14:21:50 
> [2012-01-18 14:21:50,764::DEBUG::AwApi-Python-15.1.0] host=adwords- 
> sandbox.google.com service=UserListService method=mutate operator=None 
> responseTime=2492 operations=1 units=1 
> requestId=0004b6d25be8c3380a0d521100002314 isFault=True 
> Traceback (most recent call last): 
>   File "add_user_list.py", line 61, in <module> 
>     result = user_list_service.Mutate(operations)[0] 
>   File "../../../../adspygoogle/common/GenericApiService.py", line 
> 307, in CallMethod 
>     self._HandleLogsAndErrors(buf, start_time, stop_time, error) 
>   File "../../../../adspygoogle/adwords/GenericAdWordsService.py", 
> line 251, in _HandleLogsAndErrors 
>     raise e 
> adspygoogle.adwords.AdWordsErrors.AdWordsGoogleInternalError: 
> [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]
>  
>
>
>
> Is there some flakiness with the sandbox that is causing such a 
> problem temporarily? If not, is there a way around this? 
>
> Thanks for your help. 
> -Ragib

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to