InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in sandbox

795 views
Skip to first unread message

Bruce Wu

unread,
Mar 4, 2012, 5:41:53 AM3/4/12
to adwor...@googlegroups.com
Hi,

I'm facing the same problem (using PHP with and without client library). 

To replicate, try the CreateAccount.php example with PHP 5.3.2

For me, it ended up with: "An error has occurred: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro".

Best regards,
Bruce Wu

Kevin Winter

unread,
Mar 6, 2012, 10:00:58 AM3/6/12
to adwor...@googlegroups.com
Hi Bruce,
  I apologize - there's a known issue that is currently preventing the creation of accounts in the sandbox environment.  We've successfully tested creating accounts in the production environment.

- Kevin Winter
AdWords API team

Nira Amit

unread,
Apr 10, 2012, 9:44:50 AM4/10/12
to adwor...@googlegroups.com
Hi guys,
Has this issue been resolved yet? I'm trying to use the sandbox and i'm getting the same exception on:

ServicedAccountGraph graph = servicedAccountService.get(selector);

But i may be doing something wrong (new to AdWords).
My company has an account we use in Production, but i want to test stuff on the sandbox. My adwords.properties file looks like this:
email=A_VALID_EMAIL_FOR_THE_EXISTING_ACCOUNT
password=A_VALID_PASSWORD
useragent=THE_ONE_WE_USE_FOR_THE_ACCOUNT
developerToken=THE_EMAIL++USD
useSandbox=true

These lines seem to have worked just fine:

AdWordsUser user = new AdWordsUser().generateClientAdWordsUser(null);
ServicedAccountServiceInterface servicedAccountService = user.getService(AdWordsService.V201109.SERVICED_ACCOUNT_SERVICE);
ServicedAccountSelector selector = new ServicedAccountSelector();
selector.setEnablePaging(false);

But than i get an exception when trying to get the graph. Will appreciate any help you can provide,
Nira.

Kevin Winter

unread,
Apr 10, 2012, 2:51:36 PM4/10/12
to adwor...@googlegroups.com
Hi Nira,
  Did you initialize your sandbox account by calling CampaignService.get with no clientCustomerId specified? http://code.google.com/apis/adwords/docs/sandbox.html#getting-started

The original issue reported was for CreateAccountService, whereas your issue is with the ServicedAccountService.

- Kevin Winter
AdWords API Team

Nira Amit

unread,
Apr 19, 2012, 9:33:05 AM4/19/12
to adwor...@googlegroups.com
Hi Kevin,
Sorry for the confusion, the exception is not when getting the graph, it's when trying to create the account. I am able to get the ServicedAccountGraph for my sandbox account with the 5 automatically-created accounts in it. However, i am unable to create a new account as done in the CreateAccount example. (i want to create one MCC account with two managed accounts for my tests, since the graph does not return the MCC account of the Sandbox. I think it's a bug).

Kevin Winter

unread,
Apr 19, 2012, 10:50:39 AM4/19/12
to adwor...@googlegroups.com
Hi,
  Unfortunately, the original bug I mentioned in this thread are still in effect.  We are talking with the core engineers regarding how to address this and other pain points of using the sandbox.  Follow our blog for updates on this.

Additionally, the ServicedAccountService will not return an Account entry for the MCC, only for the child accounts (in the sandbox environment).

In production, both work as expected.

- Kevin Winter
AdWords API Team

Marc Sanders

unread,
May 4, 2012, 6:50:53 AM5/4/12
to adwor...@googlegroups.com
Has this issues been resolved?

Kevin Winter

unread,
May 4, 2012, 10:10:04 AM5/4/12
to adwor...@googlegroups.com
Hi,
  Unfortunately, we have no update at this time.

- Kevin Winter
AdWords API Team

Tommy Choi

unread,
Jul 24, 2012, 8:55:28 PM7/24/12
to adwor...@googlegroups.com
Hi, I am using AdWordsService.v201109.ServicedAccountService in sandbox environment and face the same error. I guess the fix has not been done yet?

Kevin Winter

unread,
Jul 25, 2012, 9:51:32 AM7/25/12
to adwor...@googlegroups.com
Hi,
  The original bug mentioned in the thread affected creating accounts in the Sandbox (which is still not supported).  Could you please provide more information about your error?  Does it happen consistently or sporadically?

- Kevin Winter
AdWords API Team

Tommy Choi

unread,
Jul 25, 2012, 8:47:57 PM7/25/12
to adwor...@googlegroups.com
Yes, it happens consistently. What we try to do is to get a list of available accounts, we and using .net client library v201109 and here is our codes:
            AdWordsUser user = new AdWordsUser();
            // Get the ServicedAccountService.
            ServicedAccountService servicedAccountService = (ServicedAccountService)user.GetService(AdWordsService.v201109.ServicedAccountService);

            // Create the selector.
            ServicedAccountSelector selector = new ServicedAccountSelector();
            // Disable selector paging to retrive links.
            selector.enablePaging = false;

            // Retrieve the accounts.
            ServicedAccountGraph graph = servicedAccountService.get(selector);

We encounter the error at the last line of codes.
[SoapException: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]
   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1485877
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +221
   Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String methodName, Object[] parameters) +240

I thank you very much for your help.

Kevin Winter

unread,
Aug 21, 2012, 9:27:23 AM8/21/12
to adwor...@googlegroups.com
Hi,
  We just fixed a bug that prevented accounts from being created correctly.  Could you please create a new sandbox account and let me know if this still happens?

- Kevin Winter
AdWords API Team

Taras Lyapun

unread,
Sep 4, 2012, 7:48:01 AM9/4/12
to adwor...@googlegroups.com
Hi!

Yes, this issue still happens.

вторник, 21 августа 2012 г., 16:27:23 UTC+3 пользователь Kevin Winter написал:

Kevin Winter

unread,
Sep 5, 2012, 11:39:15 AM9/5/12
to adwor...@googlegroups.com
Hi,
  Just to clarify, did you follow the steps listed here for a new google account? https://developers.google.com/adwords/api/docs/sandbox#getting-started

Please indicate what step you are on and what error message you are seeing.

- Kevin Winter
AdWords API Team

Taras Lyapun

unread,
Sep 6, 2012, 2:01:31 AM9/6/12
to adwor...@googlegroups.com


среда, 5 сентября 2012 г., 18:39:15 UTC+3 пользователь Kevin Winter написал:
Hi,
  Just to clarify, did you follow the steps listed here for a new google account? https://developers.google.com/adwords/api/docs/sandbox#getting-started


Yes, ofcourse
 
Please indicate what step you are on and what error message you are seeing.


I successfully go through 5 steps, but on 6, when I try, for example create new account in MCC - i get "InternalApiError.UNEXPECTED_INTERNAL_API_ERROR"
 

Kevin Winter

unread,
Sep 6, 2012, 9:50:10 AM9/6/12
to adwor...@googlegroups.com
Hi,
  Unfortunately, account creation has never worked properly in the sandbox due to the way the environment is emulated.  We're working on improving this in the long term.

- Kevin Winter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages