Hi Andy,

It looks like you are running into the same problem that is being
discussed on this thread:

  
http://groups.google.com/group/adwords-api/browse_thread/thread/3ce79c6c3ba70f6d/

Best,
- Eric Koleda, AdWords API Team

On Mar 19, 4:05 pm, Andy <andysch...@gmail.com> wrote:
> Hey everyone,
>
> I'm pretty new to the Adwords API in general. I didn't work with any
> of the previous versions and am trying to get an issue resolved. I am
> using the latest Java client library (adwords-api-7.1.0-loner.jar).
>
> I have been trying to implement the v2009 CampaignService calls to get
> campaign data. I have it working when I don't use sandbox, however,
> because I have more work to do and need to use the Sandbox for obvious
> reasons. When I set the AdwordsUser to use sandbox, I get an error:
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
>
> Here is the code that creates the User:
>
>         Map params = new HashMap();
>         params.put("version", "v200909");
>         params.put("email", account.getUserName());
>         params.put("password", account.getPassword());
>         params.put("developerToken", account.getDeveloperToken());
>         params.put("applicationToken", account.getApplicationToken());
>         params.put("useragent", account.getUserAgent());
>         params.put("clientId", account.getClientEmail());
>         if (account.isSandbox()) {
>             //params.put("alternateUrl",
> GoogleAdwordsAccount.SANDBOX_URL);
>             params.put("useSandbox", "true");
>         }
>
>         AdWordsUser user = new AdWordsUser(params);
>
> Here are some of the debug soap replies:
>
> <?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:applicationToken>[myAppToken]</
> ns1:applicationToken><ns1:authToken xmlns:ns1="https://
> adwords.google.com/api/adwords/cm/v200909">******</
> ns1:authToken><ns1:clientEmail>client_1+[myEmail]</
> ns1:clientEmail><ns1:developerToken>[myDevToken]</
> ns1:developerToken><ns1:userAgent>AdWords API Java Client Library - v
> - Pythia 1.1</ns1:userAgent><ns1:validateOnly>false</
> ns1:validateOnly></ns1:RequestHeader></
> soapenv:Header><soapenv:Body><get xmlns="https://adwords.google.com/
> api/adwords/cm/v200909"><selector><campaignStatuses>ACTIVE</
> campaignStatuses><statsSelector><dateRange><min>20100318</
> min><max>20100318</max></dateRange></statsSelector></selector></get></
> soapenv:Body></soapenv:Envelope>
>
> [19 Mar 2010 14:45:36,951 - DEBUG]
> <?xml version="1.0" encoding="UTF-8"?><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/
> v200909"><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>
>
> The request info debug:
> [19 Mar 2010 14:45:36,951 - DEBUG] email=[myEmail]
> effectiveUser=client_1+[myEmail[ service=CampaignService method=get
> operators={} responseTime=0 operations=0 units=0 requestId=
> server=https://adwords-sandbox.google.comisFault=true
> faultMessage=InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
>
> Any help would be much appreciated. It's been very frustrating trying
> to figure this out for Sandbox as I can already get results from live
> with the exact code minus the useSandbox set.
>
> Thanks,
> Andy

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to