Hi Kapil,

Could you please post a sanitized soap request and response xml? 
Repeated UNEXPECTED_INTERNAL_API_ERROR is usually an issue at our end.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Wednesday, February 13, 2013 7:29:26 PM UTC+5:30, Kapil wrote:
>
> Hello,
>
> I am using TargetingIdeaSelector to get the related keywords. I am 
> referring this code:-
>
> https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201209/optimization/GetKeywordIdeas.java
>
> Now, I need to make a change. I also want to add location, and language in 
> this code. So...
>
>  Location unitedStates = new Location();
>             unitedStates.setId(2840L);
>
> LocationSearchParameter location = new LocationSearchParameter();
>             location.setLocations(new Location[] { unitedStates });
>
>             Language english = new Language();
>             english.setId(1000L);
>
>             LanguageSearchParameter language = new 
> LanguageSearchParameter();
>             language.setLanguages(new Language[] { english });
>
>  RelatedToQuerySearchParameter relatedToQuerySearchParameter = new 
> RelatedToQuerySearchParameter();
>             relatedToQuerySearchParameter.setQueries(new String[] { 
> keywordText });
>
> *** after this I'm adding all of them in the selector like this:-
>
> * selector.setSearchParameters(new SearchParameter[] 
> {relatedToQuerySearchParameter, location, language});*
> *
> but I am getting an error:-
>
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>  faultSubcode: 
>  faultString: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]
>  faultActor: 
>  faultNode: 
>  faultDetail: 
>     
> {https://adwords.google.com/api/adwords/o/v201209}ApiExceptionFault:<ns2:message>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
>  
> @ 
> com.google.ads.api.services.common.error.InternalApiError.&lt;init&gt;(InternalApiErro]</ns2:message><ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type><ns2:errors
>  
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="ns2:InternalApiError"><ns2:fieldPath/><ns2:trigger/><ns2:errorString>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR</ns2:errorString><ns2:ApiError.Type>InternalApiError</ns2:ApiError.Type><ns2:reason>UNEXPECTED_INTERNAL_API_ERROR</ns2:reason></ns2:errors>
>
>
> *I even tried this:-
>
> * selector.setSearchParameters(1, relatedToQuerySearchParameter);
>             selector.setSearchParameters(2, location);
>             selector.setSearchParameters(3, language);
>             selector.setSearchParameters(4, category);
>
> But it is also not working.
> Can someone please help me with this issue.
>
> Thanks,
>
> Kapil
> **

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to